GNOME Bugzilla – Bug 686975
totem-pl-parser has an automagic dependency on multiple gmime versions
Last modified: 2017-08-13 09:52:28 UTC
As reported in: https://bugzilla.gnome.org/show_bug.cgi?id=686510 Also totem-pl-parser is affected by this. Explained at: http://www.gentoo.org/proj/en/qa/automagic.xml totem-pl-parser is checking for gmime-2.4 and later gmime-2.6. If both, gmime-2.4 and 2.6 are installed at compile time, tomboy will use gmime-2.4 and, then, if later gmime-2.4 is removed due no package really needing it (as, currently, nearly all packages are moved to support gmime-2.6 also), it will break. Ideally, totem-pl-parser would have a "--with-gmime=[2.4,2,6]" configure option... but taken care gmime-2.2 is dead and the same will occur for 2.4, I think it doesn't deserve the effort and we could go for 2.6 usage (I can attach a trivial patch for this if you want). Thanks
Created attachment 227399 [details] [review] 0001-Force-gmime-2.6-usage-to-prevent-automagic-dependenc.patch
Other option would be to check for newer version first based in current way or similar to the asterisk way of checking: if test "x${PBX_GMIME}" = "x0" -a "${PKGCONFIG}" != "No"; then # Later versions of GMime use pkg-config for ver in 2.6 2.4 2.2 2.0; do if ! ${PKGCONFIG} --exists gmime-$ver; then continue fi # If we got here, we have this version: GMIME_INCLUDE=$(${PKGCONFIG} gmime-$ver --cflags 2>/dev/null) GMIME_LIB=$(${PKGCONFIG} gmime-$ver --libs) PBX_GMIME=1 AC_DEFINE([HAVE_GMIME], 1, [Define if your system has the GMIME libraries.]) break; done fi If newer version is checked before older one, when we drop old version (due upstream deprecating it) we wouldn't need to rebuild packages to catch newer version
any news on this?
Review of attachment 227399 [details] [review]: Given that gmime 2.6 has been packaged in Ubuntu and Fedora for at least a year, I think it’s OK to just go with a hard dependency on 2.6. Please commit to master, thanks.
(In reply to comment #4) > Review of attachment 227399 [details] [review]: > > Given that gmime 2.6 has been packaged in Ubuntu and Fedora for at least a > year, I think it’s OK to just go with a hard dependency on 2.6. Please commit > to master, thanks. I don't have enough permissions to commit it myself :(
Fixed the horrible commit message (use a text editor that warns you after 72 chars subjects please ;) and committed. Thanks for the patch.