Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113548 - (patch) dev-libs/xmlsec-1.2.9 mozilla useflag (nspr/nss) ignored
Summary: (patch) dev-libs/xmlsec-1.2.9 mozilla useflag (nspr/nss) ignored
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on: 120441 120442
Blocks:
  Show dependency tree
 
Reported: 2005-11-25 04:33 UTC by Hanno Zysik (geki)
Modified: 2006-01-26 14:31 UTC (History)
0 users

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


Attachments
configure fixes for gentoo paths (xmlsec-configure.patch,2.72 KB, patch)
2005-11-25 04:34 UTC, Hanno Zysik (geki)
Details | Diff
for <dev-libs/nspr-4.6 (xmlsec-configure.patch,2.71 KB, patch)
2005-11-25 05:09 UTC, Hanno Zysik (geki)
Details | Diff
check for nss and nspr via pkg-config (xmlsec-configure.patch,3.39 KB, patch)
2005-11-25 06:42 UTC, Hanno Zysik (geki)
Details | Diff
nspr.pc (nspr.pc,248 bytes, text/plain)
2005-11-25 06:47 UTC, Hanno Zysik (geki)
Details
nss.pc (nss.pc,260 bytes, text/plain)
2005-11-25 06:47 UTC, Hanno Zysik (geki)
Details
xmlsec-nss.pc.in, mozilla-nss -> nss depend (nss-pkgconfig.patch,1.22 KB, patch)
2005-11-25 07:07 UTC, Hanno Zysik (geki)
Details | Diff
depend on mozilla-nss or firefox-nss instead on dev-libs/{nspr,nss} (xmlsec-firefox.patch,2.41 KB, patch)
2005-11-30 06:26 UTC, Hanno Zysik (geki)
Details | Diff
create pkg-config file for nspr (nspr.diff,913 bytes, patch)
2006-01-23 03:06 UTC, Hanno Zysik (geki)
Details | Diff
create pkg-config file for nss (nss.diff,1.30 KB, patch)
2006-01-23 03:07 UTC, Hanno Zysik (geki)
Details | Diff
link xmlsec to nss (xmlsec.diff,4.20 KB, patch)
2006-01-23 03:14 UTC, Hanno Zysik (geki)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Zysik (geki) 2005-11-25 04:33:49 UTC
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
Comment 1 Hanno Zysik (geki) 2005-11-25 04:34:59 UTC
Created attachment 73563 [details, diff]
configure fixes for gentoo paths
Comment 2 Hanno Zysik (geki) 2005-11-25 05:06:49 UTC
ok, that patch works with dev-libs/nspr-4.6.
i will add changed patch for <dev-libs/nspr-4.6.
Comment 3 Hanno Zysik (geki) 2005-11-25 05:09:30 UTC
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/
Comment 4 Hanno Zysik (geki) 2005-11-25 06:41:11 UTC
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.
Comment 5 Hanno Zysik (geki) 2005-11-25 06:42:24 UTC
Created attachment 73567 [details, diff]
check for nss and nspr via pkg-config
Comment 6 Hanno Zysik (geki) 2005-11-25 06:47:17 UTC
Created attachment 73569 [details]
nspr.pc
Comment 7 Hanno Zysik (geki) 2005-11-25 06:47:38 UTC
Created attachment 73570 [details]
nss.pc
Comment 8 Hanno Zysik (geki) 2005-11-25 07:07:40 UTC
Created attachment 73575 [details, diff]
xmlsec-nss.pc.in, mozilla-nss -> nss depend
Comment 9 Hanno Zysik (geki) 2005-11-30 06:26:02 UTC
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}?
Comment 10 Jory A. Pratt 2005-11-30 06:35:25 UTC
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. 
Comment 11 Hanno Zysik (geki) 2005-11-30 06:50:35 UTC
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.
Comment 12 Hanno Zysik (geki) 2005-11-30 07:23:13 UTC
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.
Comment 13 Hanno Zysik (geki) 2006-01-23 02:40:19 UTC
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.
Comment 14 Hanno Zysik (geki) 2006-01-23 03:06:21 UTC
Created attachment 77895 [details, diff]
create pkg-config file for nspr

Let applications get nspr flags from pkg-config file.
Comment 15 Hanno Zysik (geki) 2006-01-23 03:07:19 UTC
Created attachment 77896 [details, diff]
create pkg-config file for nss

Let applications get flags from nss pkg-config file
Comment 16 Hanno Zysik (geki) 2006-01-23 03:09:58 UTC
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}"
Comment 17 Hanno Zysik (geki) 2006-01-23 03:11:59 UTC
Once more...

-       >=dev-libs/nspr-4.4.1-r2"
+       >=dev-libs/nspr-${NSPR_VER}-r2"


...it could be cool to edit attached diffs.
Comment 18 Hanno Zysik (geki) 2006-01-23 03:14:26 UTC
Created attachment 77897 [details, diff]
link xmlsec to nss
Comment 19 Hanno Zysik (geki) 2006-01-26 09:59:45 UTC
New bugreports opened for nspr and nss bump.
They include ebuilds and pkg-config files.
Depend on them.
Comment 20 Marcelo Goes (RETIRED) gentoo-dev 2006-01-26 14:31:43 UTC
In 1.2.9-r1 in cvs.
Thanks a bunch!