Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14213 - ebuild.sh strange warning on mozilla-1.2.1-r5 ebuild
Summary: ebuild.sh strange warning on mozilla-1.2.1-r5 ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-19 20:57 UTC by Bernardo S. A. Silva
Modified: 2003-02-03 02:48 UTC (History)
1 user (show)

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


Attachments
rpc ebuild file (rpc-0.97.ebuild,873 bytes, application/octet-stream)
2003-01-22 22:37 UTC, Bernardo S. A. Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernardo S. A. Silva 2003-01-19 20:57:51 UTC
Hi, 

  I am very interested on Gentoo 1.4_final stability, and I notice a strange
warning message when emerging mozilla-1.2.1-r5:

  /usr/sbin/ebuild.sh: line 384: [: : integer expression expected

  This line is just: "try() {"
  ebuild.sh is important on portage. WTH is this warning?

   Thanx a lot... your distro is the BEST, Bernardo S. A. Silva
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-01-19 21:12:17 UTC
what version of portage?
Comment 2 Torgeir Hansen 2003-01-20 03:43:19 UTC
I got this problem aswell on my 1.4_rc1 system, but not on my 1.2 system. (both x86)
Comment 3 Torgeir Hansen 2003-01-20 03:44:37 UTC
oh, and portage version:

[10:43]root@mybox:~> emerge -V
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)


[10:43]root@unknown:~> emerge -V
Portage 2.0.46-r9 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7)
Comment 4 pasi.valminen 2003-01-20 04:01:21 UTC
The lines 383 and 384 are:

	if [ "$(gcc-major-version)" -eq "3" ]
	then

Seems the "if" still works even if it gives a warning since my march=pentium4
gets changed into march=pentium3. The lines 385+:

		# Currently gcc-3.2 or older do not work well if we specify "-march"
		# and other optimizations for pentium4.
		export CFLAGS="${CFLAGS/-march=pentium4/-march=pentium3}"
		export CXXFLAGS="${CXXFLAGS/-march=pentium4/-march=pentium3}"
Comment 5 Bernardo S. A. Silva 2003-01-20 11:59:41 UTC
My version (1.4_rc2):

Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)

OBS.: My processor is a athlon-xp. My flags are -march=athlon-xp while using 
gcc3 and -march=i686 while using gcc2.

   Bernardo S. A. Silva
Comment 6 Bernardo S. A. Silva 2003-01-22 22:37:34 UTC
Created attachment 7546 [details]
rpc ebuild file
Comment 7 Bernardo S. A. Silva 2003-01-22 22:39:09 UTC
Sorry, I had pu the attach on the rong bug... Ignore please...
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2003-02-03 02:48:38 UTC
Fixed in cvs.