the configure checks for nspr and nss do not find the headers/libs. configure just continues switching the nss feature off again. Reproducible: Always Steps to Reproduce: 1. emerge xmlsec Actual Results: missing nss feature Expected Results: nss featured xmlsec for your satisfaction # emerge info Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5.20050722-r0, 2.6.14-gentoo-r2 i686) ================================================================= System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.12.0_pre11 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mtune=pentium4 -march=pentium4 -pipe -fforce-addr -fforce-mem -momit-leaf-frame-pointer -fomit-frame-pointer -fweb -ftracer -frename-registers" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=pentium4 -march=pentium4 -pipe -fforce-addr -fforce-mem -momit-leaf-frame-pointer -fomit-frame-pointer -fweb -ftracer -frename-registers -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" LANG="de_DE.utf8" LINGUAS="de ca" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main /usr/local/gentoo-php-overlay/production-ready" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 avi berkdb bitmap-fonts cairo cdr cups dga dts dvd dvdr dvdread fbcon firefox foomaticdb gd gif glx gnome gpm gtk2 hardenedphp imap imlib ipv6 java java-gcj-compat jpeg mad mmx mmxext mp3 mpeg mysql nls nptl nptlonly nvidia ogg oggvorbis opengl pam perl png ppds quicktime readline samba sblive sse sse2 ssl truetype truetype-fonts type1-fonts unicode usb userlocales vhosts videos vorbis wmf wxwindows x86 xface xinerama xml2 xprint xv xvid zlib video_cards_nvidia linguas_de linguas_ca userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Created attachment 73563 [details, diff] configure fixes for gentoo paths
ok, that patch works with dev-libs/nspr-4.6. i will add changed patch for <dev-libs/nspr-4.6.
Created attachment 73564 [details, diff] for <dev-libs/nspr-4.6 reason: dev-libs/nspr-4.6 got its libs under /usr/lib/nspr/ <dev-libs/nspr-4.6 got its libs under /usr/lib/ btw, dev-libs/nss-3.9.2 and dev-libs/nss-3.10 got the libs under /usr/lib/nss/
better than the hacks i did is to use pkg-config to get the libs/headers of nss and nspr. i will add a patch for that and example pkg-config files for nss and nspr because they are not shipped with these packages.
Created attachment 73567 [details, diff] check for nss and nspr via pkg-config
Created attachment 73569 [details] nspr.pc
Created attachment 73570 [details] nss.pc
Created attachment 73575 [details, diff] xmlsec-nss.pc.in, mozilla-nss -> nss depend
Created attachment 73841 [details, diff] depend on mozilla-nss or firefox-nss instead on dev-libs/{nspr,nss} any reason why it needs to depend on dev-libs/{nspr,nss}?
this should not depend on mozilla/firefox nss/nspr. It is a very bad ideal IMO to depend on either when nss/nspr packages are in the tree.
well, besides that nss issue in general. ;) i want to build openoffice with system xmlsec. xmlsec then needs nss feature - from nss, mozilla-nss or firefox-nss. building openoffice with mozilla or firefox brwoser plugin takes nss from them. xmlsec uses dev-libs/{nspr,nss}. sure this does trouble.
Btw, if you want dev-libs/xmlsec to depend on nspr/nss from tree please fix configure(.in) and xmlsec-nss.pc.in, thanks. At the moment it is impossible to build the nss feature from xmlsec in tree anyway.
Another attempt to fix this as well as bug 114019 the way Mozilla-Herd wants it. I will add diffs to link xmlsec1-nss against system nspr/nss. I had a look on Mozilla Build Configurator. There are now flags for: --with-system-nspr --with-system-nss See: http://webtools.mozilla.org/build/config.cgi It is about time to use them.
Created attachment 77895 [details, diff] create pkg-config file for nspr Let applications get nspr flags from pkg-config file.
Created attachment 77896 [details, diff] create pkg-config file for nss Let applications get flags from nss pkg-config file
Comment on attachment 77896 [details, diff] create pkg-config file for nss Err, it should be: - >=dev-libs/nspr-${NSPR_VER}-r2" + >=dev-libs/nspr-${NSPR_VER}"
Once more... - >=dev-libs/nspr-4.4.1-r2" + >=dev-libs/nspr-${NSPR_VER}-r2" ...it could be cool to edit attached diffs.
Created attachment 77897 [details, diff] link xmlsec to nss
New bugreports opened for nspr and nss bump. They include ebuilds and pkg-config files. Depend on them.
In 1.2.9-r1 in cvs. Thanks a bunch!