Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 316119 - www-client/epiphany-extensions-2.26.1-r1 builds with -DG_DISABLE_DEPRECATED & cie
Summary: www-client/epiphany-extensions-2.26.1-r1 builds with -DG_DISABLE_DEPRECATED &...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gtk+-2.20
  Show dependency tree
 
Reported: 2010-04-19 15:27 UTC by David King
Modified: 2010-10-29 21:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for epiphany 2.26.1-r1 ebuild (epiphany-extensions-2.26.1-r1.ebuild.patch,467 bytes, patch)
2010-04-19 15:27 UTC, David King
Details | Diff
better patch (epiphany-extensions-2.26.1-r1.ebuild.patch,485 bytes, patch)
2010-04-19 15:29 UTC, David King
Details | Diff
build.log from in-tree epiphany-extensions compiled against gtk+-2.20.0 from gnome overlay (epiphany-extension-2.26.1-r1.build.log,392.81 KB, text/plain)
2010-04-22 09:21 UTC, David King
Details
backwards compatibility patch (epiphany-extensions-2.26.1-fix-deprecated-accessors.patch,6.20 KB, patch)
2010-04-22 20:47 UTC, David King
Details | Diff
leave maintainer mode alone, just patch sources (epiphany-extensions-2.26.1-r1.ebuild.patch,566 bytes, patch)
2010-04-22 20:48 UTC, David King
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David King 2010-04-19 15:27:17 UTC
epiphany-extensions uses automake's maintainer mode feature to enable deprecation flags. As eautoreconf is used, --disable-maintainer-mode should be passed to configure. Otherwise, the deprecation flags will be enabled and the build will fail for newer versions of GTK+ (2.20, in my case). The most recent version of epiphany-extensions (2.30.0) bumped the GTK+ requirement but still uses maintainer mode to enable the deprecation flags, so it could still break at some point. epiphany-extensions-2.28.1-r2 does this right, but 2.22.2, 2.24.3 and 2.24.3-r10 do not (although I have not checked the tarballs to see if maintainer mode is used in those versions).
Comment 1 David King 2010-04-19 15:27:56 UTC
Created attachment 228405 [details, diff]
patch for epiphany 2.26.1-r1 ebuild
Comment 2 David King 2010-04-19 15:29:32 UTC
Created attachment 228407 [details, diff]
better patch
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-04-19 23:35:59 UTC
could you provide a build.log showing the issue ?
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-04-21 22:05:27 UTC
Feel free to contribute a backward compatible patch like we handled the libxklavier-3.8 -> 4.0 migration, it'll help things go a lot faster. Thanks.
Comment 5 David King 2010-04-22 09:21:32 UTC
Created attachment 228719 [details]
build.log from in-tree epiphany-extensions compiled against gtk+-2.20.0 from gnome overlay

(In reply to comment #3)
> could you provide a build.log showing the issue ?

Sure, and sorry for not attaching this earlier. The build succeeds, but with warnings. At runtime, epiphany fails to start giving this warning (I have the pageinfo extension enabled):

epiphany: symbol lookup error: /usr/lib64/epiphany/2.26/extensions/libpageinfoextension.so: undefined symbol: GTK_WIDGET_REALIZED

Adding --disable-maintainer-mode fixes both of these issues and I can use epiphany again with gtk+-2.20.0. Let me know if you need any more information.

(In reply to comment #4)
> Feel free to contribute a backward compatible patch like we handled the
> libxklavier-3.8 -> 4.0 migration, it'll help things go a lot faster. Thanks.

OK, I will try to get something working this evening. Do you mean some code that looks like:

#if GTK_CHECK_VERSION(2, 19, 7)
  gtk_widget_get_realized(blah);
#else
  GTK_WIDGET_REALIZED(blah);
#endif

or something more sophisticated?
Comment 6 David King 2010-04-22 20:47:31 UTC
Created attachment 228813 [details, diff]
backwards compatibility patch

This patch assumes that the deprecated macros are disabled, and uses the new accessor functions if compiling against gtk+ 2.19.7 and above. Tested successfully with gtk+-2.18.7 and gtk+-2.20.0.
Comment 7 David King 2010-04-22 20:48:36 UTC
Created attachment 228815 [details, diff]
leave maintainer mode alone, just patch sources
Comment 8 Andrew Brouwers 2010-07-07 17:54:13 UTC
With 2.28 being the latest stable, perhaps this can be closed?  The 2.30 ebuild seems to do this correctly too.
Comment 9 Pacho Ramos gentoo-dev 2010-09-03 18:31:08 UTC
I vote for simply passing "--disable-maintainer-mode" for 2.26 since I doubt it will be still available when gtk+3 hits the tree
Comment 10 Pacho Ramos gentoo-dev 2010-10-29 21:16:26 UTC
+*epiphany-extensions-2.32.0 (29 Oct 2010)
+
+  29 Oct 2010; Pacho Ramos <pacho@gentoo.org>
+  epiphany-extensions-2.26.1-r1.ebuild,
+  -epiphany-extensions-2.28.1-r2.ebuild,
+  -files/epiphany-extensions-2.28.1-auto-scroller-broken.patch,
+  +epiphany-extensions-2.32.0.ebuild:
+  Version bump for Gnome 2.32: Remove deprecated GTK+ symbols, update
+  html5tube extension to handle the latest youtube layout changes. Let it
+  build when having python3 as default interpreter. Pass
+  --disable-maintainer-mode to 2.26 since it is still needed for ppc64.
+  Remove old testing.
+