Magellan Linux

Diff of /trunk/extras/spidermonkey/spidermonkey-52.7.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 30866 by niro, Mon Apr 30 14:51:41 2018 UTC revision 30873 by niro, Thu May 3 08:28:54 2018 UTC
# Line 20  SRCFILE="FIREFOX_${PVER//./_}esr_RELEASE Line 20  SRCFILE="FIREFOX_${PVER//./_}esr_RELEASE
20  SRCDIR="${BUILDDIR}/mozilla-unified-FIREFOX_${PVER//./_}esr_RELEASE"  SRCDIR="${BUILDDIR}/mozilla-unified-FIREFOX_${PVER//./_}esr_RELEASE"
21    
22  EMUL_LINUX_32=true  EMUL_LINUX_32=true
23  sminclude multilib  sminclude multilib python
24  msetfeature "!check"  msetfeature "!check"
25    
26  SRC_URI=(  SRC_URI=(
# Line 45  src_prepare() Line 45  src_prepare()
45   # create missing python execs on multilib systems   # create missing python execs on multilib systems
46   if [[ ${ARCH} = x86_64 ]] && [[ $(mlibdir) != lib ]]   if [[ ${ARCH} = x86_64 ]] && [[ $(mlibdir) != lib ]]
47   then   then
48   cd ${SRCDIR}   for abi in ${MULTILIB_ABIS}
49   sed -i '/^rm -rf _virtualenv/d' configure.in || die   do
50   sed -i '/^mkdir -p _virtualenv/d' configure.in || die   cd ${SRCDIR}-${abi}
51     sed -i '/^rm -rf _virtualenv/d' configure.in || die
52   local _mychost="${CHOST}"   sed -i '/^mkdir -p _virtualenv/d' configure.in || die
53   install -d obj-${_mychost}/_virtualenv/bin || die  
54   cp -a /usr/bin/python-m32 obj-${_mychost}/_virtualenv/bin || die   install -d _virtualenv/bin || die
55   cp -a /usr/bin/python-m64 obj-${_mychost}/_virtualenv/bin || die   cp -a /usr/bin/python-m32 _virtualenv/bin || die
56   cp -a /usr/bin/python$(mget-python-version)-m32 obj-${_mychost}/_virtualenv/bin || die   cp -a /usr/bin/python-m64 _virtualenv/bin || die
57   cp -a /usr/bin/python$(mget-python-version)-m64 obj-${_mychost}/_virtualenv/bin || die   cp -a /usr/bin/python$(mget-python-version)-m32 _virtualenv/bin || die
58     cp -a /usr/bin/python$(mget-python-version)-m64 _virtualenv/bin || die
59     done
60   fi   fi
61    
62     export WANT_AUTOCONF=2.1
63     autoconf || die
64  }  }
65    
66  src_compile()  src_compile()
# Line 64  src_compile() Line 69  src_compile()
69   export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'   export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'
70   export CC=gcc   export CC=gcc
71   export CXX=g++   export CXX=g++
72   export PYTHON=/usr/bin/python2   export SHELL="${SHELL}"
73    
74   SRCSUBDIR="js/src" \   SRCSUBDIR="js/src" \
75   mconfigure \   mconfigure \
76   --disable-debug \   --disable-debug \
77   --disable-debug-symbols \   --disable-debug-symbols \
78   --disable-strip \   --disable-strip \
79   --enable-gold \   --disable-gold \
80   --enable-optimize="-O2" \   --enable-optimize="-O2" \
81   --enable-pie \   --enable-pie \
82   --enable-posix-nspr-emulation \   --enable-posix-nspr-emulation \
# Line 84  src_compile() Line 89  src_compile()
89   --without-system-icu \   --without-system-icu \
90   || die   || die
91    
92   SRCSUBDIR="js/src" mmake || die   # shell export fixes some bugs in a chroot environment
93     # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450
94     SRCSUBDIR="js/src" SHELL="${SHELL}" mmake || die
95  }  }
96    
97  src_install()  src_install()
98  {  {
99   SRCSUBDIR="js/src" mmake DESTDIR=${BINDIR} install || die   SRCSUBDIR="js/src" SHELL="${SHELL}" mmake DESTDIR=${BINDIR} install || die
100  }  }

Legend:
Removed from v.30866  
changed lines
  Added in v.30873