Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143619 - dev-libs/nss-3.11.2 fails to respect CFLAGS
Summary: dev-libs/nss-3.11.2 fails to respect CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-11 18:07 UTC by Ed Catmur
Modified: 2006-10-07 11:34 UTC (History)
1 user (show)

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


Attachments
nss-3.11.3.ebuild.diff (nss-3.11.3.ebuild.diff,1.04 KB, patch)
2006-09-25 05:47 UTC, Alon Bar-Lev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2006-08-11 18:07:15 UTC
>>> Compiling source in /var/tmp/portage/nss-3.11.2/work/nss-3.11.2 ...
cd nsinstall; make export
make[1]: Entering directory `/var/tmp/portage/nss-3.11.2/work/nss-3.11.2/mozilla
/security/coreconf/nsinstall'
make[1]: Nothing to be done for `export'.
make[1]: Leaving directory `/var/tmp/portage/nss-3.11.2/work/nss-3.11.2/mozilla/
security/coreconf/nsinstall'
cd nsinstall; make libs
make[1]: Entering directory `/var/tmp/portage/nss-3.11.2/work/nss-3.11.2/mozilla
/security/coreconf/nsinstall'
gcc -o Linux2.6_x86_glibc_PTH_OPT.OBJ/nsinstall.o -c -O2 -fPIC -DLINUX1_2 -Di386
 -D_XOPEN_SOURCE -DLINUX2_1  -ansi -Wall -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -
D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -I../../dis
t/Linux2.6_x86_glibc_PTH_OPT.OBJ/include  -I../../dist/public/coreconf -I../../d
ist/private/coreconf -I//usr/include/nspr -I../../dist/Linux2.6_x86_glibc_PTH_OP
T.OBJ/include/dbm  nsinstall.c

Should be fairly easy to fix.

emerge --info:

Portage 2.1.1_pre4-r4 (!portage/make.profile, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.12.4
Last Sync: Fri, 11 Aug 2006 04:20:01 +0000
distcc[7005] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc: Permission denied [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-ggdb -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-ggdb -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache digest distcc distlocks fixpackages installsources metadata-transfer sandbox sfperms splitdebug strict"
GENTOO_MIRRORS=" http://ftp.heanet.ie/pub/gentoo/ http://mirror.ac.uk/mirror/distro.ibiblio.org/pub/linux/distributions/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.sdv.fr/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ "
LANG="en_GB.UTF-8"
LINGUAS="en_GB en en_US ja_JP de_DE es_ES fa_IR fr_FR it_IT ru_RU"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/srv/gentoo/trees/g-cpan /srv/gentoo/trees/bmg-main /srv/gentoo/trees/dangtopia /srv/gentoo/trees/gnome-experimental /srv/gentoo/trees/lila-artwork /srv/gentoo/trees/gentopia /srv/gentoo/trees/kernel-sources /srv/gentoo/trees/auto-unmask /srv/gentoo/trees/catmur.co.uk"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dfx 3dnow 3dnowext 7zip X a52 aac aalib accessibility acl admin alsa animation apm arj artworkextra asf async attr audioscrobbler avahi avi bash-completion beagle berkdb bitmap-fonts blas bluetooth bmg bonobo bookmarks boundschecking breakme browserplugin bzip2 cairo canvas cdda cddb cdio cdparanoia cdr cdrom chm cli communication composite cpp crypt cscope cups curl daap dbus deb design development dga divx4linux djbfft djvu dlloader doc docs dpms dri dts dv dvd dvdr dvdread dvi edl eds effects elibc_glibc emboss encode epiphany epiphany-extension esd ethereal evo evolution examples exif extras faad fam fat fbcon ffmpeg firefox flac flash font-server foomaticdb fortran fpx freetype gaim galago games gb gcl gd gdbm gif gimp gimpprint ginac gksu glade glep glitz glut glx gnome gnomecanvas gnomedb gnomeoffice gnumeric gnutls gphoto2 gpm grammar graphviz gs gsf gstreamer gstreamer010 gtk gtk2 gtkhtml gtksharp guile gzip hal hddtemp hfs howl-compat icu id3 idn imagemagick imap imlib imlib2 info inherit-graph inkjar input_devices_evdev input_devices_keyboard input_devices_mouse insecure-savers ipod ipv6 irmc isdnlog iso java javascript jbig jfs jpeg jpeg2k kerberos kernel_linux latex lcms lha libcaca libg++ libgda libnotify libsexy libwww linguas_de_DE linguas_en linguas_en_GB linguas_en_US linguas_es_ES linguas_fa_IR linguas_fr_FR linguas_it_IT linguas_ja_JP linguas_ru_RU live lm_sensors logrotate lzo mad maildir man math matroska md5sum mdb mikmod mime mmkeys mmx mmx2 mmxext mng mono mozdevelop mozilla mozsvg mp3 mp4 mpeg msoffice muine musicbrainz nautilus ncurses network networkmanager new-login nfs nls nntp nocd nptl nptlonly nsplugin ntfs nvidia nxclient oav offensive office ogg ole openal opengl openssh opi oss pam pam_console pcre pda pdf pdflib perl plotutils plugin pmount png pop pop3 postscript ppds pppd printer productivity python qhull quicktime rar rdesktop readline real reflection reiser4 reiserfs rhythmbox rpm rtc ruby samba sasl scanner scintilla screen sdl session skippy-xd sms sndfile soap socks5 sourceview sox speex spell spl spreadsheet sse ssl subversion suspend2 svg svga sysfs t1lib tagwriting tar tcpd tetex theora thesaurus threads tiff trayicon truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales utf8 valgrind vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga videos vim vim-pager vim-with-x vnc vorbis win32codecs wmf wordperfect wv wxwin xanim xchattext xface xfs xft xing xml xml2 xorg xprint xrandr xscreensaver xv xvid xvmc yv12 zeroconf zip zlib zoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ed Catmur 2006-08-11 18:26:13 UTC
Ah, OK. We can set XCFLAGS, either passed to emake or in env:

	emake -j1 BUILD_OPT=1 XCFLAGS="${CFLAGS}" || die "coreconf make failed"
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-25 05:47:06 UTC
Confirmed.
But NSS is sensitive, so I strip flags.
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-25 05:47:47 UTC
Created attachment 98015 [details, diff]
nss-3.11.3.ebuild.diff
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-06 16:09:34 UTC
Added: dev-libs/nss-3.11.3-r1
Comment 5 anarchy 2006-10-07 11:34:08 UTC
Please revert this change it is gonna cause more breakage then good!!!