Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320915 - net-libs/libproxy-0.4.2 fails with USE=xulrunner XP_UNIX is undefined.
Summary: net-libs/libproxy-0.4.2 fails with USE=xulrunner XP_UNIX is undefined.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-21 18:16 UTC by Erik Zeek
Modified: 2011-04-16 09:08 UTC (History)
10 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,10.91 KB, text/plain)
2010-05-21 18:18 UTC, Erik Zeek
Details
build log (net-libs:libproxy-0.4.2:20100521-174930.log,52.85 KB, text/plain)
2010-05-21 18:20 UTC, Erik Zeek
Details
xulrunner-patch (xulrunner.patch,585 bytes, patch)
2010-05-23 23:33 UTC, Ed Catmur
Details | Diff
Frank's build.log (build.log,45.83 KB, text/plain)
2011-04-16 09:01 UTC, Frank Hsieh
Details
Frank's emerge_info (emerge_info.txt,4.44 KB, text/plain)
2011-04-16 09:01 UTC, Frank Hsieh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Zeek 2010-05-21 18:16:54 UTC
When emerging libproxy I get:

In file included from /usr/lib64/xulrunner/include/js/jspubtd.h:45,
                 from /usr/lib64/xulrunner/include/js/jsapi.h:47,
                 from /gentoo/tmp/portage/net-libs/libproxy-0.4.2/work/libproxy-0.4.2/libproxy/modules/pacrunner_mozjs.cpp:34:
/usr/lib64/xulrunner/include/js/jstypes.h:248:6: error: #error "Must define one of XP_BEOS, XP_OS2, XP_WIN or XP_UNIX"

followed by more errors.  Disabling xulrunner allows the emerge to complete.

emerge -pqv =net-libs/libproxy-0.4.2 =net-libs/xulrunner-1.8.1.19 =net-libs/xulrunner-1.9.2.3-r1 =net-libs/xulrunner-bin-1.8.1.19
[ebuild   R   ] net-libs/xulrunner-bin-1.8.1.19 
[ebuild   R   ] net-libs/xulrunner-1.9.2.3-r1  USE="alsa custom-optimization dbus gnome java libnotify startup-notification system-sqlite wifi -debug" 
[ebuild   R   ] net-libs/xulrunner-1.8.1.19  USE="gnome ipv6 java xinerama -debug" 
[ebuild   R   ] net-libs/libproxy-0.4.2  USE="gnome kde perl python webkit xulrunner* -debug -networkmanager -vala"
Comment 1 Erik Zeek 2010-05-21 18:18:57 UTC
Created attachment 232387 [details]
emerge-info.txt

=emerge --info
Comment 2 Erik Zeek 2010-05-21 18:20:37 UTC
Created attachment 232389 [details]
build log

build log
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-05-21 18:29:22 UTC
This is likely the problem, it's finding 1.8 instead of 1.9:

-- checking for one of the modules 'xulrunner-js;firefox-js;mozilla-js;seamonkey-js'
--   found xulrunner-js, version 1.8.1.19
Comment 4 Vladimir Kokarev 2010-05-21 18:45:21 UTC
yep, that's the problem
"solved" by unmerging xulrunner-1.8*, emerging libproxy, emerging back xulrunner-1.8*
Comment 5 Ed Catmur 2010-05-23 23:33:40 UTC
Created attachment 232643 [details, diff]
xulrunner-patch

