Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 544724

Summary: dev-lang/spidermonkey:17 fails on prepare step
Product: Gentoo/Alt Reporter: i.Dark_Templar <idarktemplar>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED OBSOLETE    
Severity: normal CC: idarktemplar
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
spidermonkey-17.0.0-r3.ebuild

Description i.Dark_Templar 2015-03-28 08:38:43 UTC
Emerge on Gentoo/FreeBSD fails:
 [31;01m*[0m ERROR: dev-lang/spidermonkey-17.0.0-r3::gentoo failed (prepare phase):
 [31;01m*[0m   (no error message)
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  93:  Called src_prepare
 [31;01m*[0m   environment, line 3027:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m           ln -sfn "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk" || die;

Reproducible: Always

Steps to Reproduce:
1. emerge spidermonkey:17
Actual Results:  
Emerge fails on prepare step

Expected Results:  
Emerge should succeed

I've looked into sources of spidermonkey:17 and spidermonkey:24 and it looks like file Linux_All.mk is not present anymore.

# emerge --info
Portage 2.2.18 (python 2.7.9-final-0, default/bsd/fbsd/x86/9.2, gcc-4.8.4, freebsd-lib-9.2, 9.2-Gentoo i386)
=================================================================
System uname: FreeBSD-9.2-Gentoo-i386-32bit-ELF
KiB Mem:     1027488 total
KiB Swap:          0 total
Timestamp of repository gentoo: Fri, 20 Mar 2015 00:45:01 +0000
sh sh
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:         4.3_p33-r2::gentoo
dev-lang/perl:           5.20.2::gentoo
dev-lang/python:         2.7.9-r2::crossdev
dev-util/cmake:          3.1.0::gentoo
sys-apps/baselayout:     2.2::gentoo
sys-apps/openrc:         0.13.11::gentoo
sys-devel/autoconf:      2.69-r1::gentoo
sys-devel/automake:      1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:      2.25::gentoo
sys-devel/gcc:           4.8.4::gentoo
sys-devel/gcc-config:    1.8::gentoo
sys-devel/libtool:       2.4.6-r1::gentoo
sys-devel/make:          4.1-r1::gentoo
sys-freebsd/freebsd-lib: 9.2::crossdev (virtual/os-headers)
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local-overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

crossdev
    location: /usr/local/portage_crossdev
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-gentoo-freebsd9.2"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-gentoo-freebsd9.2"
CONFIG_PROTECT="/boot/device.hints /etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --binpkg-respect-use=y --autounmask=n"
FCFLAGS="-march=i486 -O2 -pipe"
FEATURES="binpkg-logs chflags distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-march=i486 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK=" /etc/systemd /lib*/systemd /lib*/tmpfiles.d /usr/lib*/systemd /usr/lib*/tmpfiles.d /usr/lib*/python*/test "
LDFLAGS=""
PKGDIR="/usr/portage/packages"
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="/var/tmp"
USE="X acl bidi bzip2 c++0x cleartype consolekit cracklib crypt custom-cflags custom-optimization cxx dbus dga dri fontconfig fontforge freetype fribidi gmp iconv icu ipv6 java5 java6 kde libav lzma mmap modules ncurses nls opengl openmp oss pam pch pcntl pcre pic plasma png policykit posix private-headers python2 qt3support qt4 readline ssl startup-notification system-cairo system-icu system-jpeg system-libvpx system-sqlite tcpd threads truetype unicode usb x86-fbsd xattr xcb xcomposite xft xinerama xscreensaver zlib" ABI_X86="32" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_
FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="FreeBSD" 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 ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en ru_RU en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby20" USERLAND="BSD" VIDEO_CARDS="vesa" 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, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 i.Dark_Templar 2015-03-28 08:39:11 UTC
Created attachment 399920 [details]
build.log
Comment 2 i.Dark_Templar 2015-03-28 08:41:26 UTC
Created attachment 399922 [details]
spidermonkey-17.0.0-r3.ebuild

Fixed ebuild. At least it built fine with this change.

$ diff -u /usr/{portage,local/portage_crossdev}/dev-lang/spidermonkey/spidermonkey-17.0.0-r3.ebuild
--- /usr/portage/dev-lang/spidermonkey/spidermonkey-17.0.0-r3.ebuild    2014-04-19 22:01:10.000000000 +0400
+++ /usr/local/portage_crossdev/dev-lang/spidermonkey/spidermonkey-17.0.0-r3.ebuild     2015-03-28 10:55:47.000000000 +0300
@@ -48,11 +48,6 @@
        # Remove obsolete jsuword bug #506160
        sed -i -e '/jsuword/d' "${BUILDDIR}"/jsval.h ||die "sed failed"
        epatch_user
-
-       if [[ ${CHOST} == *-freebsd* ]]; then
-               # Don't try to be smart, this does not work in cross-compile anyway
-               ln -sfn "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk" || die
-       fi
 }
 
 src_configure() {
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-11 17:37:09 UTC
*-fbsd is gone.