Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482392 - =net-misc/mediatomb-0.12.1-r6[javascript] with =dev-lang/spidermonkey-17.0.0-r1 - configure: error: unable to configure libjs support - JS_NewObject
Summary: =net-misc/mediatomb-0.12.1-r6[javascript] with =dev-lang/spidermonkey-17.0.0-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Whyman (thev00d00) (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-08-25 07:03 UTC by Daniel Troeder
Modified: 2013-08-26 15:31 UTC (History)
1 user (show)

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


Attachments
tiny patch for ebuild (mediatomb-0.12.1-r6.ebuild.patch,519 bytes, patch)
2013-08-25 07:06 UTC, Daniel Troeder
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Troeder 2013-08-25 07:03:41 UTC
The configure run of net-misc/mediatomb-0.12.1-r6 breaks, if USE=javascript and dev-lang/spidermonkey-17.0.0-r1 (slot 17) is installed, because a patch for dev-lang/spidermonkey-1.8.7 is being installed, even though in slot 0 only 1.8.5-r4 is installed.

Appended patch fixes version detection in ebuild.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-lang/spidermonkey:0
2. dev-lang/spidermonkey:17
3. USE=javascript emerge net-misc/mediatomb
Actual Results:  
[..]
 * Applying mediatomb-0.12.1-mozjs187.patch ...   [ ok ]
[..]
checking for sqlite3.h... yes
checking for sqlite3_open in -lsqlite3... yes
checking jsapi.h usability... no
checking jsapi.h presence... no
checking for jsapi.h... no
checking checking alternative libjs header location: /usr/local/include... checking jsapi.h usability... no
checking jsapi.h presence... no
checking for jsapi.h... no
checking checking alternative libjs header location: /usr/include/js... checking jsapi.h usability... yes
checking jsapi.h presence... yes
checking for jsapi.h... yes
jsapi.h found in /usr/include/js
checking for JS_NewObject in -ljs... no
checking for JS_NewObject in -lsmjs... no
checking for JS_NewObject in -lmozjs187... no
checking for JS_NewObject in -lmozjs... no
checking for JS_NewObject in -ljs... no
checking for JS_NewObject in -lsmjs... no
checking for JS_NewObject in -lmozjs187... no
checking for JS_NewObject in -lmozjs... no
libjs/libsmjs link failed
configure: error: unable to configure libjs support

Expected Results:  
Compiles :)

# emerge --info '=net-misc/mediatomb-0.12.1-r6::gentoo'

Portage 2.2.1 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.17, 3.10.5-gentoo-r1.moja x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.5-gentoo-r1.moja-x86_64-Intel-R-_Core-TM-_i5_CPU_M_560_@_2.67GHz-with-gentoo-2.2
KiB Mem:     8026880 total,    320440 free
KiB Swap:    4194300 total,   3850268 free
Timestamp of tree: Fri, 23 Aug 2013 21:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2, 3.2.5-r2, 3.3.2-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.10 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo AzP sunrise multimedia ephemeral spring danielsown
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -flto=4 -fuse-linker-plugin"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -flto=4 -fuse-linker-plugin"
DISTDIR="/gentoo/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="de_DE.utf8@euro"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O2 -flto=4 -fuse-linker-plugin"
MAKEOPTS="-j5"
PKGDIR="/gentoo/pkg+src/pkg"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/gentoo/tmp/build/working"
PORTDIR="/gentoo/portage+edb+pkg/portage"
PORTDIR_OVERLAY="/var/lib/layman/AzP /var/lib/layman/sunrise /var/lib/layman/multimedia /var/lib/layman/ephemeral /var/lib/layman/Spring /gentoo/overlays/daniel"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="10bit X a52 aac aalib acl acpi alsa amd64 apache2 apng applet archive aspell asyncns autoipd avahi bash-completion berkdb bluetooth bonjour branding brasero bzip2 c++0x cairo calendar caps cdaudio cdda cddax cddb cdio cdr cdrkit cli clucene colord config-file connection-sharing consolekit cracklib crypt cryptsetup css cuda cups curl custom-optimization cxx daap dbus dconf device-mapper dga dhclient dhcp divx dns dri dts dv dvb dvd dvdr dvdread dvi emboss enca encode evo exif expat expoblending faac faad fam fame fat ffmpeg fftw firefox flac fontconfig fts fts3 fuse galago gcj gconf gd gdbm gdu gedit gif gimp git gles2 glibc-omitfp gmedia gmp gnome gnome-keyring gnutls gphoto2 gpm gps gs gstreamer gtk gtk3 gzip h323 hal hddtemp hpijs http http-forms http-server hunspell hwdb iconv icu id3tag ieee1394 imagemagick imlib inotify introspection ipv6 irc jabber java joystick jpeg kdeenablefinal kdrive kernel-patch kpathsea lame laptop lcms ldap libass libcaca libnotify libsecret lm_sensors lto lzma lzo mad maps matroska mdnsresponder-compat milter minizip mjpeg mmap mms mmx mmxext mng modules mp3 mp4 mpeg mpi mplayer mudflap multilib musicbrainz nautilus ncurses net network networkmanager nfs nfsv3 nfsv4 nls nntp nptl nsplugin nss ntfs nuv nvidia offensive ogg opengl openmp openrc openssl openvg optimization opus pam pango pch pcre pdf pgo pidgin pipechan plotutils png policykit postproc postscript ppds pth pulseaudio qemu qemu-ifup qos qpa qt-faststart quicktime quotas ramfs rar readline realmedia realtime reiserfs remote romio rss rtmp rtsp ruby18 samba scanner sdl secure-delete semantic-desktop sendto session sftp shout sip smp spell spice sqlite sse sse2 sse3 sse4.1 ssl ssse3 startup-notification stream subtitles subversion svg system-sqlite taglib tagwriting tcpd theora threads thumbnail tiff tls truetype twolame udev udisks unicode upnp upnp-av upower usb uuid v4l vaapi vcd vcdinfo vcdx vdpau video vorbis vpx wav wifi winbind wmf wmp wps wxwidgets x264 xattr xcb xfs xinerama xml xmlrpc xmp xnest xrandr xscreensaver xulrunner xv xvid xvmc zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev aiptek synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p ibm kodak leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax1220u umax_pp xerox_mfp pnm" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-misc/mediatomb-0.12.1-r6 was built with the following:
USE="curl exif ffmpeg inotify javascript magic mp4 sqlite taglib thumbnail zlib -debug -id3tag -lastfm -libextractor -mysql"
Comment 1 Daniel Troeder 2013-08-25 07:06:29 UTC
Created attachment 356948 [details, diff]
tiny patch for ebuild
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2013-08-26 15:27:02 UTC
The patch for 1.8.7 shouldn't let mediatomb compile against spidermonkey-17; and 1.8.7 is also slot-0 (although p.masked as it's not an official mozilla release)

I'll take a look at the patch to see what it's doing.
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2013-08-26 15:31:27 UTC
Right.  has_version check was giving a false positive due to the new slot being installed.  Adjusted the has-version check on all relevant ebuilds.


+  26 Aug 2013; Ian Stakenvicius <axs@gentoo.org> mediatomb-0.12.1-r5.ebuild,
+  mediatomb-0.12.1-r6.ebuild:
+  fixed spidermonkey 1.8.7 has_version conditional patching (bug 482392)
+