Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381431 - dev-util/systemtap has automagic dependencies on NSS and Avahi
Summary: dev-util/systemtap has automagic dependencies on NSS and Avahi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 13:46 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2012-12-15 13:33 UTC (History)
0 users

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


Attachments
systemtap-1.7_pre20110903.ebuild (systemtap-1.7_pre20110903.ebuild,1.72 KB, text/plain)
2011-09-05 14:49 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2011-09-01 13:46:59 UTC
flame@yamato systemtap % checkrdeps systemtap
net-dns/avahi (/usr/lib64/libavahi-client.so.3)
net-dns/avahi (/usr/lib64/libavahi-common.so.3)
dev-libs/nss (/usr/lib64/libssl3.so)
dev-libs/nss (/usr/lib64/libsmime3.so)
dev-libs/nss (/usr/lib64/libnss3.so)
dev-libs/elfutils (/usr/lib64/libdw.so.1)
dev-libs/elfutils (/usr/lib64/libelf.so.1)
dev-libs/nspr (/usr/lib64/libnspr4.so)
sys-libs/glibc (/lib64/libpthread.so.0)
sys-libs/glibc (/lib64/libm.so.6)
sys-libs/glibc (/lib64/libc.so.6)

I found this one while fixing the buildsystem to use pkg-config to discover those...
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-09-01 14:47:40 UTC
I sent upstream a patch to allow disabling NSS and Avahi, and to check for them with pkg-config so that it can be cross-compiled.

As it happens, systemtap 1.6 does _not_ build without NSS, as it lacks some conditionals:

In file included from csclient.cxx:12:
cscommon.h:7:17: error: ssl.h: No such file or directory
In file included from csclient.cxx:12:
cscommon.h:48: error: ISO C++ forbids declaration of ‘CERTCertificate’ with no type
cscommon.h:48: error: expected ‘,’ or ‘...’ before ‘*’ token
make[2]: *** [stap-csclient.o] Error 1
make[2]: Leaving directory `/build/arm-generic/tmp/portage/dev-util/systemtap-1.6/work/systemtap-1.6'
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-09-01 20:58:17 UTC
Okay I was able to get two patches upstream, one to fix the discovery of the two (so that it uses pkg-config) and another to add --without options that allows us to disable code for both.

But the collapse of the two can't be applied over 1.6, I have a port over 1.6, so I could commit this with an avahi USE flag right away, if you wish.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-09-05 14:49:51 UTC
Created attachment 285643 [details]
systemtap-1.7_pre20110903.ebuild

This is an ebuild for the latest snapshot, that includes my patches and the disabled-NSS fixes, which means it can be used without applying futher patches.

I also bumped the ebuild to EAPI=4 as it shortens it a bit.
Comment 4 Pacho Ramos gentoo-dev 2012-12-15 13:33:35 UTC
Should be fixed in 2.0 I think