Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14970 - mozilla 1.2.1_rc5 xft ebuild
Summary: mozilla 1.2.1_rc5 xft ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-02 08:18 UTC by oosterwoud
Modified: 2003-02-09 17:39 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description oosterwoud 2003-02-02 08:18:33 UTC
when emerging net-www/mozilla-1.2.1rc5 the installer crashes after configuring (and just 
before the compiling ) the Xft package, which is in mozilla ebuild. 

Reproducible: Always
Steps to Reproduce:
1.emerge mozilla 
2. 
3. 
Actual Results:  
 * Building Xft2.0... 
make: *** No rule to make target `2'.  Stop. 
 
!!! ERROR: net-www/mozilla-1.2.1-r5 failed. 
!!! Function src_compile, Line 432, Exitcode 2 
!!! (no error message) 
 

Expected Results:  
compile the xft package  

Intel 1.0 Gig PIII with 256 Mb ram
Comment 1 oosterwoud 2003-02-02 08:57:26 UTC
With a little tweaking of the ebuild file, the problem comes again just before 
compiling mozilla. 
The problem also occured with the rc4 file of the mozilla 1.2.1. ebuild 
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-03 13:55:55 UTC
This is where Xft gets build:

----------------------------------------
                einfo "Configuring Xft2.0..."
                cd ${FC_S}
                ./configure --prefix=${WORKDIR}/Xft \
                        --sysconfdir=/etc \
                        --x-includes=${WORKDIR}/Xft/include \
                        --x-libraries=${WORKDIR}/Xft/lib || die
        
                einfo "Building Xft2.0..."
                # Use install as libXft_moz.so so that it do not conflict with
                # system wide libs ...
                emake LIBBASE="libXft_moz.so" || die
-----------------------------------------

I am sorry, but there must be some kind of memory/filesystem corruption that
is causing this.  I am not saying its hardware related, but maybe try a
vanilla kernel or such.
Comment 3 oosterwoud 2003-02-04 11:34:50 UTC
mozilla 1.0.1 is emerges good. And i am using a vanilla kernel. I found the part of 
ebuilding, but could not find the problem. 
Comment 4 oosterwoud 2003-02-04 18:41:45 UTC
Allright, found the cause.
When enabling the MAKEOPTS="-j2" option in make.conf, the problem arises.
(make.globals is not sourced from emake, the MAKEOPTS param is here also, but not harmful)
The problem dissapears with outcommenting this rule.

Could not find the source exactly, because i could not find function unpack ${A}  under src-unpack() in mozilla ebuild (1.2.1-r5) but
when MAKEOPTS = -j2 (line enabled in make.conf), because of some reason the program tries to execute   make 2  -j2  in stead of make -j2.
And this is where the fault   " make: *** No rule to make target `2'.  Stop. " comes from.
Bug ?
 
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-04 19:41:05 UTC
Attach you /usr/portage/eclass/eutils.eclass please.
Comment 6 oosterwoud 2003-02-05 14:36:09 UTC
Because of not succeeding to send an attachment please find here the requested file : 
http://www.nedlinux.nl/~scdgro/eutils.eclass 
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-05 17:55:14 UTC
Seems like get_number_of_jobs is setting MAKEOPTS to "-2" for some reason.  I
cannot see why though.  I have -j6, and it works fine.  Ill try with -j2, although
in theory it should not make a difference.
Comment 8 oosterwoud 2003-02-06 11:26:02 UTC
I also did some testing. I came to the next conclusion :
What you didn't know : I had   MAKEOPTS="-j 2", instead of MAKEOPTS="-j2" (watch the whitespace difference ) or whatever the number is.

when you have the whitespace, get_number_of_jobs is unable to replace the -j option correctly with the # of processors+1.

When this is set correctly, mozilla and Xft compile correctly.

(eeeh, for one thing, still got a problem but on the installing part of mozilla. after correctly compiling mozilla,it should install libnss3.so but the program says : libnss3.so not found. i'll do some testing before submitting this bug)
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-09 17:39:35 UTC
Should be fixed on CVS.

-----------------------------------------------------------
Index: eutils.eclass
===================================================================
RCS file: /home/cvsroot/gentoo-x86/eclass/eutils.eclass,v
retrieving revision 1.16
diff -u -b -B -r1.16 eutils.eclass
--- eutils.eclass	3 Feb 2003 14:10:37 -0000	1.16
+++ eutils.eclass	9 Feb 2003 22:37:55 -0000
@@ -330,11 +330,11 @@
 	if [ "`egrep "^[[:space:]]*MAKEOPTS=" /etc/make.conf | wc -l`" -gt 0 ]
 	then
 		ADMINOPTS="`egrep "^[[:space:]]*MAKEOPTS=" /etc/make.conf | cut -d= -f2 | sed 's/\"//g'`"
-		ADMINPARAM="${ADMINOPTS##*-j}"
-		ADMINPARAM="${ADMINPARAM%% -*}"
+		ADMINPARAM="`echo ${ADMINOPTS} | gawk '{match($0, /-j *[0-9]*/, opt); print opt[0]}'`"
+		ADMINPARAM="${ADMINPARAM/-j}"
 	fi
 
-	export MAKEOPTS="`echo ${MAKEOPTS} | sed -e 's:-j[0-9]*::g'`"
+	export MAKEOPTS="`echo ${MAKEOPTS} | sed -e 's:-j *[0-9]*::g'`"
 	
 	if [ "${ARCH}" = "x86" -o "${ARCH}" = "hppa" ]
 	then