After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 499050 - fix build against xulrunner 1.9
fix build against xulrunner 1.9
Status: RESOLVED FIXED
Product: devhelp
Classification: Applications
Component: General
git master
Other All
: Normal normal
: ---
Assigned To: Mikael Hallendal
Mikael Hallendal
Depends on:
Blocks:
 
 
Reported: 2007-11-22 21:40 UTC by Matthias Clasen
Modified: 2008-05-28 15:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
xulrunner patch (1.00 KB, patch)
2007-11-22 21:40 UTC, Matthias Clasen
committed Details | Review
fix build against xulrunner 1.9b5 (13.19 KB, patch)
2008-05-01 23:52 UTC, Christian Kirbach
none Details | Review
Current working patch (19.36 KB, patch)
2008-05-12 19:39 UTC, Josselin Mouette
accepted-commit_now Details | Review
Patch working for gecko 1.8 and 1.9 (19.61 KB, patch)
2008-05-27 11:38 UTC, Josselin Mouette
none Details | Review

Description Matthias Clasen 2007-11-22 21:40:03 UTC
Here is a patch that we needed to build devhelp against xulrunner 1.9
Comment 1 Matthias Clasen 2007-11-22 21:40:56 UTC
Created attachment 99498 [details] [review]
xulrunner patch
Comment 2 Richard Hult 2007-12-03 22:40:05 UTC
Thanks, committed.

(I tested quickly with gecko 1.8 and it worked, if it breaks older versions we could just bump the requirement imo.)
Comment 3 Christian Kirbach 2008-05-01 23:49:20 UTC
Does not work any more with xulrunner 1.9b5
Comment 4 Christian Kirbach 2008-05-01 23:52:35 UTC
Created attachment 110253 [details] [review]
fix build against xulrunner 1.9b5

work in progress. configure succeeds but build fails. advice welcome

/bin/bash ../libtool --tag=CC   --mode=link gcc -Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -Werror -pthread -DORBIT2=1 -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib/glib-2.0/include -I/opt/gnome2/include/gtk-2.0 -I/opt/gnome2/lib/gtk-2.0/include -I/opt/gnome2/include/atk-1.0 -I/opt/gnome2/include/cairo -I/opt/gnome2/include/pango-1.0 -I/opt/gnome2/include -I/opt/gnome2/include/pixman-1 -I/opt/gnome2/include/libglade-2.0 -I/opt/gnome2/include/libxml2 -I/opt/gnome2/include/gconf/2 -I/opt/gnome2/include/orbit-2.0 -I/opt/gnome2/include/libwnck-1.0 -I/opt/gnome2/include/startup-notification-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12   -DXPCOM_GLUE -fshort-wchar -I/usr/include/xulrunner-1.9b5/stable -I/usr/include/nspr   -DXPCOM_GLUE -fshort-wchar -I/usr/include/xulrunner-1.9b5/unstable -I/usr/include/nspr    -g -O1 -Wall -march=pentium-m -R   -o libdevhelp-1.la -rpath /opt/gnome2/lib libdevhelp_1_la-bacon-message-connection.lo libdevhelp_1_la-dh-marshal-main.lo libdevhelp_1_la-dh-base.lo libdevhelp_1_la-dh-book-tree.lo libdevhelp_1_la-dh-error.lo libdevhelp_1_la-dh-html.lo libdevhelp_1_la-dh-keyword-model.lo libdevhelp_1_la-dh-link.lo libdevhelp_1_la-dh-search.lo libdevhelp_1_la-dh-parser.lo libdevhelp_1_la-dh-preferences.lo libdevhelp_1_la-dh-util.lo libdevhelp_1_la-dh-window.lo libdevhelp_1_la-eggfindbar.lo libcppwrapper.la -pthread -L/opt/gnome2/lib -lgthread-2.0 -lrt -lglade-2.0 -lxml2 -lgconf-2 -lwnck-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -L/usr/lib/xulrunner-devel-1.9b5/lib -lxpcomglue    
libtool: link: only absolute run-paths are allowed
make[3]: *** [libdevhelp-1.la] Fehler 1
Comment 5 Christian Kirbach 2008-05-01 23:53:58 UTC
shamelessly ripped m4/gecko.m4 and ideas from yelp trunk
Comment 6 Josselin Mouette 2008-05-12 19:39:57 UTC
Created attachment 110798 [details] [review]
Current working patch

Here is the patch we use in Debian.
 - The m4 stuff based on Christian's work.
 - Makefile.am is modified to remove the -R flag unless appropriate.
 - The separation between libcppwrapper.la and libdevhelp-1.la is dropped; the flags should still be different thanks to CXXFLAGS, and with this separation libtool gets confused and forgets to link with g++ instead of gcc. (It works with gecko 1.8 because dynamic linking brings libstdc++ through libxul.so.)
 - dh_gecko_utils_init is patched to use libxpcomglue (patch from Ubuntu).
 - The color pref in default-prefs-gecko-1-9.js is changed to get the colors correctly.
Comment 7 Richard Hult 2008-05-20 20:17:23 UTC
Thanks. You say it's a "current working patch", does that mean it's work in progress? I have no idea about the black magic that is gecko builds, but feel free to commit to the gnome-2-22 branch (svn.gnome.org/svn/devhelp/branches/gnome-2-22) if you think that's the right thing to do.


Comment 8 Josselin Mouette 2008-05-23 09:43:17 UTC
I mean that this is the patch we apply to produce a working version of devhelp using xulrunner 1.9 beta5.

However it looks like the patch breaks the build against xulrunner 1.8. I’ll fix that first before committing.
Comment 9 Josselin Mouette 2008-05-27 11:38:58 UTC
Created attachment 111599 [details] [review]
Patch working for gecko 1.8 and 1.9

Here is the fixed version that builds against both gecko 1.8 and 1.9.
Comment 10 Josselin Mouette 2008-05-27 11:58:46 UTC
As requested, this is now committed (r1012) to the 2.22 branch.
Comment 11 Richard Hult 2008-05-28 15:58:23 UTC
Closing then, thanks.