Switch search order to hit 1.9.x first.
Comment 6 Martin von Gagern 2010-05-25 19:55:08 UTC
(In reply to comment #5)
> Switch search order to hit 1.9.x first.

Works for me (~amd64, ), thanks a lot!

In case you're interested, these are the xulrunner packages I've got installed:
[I] net-libs/xulrunner (1.8.1.19(1.8)@20.01.2010 1.9.2.3-r1(1.9)@09.04.2010)
[I] net-libs/xulrunner-bin (1.8.1.19@04.12.2009)
Comment 7 Brandon Penglase 2010-05-26 00:29:11 UTC
Confirmed. Patched worked for me, Thanks!

For reference,
net-libs/xulrunner-1.9.2.3-r1
net-libs/xulrunner-1.8.1.19

Were both installed, the 1.8 version only being pulled in by dev-java/swt-3.5.2 in my case (Palm WebOS Development)
Comment 8 Joost Ruis 2010-06-09 08:30:47 UTC
If that patch from Comment #5 works pleases commit it to tree. 
This is a very obstructing thing.
Comment 9 Joost Ruis 2010-06-09 08:39:25 UTC
By the way the patch works just fine, thx @Ed Catmur
Comment 10 Joe Sapp (RETIRED) gentoo-dev 2010-06-17 22:48:48 UTC
Copying Olivier since he committed this ebuild.  Maybe he has more background with this package and can decide on the attached patch.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2010-06-26 22:30:55 UTC
The patch looks OK to me, but it's really pointless as xulrunner-1.8 is about to get masked and removed from tree in bug 324953 effectively "killing this problem" from tree.
Comment 12 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-06-29 02:17:58 UTC
@everyone: Nothing on your systems should be pulling in xulrunner:1.8 anymore, if something is, please file a bug about it so that the package can be fixed.

Thank you for the patch, but this report is WONTFIX since xulrunner:1.8 should not be installed on any systems anymore.
Comment 13 Frank Hsieh 2011-04-16 09:01:22 UTC
Created attachment 270169 [details]
Frank's build.log
Comment 14 Frank Hsieh 2011-04-16 09:01:46 UTC
Created attachment 270171 [details]
Frank's emerge_info
Comment 15 Frank Hsieh 2011-04-16 09:03:51 UTC
Hi, 
I found another issue:
(I have attached my emerge info and build log)

-- checking for one of the modules 'xulrunner-js;firefox-js;mozilla-js;seamonkey-js'
--   found firefox-js, version 2.0.0.14

then 
Building CXX object libproxy/CMakeFiles/libproxy.dir/modules/pacrunner_mozjs.cpp.o
In file included from /usr/lib/mozilla-firefox/include/js/jspubtd.h:45,
                 from /usr/lib/mozilla-firefox/include/js/jsapi.h:47,
                 from /var/tmp/portage/net-libs/libproxy-0.4.6/work/libproxy-0.4.6/libproxy/modules/pacrunner_mozjs.cpp:34:
/usr/lib/mozilla-firefox/include/js/jstypes.h:248:6: error: #error "Must define one of XP_BEOS, XP_OS2, XP_WIN or XP_UNIX"
/usr/lib/mozilla-firefox/include/js/jstypes.h:264:2: error: #error No suitable type for JSInt8/JSUint8
/usr/lib/mozilla-firefox/include/js/jstypes.h:277:2: error: #error No suitable type for JSInt16/JSUint16
/usr/lib/mozilla-firefox/include/js/jstypes.h:297:2: error: #error No suitable type for JSInt32/JSUint32
/usr/lib/mozilla-firefox/include/js/jstypes.h:348:2: error: #error 'sizeof(int)' not sufficient for platform use
In file included from /usr/lib/mozilla-firefox/include/js/jspubtd.h:45,
                 from /usr/lib/mozilla-firefox/include/js/jsapi.h:47,
                 from /var/tmp/portage/net-libs/libproxy-0.4.6/work/libproxy-0.4.6/libproxy/modules/pacrunner_mozjs.cpp:34:
/usr/lib/mozilla-firefox/include/js/jstypes.h:329: error: 'JSUint32' does not name a type
/usr/lib/mozilla-firefox/include/js/jstypes.h:393: error: 'JSIntn' does not name a type
/usr/lib/mozilla-firefox/include/js/jstypes.h:403: error: 'JSUint8' does not name a type
In file included from /usr/lib/mozilla-firefox/include/js/jstypes.h:416,
                 from /usr/lib/mozilla-firefox/include/js/jspubtd.h:45,
                 from /usr/lib/mozilla-firefox/include/js/jsapi.h:47,
                 from /var/tmp/portage/net-libs/libproxy-0.4.6/work/libproxy-0.4.6/libproxy/modules/pacrunner_mozjs.cpp:34:
/usr/lib/mozilla-firefox/include/js/jsotypes.h:73: error: 'JSUintn' does not name a type
/usr/lib/mozilla-firefox/include/js/jsotypes.h:76: error: 'JSUintn' does not name a type
/usr/lib/mozilla-firefox/include/js/jsotypes.h:79: error: 'JSUint32' does not name a type
/usr/lib/mozilla-firefox/include/js/jsotypes.h:83: error: 'JSUint16' does not name a type
/usr/lib/mozilla-firefox/include/js/jsotypes.h:84: error: 'JSUint8' does not name a type
/usr/lib/mozilla-firefox/include/js/jsotypes.h:87: error: 'JSIntn' does not name a type
/usr/lib/mozilla-firefox/include/js/jsotypes.h:106: error: 'JSInt32' does not name a type
/usr/lib/mozilla-firefox/include/js/jsotypes.h:110: error: 'JSInt16' does not name a type
/usr/lib/mozilla-firefox/include/js/jsotypes.h:111: error: 'JSInt8' does not name a type
Comment 16 Frank Hsieh 2011-04-16 09:08:40 UTC
the issue happens when emerging libproxy

[ebuild     U ] net-libs/libproxy-0.4.6 [0.2.3-r3] USE="perl%* python xulrunner -gnome -kde -mono% -networkmanager -test% -webkit" 0 kB