Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312341 - dev-libs/nss-3.12.6-r1 failed: nss make failed
Summary: dev-libs/nss-3.12.6-r1 failed: nss make failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal with 1 vote (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 313805 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-31 09:47 UTC by Andrey Lisovskiy
Modified: 2010-05-29 01:47 UTC (History)
3 users (show)

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 Andrey Lisovskiy 2010-03-31 09:47:56 UTC
dev-libs/nss-3.12.6-r1 failed: nss make failed while emerge world -uND


build log
...
../../../coreconf/nsinstall/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/nsinstall -t -m 775 Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/shlibsign ../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/bin                                                                            
cd mangle; make libs                                                                                                                                       
make[3]: Entering directory `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/mangle'                            
i686-pc-linux-gnu-gcc -o Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/mangle.o -c -O2 -fno-strict-aliasing -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -Di386 -DLINUX2_1  -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -DSHLIB_SUFFIX=\"so\" -DSHLIB_PREFIX=\"lib\" -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr   -I../../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss  -O2 -march=prescott -pipe mangle.c              
i686-pc-linux-gnu-gcc -o Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/mangle -O2 -fno-strict-aliasing -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -Di386 -DLINUX2_1  -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -DSHLIB_SUFFIX=\"so\" -DSHLIB_PREFIX=\"lib\" -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr   -I../../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss  -O2 -march=prescott -pipe Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/mangle.o -Wl,-O1      -L/usr/lib   -lplc4 -lplds4 -lnspr4  -lpthread  -ldl -lc                                                   
../../../../coreconf/nsinstall/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/nsinstall -t -m 775 Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/mangle ../../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/bin                                                                         
make[3]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/mangle'                             
cd Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ ; sh "/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/."/sign.sh "/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ" \
        "/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ" Linux \
        "/usr/lib  " "/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/lib/libsoftokn3.so"
/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/./sign.sh: line 25: cd: /usr/lib  : Нет такого файла или каталога
/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/shlibsign -v -i /var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/lib/libsoftokn3.so
moduleSpec configdir='' certPrefix='' keyPrefix='' secmod='' flags=noCertDB, noModDB
/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/./sign.sh: line 2: 15501 Аварийный останов         "${2}"/shlibsign -v -i "${5}"
make[2]: *** [../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/lib/libsoftokn3.chk] Ошибка 134
make[2]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign'
make[1]: *** [libs] Ошибка 2
make[1]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd'
make: *** [libs] Ошибка 2
 * ERROR: dev-libs/nss-3.12.6-r1 failed:
 *   nss make failed
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 2613:  Called die
 * The specific snippet of code:
 *       emake -j1 CC="$(tc-getCC)" || die "nss make failed"
 *
 * If you need support, post the output of 'emerge --info =dev-libs/nss-3.12.6-r1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/nss-3.12.6-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/nss-3.12.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/nss-3.12.6-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6'


Reproducible: Always
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-01 23:12:55 UTC
Please set LC_MESSAGES=C and produce a new build log.
Comment 2 Dennis 2010-04-02 11:04:25 UTC
i have the same trouble:

======================================================================

building nss-3.12.6-r1:
...
make[3]: Entering directory `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/mangle'
i686-pc-linux-gnu-gcc -o Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/mangle.o -c -O2 -fno-strict-aliasing -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -Di386 -DLINUX2_1  -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -DSHLIB_SUFFIX=\"so\" -DSHLIB_PREFIX=\"lib\" -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr   -I../../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss  -march=athlon-xp -O2 -pipe mangle.c
i686-pc-linux-gnu-gcc -o Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/mangle -O2 -fno-strict-aliasing -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -Di386 -DLINUX2_1  -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -DSHLIB_SUFFIX=\"so\" -DSHLIB_PREFIX=\"lib\" -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr   -I../../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss  -march=athlon-xp -O2 -pipe Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/mangle.o -Wl,-O1      -L/usr/lib   -lplc4 -lplds4 -lnspr4  -lpthread  -ldl -lc
../../../../coreconf/nsinstall/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/nsinstall -t -m 775 Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/mangle ../../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/bin
make[3]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/mangle'
cd Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ ; sh "/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/."/sign.sh "/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ" \
	"/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ" Linux \
	"/usr/lib  " "/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/lib/libsoftokn3.so"
/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/./sign.sh: line 25: cd: /usr/lib  : No such file or directory
/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/shlibsign -v -i /var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/lib/libsoftokn3.so
moduleSpec configdir='' certPrefix='' keyPrefix='' secmod='' flags=noCertDB, noModDB
/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/./sign.sh: line 2: 27363 Aborted                 "${2}"/shlibsign -v -i "${5}"
make[2]: *** [../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/lib/libsoftokn3.chk] Error 134
make[2]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd'
make: *** [libs] Error 2
 * ERROR: dev-libs/nss-3.12.6-r1 failed:
 *   nss make failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 2629:  Called die
 * The specific snippet of code:
 *       emake -j1 CC="$(tc-getCC)" || die "nss make failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/nss-3.12.6-r1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/nss-3.12.6-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/nss-3.12.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/nss-3.12.6-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6'
sandbox:main  signal SIGQUIT already had a handler ...

=============================================================

# emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo i686)
=================================================================
System uname: Linux-2.6.33-gentoo-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.0.1
Timestamp of tree: Fri, 02 Apr 2010 06:30:01 +0000
app-shells/bash:     4.1_p2-r1
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.5-r1, 3.1.2-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       3.3.6-r1, 4.1.2, 4.3.3-r2, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -msse3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon-xp -msse3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" ftp://mirror.yandex.ru/gentoo-distfiles/ ftp://ftp.chg.ru/mirrors/gentoo.org/ http://mirror.yandex.ru/gentoo-distfiles/ "
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac acl acpi alsa amr amrnb amrwb arts bash-completion berkdb bidi branding bzip2 cairo cdda cddb cdio cdparanoia cdr cli consolekit cracklib dbus dedicated divx dri dts dvb dvd dvdr dvdread emboss encode exif extras fam ffmpeg firefox flac fortran freetype ftp fts3 gdbm gif gmedia gnome gnutls gpm gtk gtk2 hal hifieq httpd iconv id3tag ifp ipod java javascript jpeg ladspa lcms libnotify libsexy live logrotate logwatch lzma mad maps matroska md5sum mikmod mmx mmxext mng modules mp2 mp3 mp4 mpeg mtp mudflap musepack musicbrainz ncurses network nls nptl nptlonly nsplugin nss objc ogg oggvorbis opengl openmp oss pam pango pcre pdf perl png postgres ppds pppd pulseaudio pygments python qt3support qt4 quicktime radio rar readline realmedia recording reflection rtc samba sdl secure-delete session shout skins sound speex spell spl sse sse2 ssl startup-notification stream subversion svg sysfs tcpd theora tiff tk truetype tv unicode usb v4l v4l2 vcd vidix visualization vlm vorbis wavpack win32codecs wma wmp wxwindows x264 x86 xanim xcb xinerama xml xmlrpc xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Dennis 2010-04-02 12:12:40 UTC
just noticed:

        "/usr/lib  "
"/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/../../../dist/Linux2.6_x86_i686-pc-linux-gnu-gcc_glibc_PTH_OPT.OBJ/lib/libsoftokn3.so"
/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/./sign.sh:
line 25: cd: /usr/lib  : No such file or directory

seems that there are two spaces after /usr/lib in the path.
but still can't find where it is in the code.
Comment 4 Dennis 2010-04-02 12:27:20 UTC
for now, very ugly decision, which worked for me is:

ln -s /usr/lib "/usr/lib  "
Comment 5 Robert Schultz 2010-04-03 11:18:59 UTC
(In reply to comment #4)
> for now, very ugly decision, which worked for me is:
> 
> ln -s /usr/lib "/usr/lib  "
> 

I have the same problem that this bug describes.

I can confirm that the symbolic link workaround fixes the problem for me and allows nss to finish building and installing.
Comment 6 Jean-Luc Léger 2010-04-04 14:42:23 UTC
Those lines in nss-3.12.6-r1.ebuild are the source of this bug :
    export NSPR_INCLUDE_DIR=`pkg-config --cflags-only-I nspr | sed 's/-I//'`
    export NSPR_LIB_DIR=`pkg-config --libs-only-L nspr | sed 's/-L//'`

They put an additional space at the end of each variables.

With the following fix, I could build this package :
    export NSPR_INCLUDE_DIR=`pkg-config --variable=includedir nspr`
    export NSPR_LIB_DIR=`pkg-config --variable=libdir nspr`
Comment 7 Jory A. Pratt gentoo-dev 2010-04-05 03:05:53 UTC
(In reply to comment #6)
> Those lines in nss-3.12.6-r1.ebuild are the source of this bug :
>     export NSPR_INCLUDE_DIR=`pkg-config --cflags-only-I nspr | sed 's/-I//'`
>     export NSPR_LIB_DIR=`pkg-config --libs-only-L nspr | sed 's/-L//'`
> 
> They put an additional space at the end of each variables.
> 
> With the following fix, I could build this package :
>     export NSPR_INCLUDE_DIR=`pkg-config --variable=includedir nspr`
>     export NSPR_LIB_DIR=`pkg-config --variable=libdir nspr`
> 

I highly doubt this is the case, these have not changed since I initially added them in 3.12.5. If you can duplicate with 3.12.5 I will concider this a possibility but until then I say you have a broken sed and or a pkg-config that is producing wrong output. Simple test would be to run these commands by hand in a terminal.

	export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
	export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
	pkg-config --cflags-only-I nspr | sed 's/-I//'
	pkg-config --libs-only-L nspr | sed 's/-L//'

I would love to see the results from everyone as this is only effecting x86 at this time.
Comment 8 Jean-Luc Léger 2010-04-05 08:46:47 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Those lines in nss-3.12.6-r1.ebuild are the source of this bug :
> >     export NSPR_INCLUDE_DIR=`pkg-config --cflags-only-I nspr | sed 's/-I//'`
> >     export NSPR_LIB_DIR=`pkg-config --libs-only-L nspr | sed 's/-L//'`
> > 
> > They put an additional space at the end of each variables.
> > 
> > With the following fix, I could build this package :
> >     export NSPR_INCLUDE_DIR=`pkg-config --variable=includedir nspr`
> >     export NSPR_LIB_DIR=`pkg-config --variable=libdir nspr`
> > 
> 
> I highly doubt this is the case, these have not changed since I initially added
> them in 3.12.5. If you can duplicate with 3.12.5 I will concider this a
> possibility but until then I say you have a broken sed and or a pkg-config that
> is producing wrong output. Simple test would be to run these commands by hand
> in a terminal.
> 
>         export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
>         export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
>         pkg-config --cflags-only-I nspr | sed 's/-I//'
>         pkg-config --libs-only-L nspr | sed 's/-L//'
> 
> I would love to see the results from everyone as this is only effecting x86 at
> this time.
> 

I can't duplicate in 3.12.5 because the macro core_abspath (in mozilla/security/coreconf/rules.mk) has been changed to put double quotes around its parameter (NSPR_LIB_DIR in this case). So in 3.12.5 it was probably working by luck (the extra space being eaten by shell when splitting command into words).

The commands you ask me to run are not appropriate to demonstrate the problem we have here. Here are better ones to test :

         export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
         export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
         echo "["`pkg-config --cflags-only-I nspr | sed 's/-I//'`"]"
         echo "["`pkg-config --libs-only-L nspr | sed 's/-L//'`"]"

And the results are :

[/usr/include/nspr ]
[/usr/lib ]

Same without the sed command (except the -I and -L parts, of course).
I would like to see what your pkg-config command returns.
Comment 9 Nao Nakashima 2010-04-07 02:34:49 UTC
(In reply to comment #8)
>          export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
>          export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
>          echo "["`pkg-config --cflags-only-I nspr | sed 's/-I//'`"]"
>          echo "["`pkg-config --libs-only-L nspr | sed 's/-L//'`"]"
> 
> And the results are :
> 
> [/usr/include/nspr ]
> [/usr/lib ]
> 
> Same without the sed command (except the -I and -L parts, of course).
> I would like to see what your pkg-config command returns.
> 

Same problem and same results for above testcase (whith space)
Comment 10 James L. Hammons 2010-04-07 17:51:42 UTC
Also confirm problem and same results on test case. I don't know whether the dev got lucky with his sed'ing or not, but there's a definite problem here. Making the changes to the ebuild suggested by Jean-Luc allowed nss to build.

On ~x86.
Comment 11 Zeno Davatz 2010-04-08 09:33:18 UTC
(In reply to comment #6)
> Those lines in nss-3.12.6-r1.ebuild are the source of this bug :
>     export NSPR_INCLUDE_DIR=`pkg-config --cflags-only-I nspr | sed 's/-I//'`
>     export NSPR_LIB_DIR=`pkg-config --libs-only-L nspr | sed 's/-L//'`
> 
> They put an additional space at the end of each variables.
> 
> With the following fix, I could build this package :
>     export NSPR_INCLUDE_DIR=`pkg-config --variable=includedir nspr`
>     export NSPR_LIB_DIR=`pkg-config --variable=libdir nspr`
> 

How did you get around this error after modifying the files:

Calculating dependencies | * Digest verification failed:
 * /usr/portage/dev-libs/nss/nss-3.12.6-r1.ebuild
 * Reason: Filesize does not match recorded size
 * Got: 3597
 * Expected: 3614
... done!

>>> Verifying ebuild manifests

!!! Digest verification failed:
!!! /usr/portage/dev-libs/nss/nss-3.12.6-r1.ebuild
!!! Reason: Filesize does not match recorded size
!!! Got: 3597
!!! Expected: 3614
Comment 12 Zeno Davatz 2010-04-08 09:37:43 UTC
(In reply to comment #11)
> (In reply to comment #6)
> > Those lines in nss-3.12.6-r1.ebuild are the source of this bug :
> >     export NSPR_INCLUDE_DIR=`pkg-config --cflags-only-I nspr | sed 's/-I//'`
> >     export NSPR_LIB_DIR=`pkg-config --libs-only-L nspr | sed 's/-L//'`
> > 
> > They put an additional space at the end of each variables.
> > 
> > With the following fix, I could build this package :
> >     export NSPR_INCLUDE_DIR=`pkg-config --variable=includedir nspr`
> >     export NSPR_LIB_DIR=`pkg-config --variable=libdir nspr`
> > 
> 
> How did you get around this error after modifying the files:
> 
> Calculating dependencies | * Digest verification failed:
>  * /usr/portage/dev-libs/nss/nss-3.12.6-r1.ebuild
>  * Reason: Filesize does not match recorded size
>  * Got: 3597
>  * Expected: 3614
> ... done!
> 
> >>> Verifying ebuild manifests
> 
> !!! Digest verification failed:
> !!! /usr/portage/dev-libs/nss/nss-3.12.6-r1.ebuild
> !!! Reason: Filesize does not match recorded size
> !!! Got: 3597
> !!! Expected: 3614

This helped: ebuild /usr/portage/dev-libs/nss/nss-3.12.6-r1.ebuild manifest and voila no more errors.
Comment 13 Zeno Davatz 2010-04-08 09:39:08 UTC
*** Bug 313805 has been marked as a duplicate of this bug. ***
Comment 14 Nao Nakashima 2010-04-08 10:12:53 UTC
(In reply to comment #11)
> How did you get around this error after modifying the files:

Do not modify files in portage tree: all your modifications will be lost after next emerge --sync.
Instead, create local overlay, copy ebuild there and modify it.
Comment 15 Zeno Davatz 2010-04-08 10:14:16 UTC
(In reply to comment #14)
> (In reply to comment #11)
> > How did you get around this error after modifying the files:
> 
> Do not modify files in portage tree: all your modifications will be lost after
> next emerge --sync.
> Instead, create local overlay, copy ebuild there and modify it.

Thanks for the tip. Can you point me towards a usable howto?
Comment 16 Nao Nakashima 2010-04-08 10:51:03 UTC
(In reply to comment #15)
> Thanks for the tip. Can you point me towards a usable howto?

This is not a support forum.
Next time try to use google or ask your questions about such things on forums.
http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay
Comment 17 Zeno Davatz 2010-04-08 11:57:28 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > Thanks for the tip. Can you point me towards a usable howto?
> 
> This is not a support forum.
> Next time try to use google or ask your questions about such things on forums.
> http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay

Thanks for the link and the lecture. I do not see the point of going to the support forums as this seems to be a bug. Also I did not find a support forum.

Comment 18 Nao Nakashima 2010-04-08 13:33:18 UTC
(In reply to comment #17)
> Thanks for the link and the lecture. I do not see the point of going to the
> support forums as this seems to be a bug.
This (Digest verification failed) is not a bug. It is a normal portage behaviour.

> Also I did not find a support forum.
"Support" link on the gentoo.org site. 
Comment 19 Zeno Davatz 2010-04-08 13:51:21 UTC
(In reply to comment #18)
> (In reply to comment #17)
> > Thanks for the link and the lecture. I do not see the point of going to the
> > support forums as this seems to be a bug.
> This (Digest verification failed) is not a bug. It is a normal portage
> behaviour.

I was talking about comment 6. And from my point of view: anybody who comes across this problem should be notified about how he get nss installed without pain or lecturing.

> > Also I did not find a support forum.
> "Support" link on the gentoo.org site. 

Thanks I know that link and you do not have to provide it to me. Hint: What a user needs is always a specific link.
Comment 20 Jory A. Pratt gentoo-dev 2010-04-08 15:21:20 UTC
I am well aware of this and will rework the code tonight, we can simple change all the calls to use nspr-config to get proper setup :)
Comment 21 Zeno Davatz 2010-04-08 15:23:16 UTC
(In reply to comment #20)
> I am well aware of this and will rework the code tonight, we can simple change
> all the calls to use nspr-config to get proper setup :)

Sure! Let me know when you need a tester (who expects detailed instructions ;) for testing.
Comment 22 Jory A. Pratt gentoo-dev 2010-04-08 15:24:11 UTC
Index: nss-3.12.6-r1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.12.6-r1.ebuild,v
retrieving revision 1.1
diff -u -B -r1.1 nss-3.12.6-r1.ebuild
--- nss-3.12.6-r1.ebuild	28 Mar 2010 14:49:55 -0000	1.1
+++ nss-3.12.6-r1.ebuild	8 Apr 2010 15:23:36 -0000
@@ -52,10 +52,8 @@
 	*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
 	esac
 
-	export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
-	export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
-	export NSPR_INCLUDE_DIR=`pkg-config --cflags-only-I nspr | sed 's/-I//'`
-	export NSPR_LIB_DIR=`pkg-config --libs-only-L nspr | sed 's/-L//'`
+	export NSPR_INCLUDE_DIR=`nspr-config --includedir`
+	export NSPR_LIB_DIR=`nspr-config --libdir'`
 	export BUILD_OPT=1
 	export NSS_USE_SYSTEM_SQLITE=1
 	export NSDISTMODE=copy


If someone can apply and confirm will push this as soon as I return from work.
Comment 23 Jory A. Pratt gentoo-dev 2010-04-08 15:30:11 UTC
Actually I am sure this will resolve the bug so I have pushed it already, reopen if problem is still around.
Comment 24 Zeno Davatz 2010-04-08 15:35:10 UTC
(In reply to comment #23)
> Actually I am sure this will resolve the bug so I have pushed it already,
> reopen if problem is still around.

Great, thank you!
Comment 25 Miguel Angel Requena Serrano 2010-05-29 01:47:58 UTC
(In reply to comment #24)
> (In reply to comment #23)
> > Actually I am sure this will resolve the bug so I have pushed it already,
> > reopen if problem is still around.
> 
> Great, thank you!
> 

emerge nss failed arch amd64
gcc -o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/pppolicy.o -c -O2 -fno-strict-aliasing -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -DLINUX2_1  -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -DNSPR20 -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr -I../../../dist/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/include -I../../../dist/public/nss -I../../../dist/private/nss -I../../../dist/public/dbm  -march=k8 -O2 -pipe pppolicy.c                                                                           
gcc -o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/secerror.o -c -O2 -fno-strict-aliasing -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -DLINUX2_1  -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -DNSPR20 -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr -I../../../dist/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/include -I../../../dist/public/nss -I../../../dist/private/nss -I../../../dist/public/dbm  -march=k8 -O2 -pipe secerror.c                                                                           
gcc -o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/ffs.o -c -O2 -fno-strict-aliasing -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -DLINUX2_1  -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -DNSPR20 -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr -I../../../dist/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/include -I../../../dist/public/nss -I../../../dist/private/nss -I../../../dist/public/dbm  -march=k8 -O2 -pipe ffs.c                                                                                     
gcc -o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/pk11table.o -c -O2 -fno-strict-aliasing -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -DLINUX2_1  -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -DNSPR20 -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr -I../../../dist/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/include -I../../../dist/public/nss -I../../../dist/private/nss -I../../../dist/public/dbm  -march=k8 -O2 -pipe pk11table.c                                                                         
rm -f Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libsectool.a                               
ar cr Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libsectool.a Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/secutil.o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/secpwd.o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/derprint.o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/moreoids.o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/pppolicy.o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/secerror.o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/ffs.o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/pk11table.o                                                                                    
ranlib Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libsectool.a                              
../../../coreconf/nsinstall/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/nsinstall -t -m 664 Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libsectool.a ../../../dist/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/lib                                                                     
make[2]: se sale del directorio `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/lib'                                                      
cd addbuiltin; make libs                                                              
make[2]: se ingresa al directorio `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/addbuiltin'                                             
gcc -o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/addbuiltin.o -c -O2 -fno-strict-aliasing -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -DLINUX2_1  -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr -I../../../dist/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/include -I../../../dist/public/nss  -I../../../dist/private/nss  -I../../../dist/public/seccmd  -march=k8 -O2 -pipe addbuiltin.c                                                                           
gcc -o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/addbuiltin -O2 -fno-strict-aliasing -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -DLINUX2_1  -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr -I../../../dist/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/include -I../../../dist/public/nss  -I../../../dist/private/nss  -I../../../dist/public/seccmd  -march=k8 -O2 -pipe Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/addbuiltin.o -Wl,-O1    ../../../dist/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/lib/libsectool.a  -Wl,-rpath,'$ORIGIN/../lib64:$ORIGIN/../lib' -L../../../dist/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/lib -lssl3 -lsmime3 -lnss3 -L../../../dist/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/lib -lnssutil3 -L/usr/lib64 -lplc4 -lplds4 -lnspr4  -lpthread  -ldl -lc                                                         
/usr/lib64/libnspr4.so: undefined reference to `_PR_x86_64_AtomicDecrement'           
/usr/lib64/libnspr4.so: undefined reference to `_PR_x86_64_AtomicSet'
/usr/lib64/libnspr4.so: undefined reference to `_PR_x86_64_AtomicIncrement'
/usr/lib64/libnspr4.so: undefined reference to `_PR_x86_64_AtomicAdd'
collect2: ld devolvió el estado de salida 1
make[2]: *** [Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/addbuiltin] Error 1
make[2]: se sale del directorio `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd/addbuiltin'
make[1]: *** [libs] Error 2
make[1]: se sale del directorio `/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6/mozilla/security/nss/cmd'
make: *** [libs] Error 2
 * ERROR: dev-libs/nss-3.12.6-r1 failed:
 *   nss make failed
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 2711:  Called die
 * The specific snippet of code:
 *       emake -j1 CC="$(tc-getCC)" || die "nss make failed"
 *
 * If you need support, post the output of 'emerge --info =dev-libs/nss-3.12.6-r1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/nss-3.12.6-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/nss-3.12.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/nss-3.12.6-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/nss-3.12.6-r1/work/nss-3.12.6'



-----------------------------------------------------

pepino miguel # export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
pepino miguel # export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
pepino miguel # echo "["`pkg-config --cflags-only-I nspr | sed 's/-I//'`"]"
[/usr/include/nspr ]
pepino miguel # echo "["`pkg-config --libs-only-L nspr | sed 's/-L//'`"]"
[/usr/lib64 ]

-----------------------------------------------------------
pepino miguel # emerge --info                                                         
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.30-gentoo-r5 x86_64)                                                                     
=================================================================                     
System uname: Linux-2.6.30-gentoo-r5-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-1.12.13                                                                          
Timestamp of tree: Fri, 28 May 2010 14:00:20 +0000                                    
app-shells/bash:     4.0_p37                                                          
dev-java/java-config: 2.1.9-r2                                                        
dev-lang/python:     2.6.4-r1                                                         
dev-util/cmake:      2.6.4-r3                                                         
sys-apps/baselayout: 1.12.13                                                          
sys-apps/sandbox:    1.6-r2                                                           
sys-devel/autoconf:  2.13, 2.63-r1                                                    
sys-devel/automake:  1.7.9-r1, 1.8.5-r4, 1.9.6-r2, 1.10.2, 1.11.1                     
sys-devel/binutils:  2.18-r3                                                          
sys-devel/gcc:       4.3.4                                                            
sys-devel/gcc-config: 1.4.1                                                           
sys-devel/libtool:   2.2.6b                                                           
virtual/os-headers:  2.6.30-r1                                                        
ACCEPT_KEYWORDS="amd64"                                                               
ACCEPT_LICENSE="* -@EULA dlj-1.1"                                                     
CBUILD="i686-pc-linux-gnu"                                                            
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"                                     
CHOST="i686-pc-linux-gnu"                                                             
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"                                                 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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=k8 -O2 -pipe -fomit-frame-pointer"                                   
DISTDIR="/usr/portage/distfiles"                                                      
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                             
GENTOO_MIRRORS="http://distfiles.gentoo.org"                                          
LANG="es_ES.UTF-8"                                                                    
LDFLAGS="-Wl,-O1"                                                                     
LINGUAS="es"                                                                          
MAKEOPTS="-j9"                                                                        
PKGDIR="/usr/portage/packages"                                                        
PORTAGE_CONFIGROOT="/"                                                                
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                    
PORTAGE_TMPDIR="/var/tmp"                                                             
PORTDIR="/usr/portage"                                                                
PORTDIR_OVERLAY="/usr/local/portage/layman/Spring /usr/local/portage/layman/gentoo-quebec /usr/local/portage/layman/x11 /usr/local/portage/layman/desktop-effects"          
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                        
USE="#gcc #win64 3dnow 4.4+ X a52 aac acl acpi alsa amd64 arts asf berkdb bluetooth branding bzip2 cairo cdb cddb cdinstall cdr clamav cli consolekit cracklib crypt css cups cxx dbus dga directfb divx dri dri2 dts dvd dvdr dvdread embedded emboss emerald encode exif fam fbcon ffmpeg firefox flac fortran ftp gdbm gif gimp git glitz gnome gpm gtk gzip hal hou iconv ieee1394 ipv6 java jpeg jpeg2k kde lame latex lcms ldap libnotify lm_sensors mad matroska mikmod mime mmx mng modules mp3 mp4 mpeg msn mudflap multilib mysql ncurses necesario nls nocd nptl nptlonly nsplugin ogg opengl openmp oss pam pango pcre pdf perl plasma png policykit ppds pppd python qt3 qt3support qt4 quicktime readline realmedia reflection samba sdl semantic-desktop session smp sockets sou spell spl sql sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode usb v4l v4l2 vcd videos vorbis webkit win32 wmp x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS