Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361663 - media-gfx/freewrl fails to build
Summary: media-gfx/freewrl fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
: 363231 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-02 09:56 UTC by Samuli Suominen (RETIRED)
Modified: 2011-05-21 05:38 UTC (History)
4 users (show)

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


Attachments
fix to support spidermonkey-1.9 (fix.patch,1.31 KB, text/plain)
2011-04-03 15:26 UTC, Ian Stakenvicius (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2011-04-02 09:56:51 UTC
It's not legal to force downgrade of an package on the same stabilization level (in this case, ~arch).   Either package.use.mask USE="xulrunner", mask the package, remove the whole USE flag, or better yet, fix it.

I'll package.mask freewrl for QA in 3 days unless this is handled.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-04-02 14:30:22 UTC
The proxied maintainer gave me an ebuild to workaround this at #-dev-help:

*freewrl-1.22.10-r1 (02 Apr 2011)

  02 Apr 2011; Samuli Suominen <ssuominen@gentoo.org> freewrl-1.22.10.ebuild,
  +freewrl-1.22.10-r1.ebuild:
  Rename USE="static" to USE="static-libs" wrt #361659. Force spidermonkey as
  javascript engine until xulrunner-2 support is available wrt #361663.
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-04-02 20:43:56 UTC
Hi guys,

My freewrl-1.22.10-r1 fails in src_compile with:

# ------------------
Invoking recipe from Makefile:1315 to update target `ui/statusbar.lo'.
Putting child 0x8106050 (ui/statusbar.lo) PID 16582 on the chain.
Live child 0x8106050 (ui/statusbar.lo) PID 16582
  CC     ui/statusbar.lo
Reaping winning child 0x8106050 PID 16582
Removing child 0x8106050 PID 16582 from chain.
      Successfully remade target file `ui/statusbar.lo'.
     Finished prerequisites of target file `libFreeWRL.la'.
    Must remake target `libFreeWRL.la'.
Invoking recipe from Makefile:996 to update target `libFreeWRL.la'.
Putting child 0x80f92e8 (libFreeWRL.la) PID 16601 on the chain.
Live child 0x80f92e8 (libFreeWRL.la) PID 16601
  CCLD   libFreeWRL.la
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ljs
collect2: ld returned 1 exit status
# ------------------

Changing:
-       JAVASCRIPT_ENGINE_LIBS="-ljs"
+       JAVASCRIPT_ENGINE_LIBS="-lmozjs"

seems to solve the issue locally (don't know if it's the right solution though). Reopening for further investigation.
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2011-04-02 23:40:36 UTC
That doesn't seem right; spidermonkey provides libjs, not libmozjs;  it seems that your change would force a linkage against xulrunner again.

Anyhow, I'm on it.
Comment 4 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-04-03 00:02:46 UTC
(octave) gaia bigloo3.6a # qlist spidermonkey-1.9.2.15 | grep lib
/usr/lib/libjs_static.a
/usr/lib/libmozjs.so
(octave) gaia bigloo3.6a # find /usr/lib -name libjs.so
(octave) gaia bigloo3.6a # find /usr/lib -name libmozjs.so
/usr/lib/seamonkey/libmozjs.so
/usr/lib/libmozjs.so
(octave) gaia bigloo3.6a #
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2011-04-03 02:06:25 UTC
I'm on it -- i've got a work-around for ./configure to detect the older spidermonkey through pkg-config; this'll let both 1.9* and 1.7* be detected properly.

Should have a new version in a few hours.
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2011-04-03 15:26:06 UTC
Created attachment 268345 [details]
fix to support spidermonkey-1.9

This patch switches the library used in freewrl-1.22.10-r1.ebuild, to reflect the change between spidermonkey-1.7 and spidermonkey-1.9.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2011-04-12 08:40:14 UTC
*** Bug 363231 has been marked as a duplicate of this bug. ***
Comment 8 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-04-12 10:54:27 UTC
Can someone from @mozilla herd, verify that the patch above is ok? I will fix this, then myself. I'm also thinking of taking maintainership this package.
Comment 9 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-04-12 10:54:46 UTC
of*
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2011-05-21 05:38:39 UTC
(In reply to comment #6)
> Created attachment 268345 [details]
> fix to support spidermonkey-1.9
> 
> This patch switches the library used in freewrl-1.22.10-r1.ebuild, to reflect
> the change between spidermonkey-1.7 and spidermonkey-1.9.

+  21 May 2011; Samuli Suominen <ssuominen@gentoo.org>
+  freewrl-1.22.10-r1.ebuild:
+  Use -lmozjs instead of -ljs and force at least spidermonkey >= 1.9 wrt
+  #361663 by Ian Stakenvicius.