Atrus ([info]nikolasco) wrote in [info]logjam_dev,

Tag support for Logjam

I took some time this afternoon to add tag support to LogJam. The hardest part was generating the patch because I’m completely unfamiliar with GNU Arch. After an hour of fiddling about, I discovered that tla changes --diff was what I wanted.

I’ve built and tested it; it works. You can get the binary I used here. I doubt it will work unless you have a configuration similar to mine:
 logjam 4.4.1 build configuration:

    - GTK: yes
      - GtkSpell: yes
      - GtkHTML: 3.6
      - librsvg: yes
      - Docklet (“tray icon”): yes
    - Networking: libsoup
    - XMMS helper: yes
    - SQLite3: yes
Plus similar library versions and stuff.

I’ve sent the patch to [info]evan so hopefully it will be included in the next release.

[update: Okay, I've made a proper changeset. You can build your own copy after you've checked out the 4.5 source (directions):
tar xzvf logjam_tags.changeset.tar.gz
tla apply-changeset logjam_tags.changeset/ logjam--dev--4.5--patch-6/
cd logjam--dev--4.5--patch-6/
./autogen.sh
./configure --with-sqlite3
make all
./src/logjam

The SQLite bit is required because there's a problem with journalstore_xml.c I'm not sure what I did that broke it :( ]

[update: [info]quirrc pointed out that servers that don't support tags will return an error and not post (if tags are included). So, I've updated the changeset, patch, and binary so if you don't enter tags, they're not sent to the server if the field is empty. If you fill in the tags field and try to post to a server that doesn't support tags, you'll still get an error "Unknown metadata: taglist" but it's easily correctable.]

(cross-posted to my own journal)

  • Post a new comment

    Error

  • 9 comments

[info]troworld

June 17 2005, 02:45:59 UTC 6 years ago

The patch works for me.

[info]evan

June 17 2005, 02:51:24 UTC 6 years ago

yeah, arch isn't very friendly when you'd just like to generate a patch.
it's better for developing full-on branches which you publish for me to integrate.
but that's sorta lame because it's too much effort on your part for not enough gain.

i haven't touched logjam in a while 'cause my dev archives were all on a broken disk that is still sitting here at my feet. i'll integrate it once i get my life back together, but until then know that i appreciate your effort and thank you.

[info]redgreenblue

June 17 2005, 09:10:45 UTC 6 years ago

Thanks for putting this together!

Only one small bug: if you enter some tags and go to preview the HTML, the "Tags" list shows Current Music instead. Something tells me it's this line (near the very end of the patch):

g_string_append_printf(str, "%s: %s
", _("Tags"), entry->music);


I'm going to take a shot in the dark here and say it should read:

g_string_append_printf(str, "%s: %s
", _("Tags"), entry->tags);


I'd make the change myself, but I couldn't get the source to compile on my system, so I just downloaded your binary. Note that this bug has no effect on the tags when posted--those show up as entered when the entry is posted. It's cosmetic really.

Bonus points if you can figure out why this is happening when I attempt to make all (./configure went without a hitch):

make[2]: Leaving directory `/usr/src/logjam--dev--4.5--patch-6/data'
Making all in doc
make[2]: Entering directory `/usr/src/logjam--dev--4.5--patch-6/doc'
make[2]: *** No rule to make target `logjam.1', needed by `all-am'. Stop.
make[2]: Leaving directory `/usr/src/logjam--dev--4.5--patch-6/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/logjam--dev--4.5--patch-6'
make: *** [all] Error 2


(Disclaimer: I am not a programmer.)

[info]nikolasco

June 17 2005, 15:59:08 UTC 6 years ago

You're correct about where the bug is. One detail: the entry element is entry->taglist . I've corrected it and updated the patch, changeset, and binary.

logjam.1 is the man page ... I'm not sure why the file is missing. Here's a copy of it.

[info]redgreenblue

June 17 2005, 17:47:14 UTC 6 years ago

Rockin'! Thanks much.

[info]sohmc

June 17 2005, 12:01:48 UTC 6 years ago

Works for me...

Is the CVS version suppose to say version 4.4.1?

[info]nikolasco

June 17 2005, 16:00:59 UTC 6 years ago

As I understand it, the sources are for 4.5, whenever it's "finished." I guess [info]evan hasn't bothered bumping the version number.

[info]evan

June 19 2005, 18:07:00 UTC 6 years ago

Yeah. LJ used to log version numbers so I didn't want to create extra version numbers unnecessarily. The first 4.5 will be the released one.

[info]ex_ex_5h001

June 25 2005, 19:02:48 UTC 6 years ago

Does --patch7 contains the tags support? Patch and example, given by [info]nikolasco, based on --patch6...

Now I've just print

tla update

and got --patch7. I cannot build it, because some problems with libtool. Is it known issue, or just my troubles?
Create an Account
Forgot your login or password?
Facebook Twitter More login options
English • Español • Deutsch • Русский…