Subject: Re: use of LDD in pkgsrc/mk/
To: None <>
From: Georg Schwarz <>
List: tech-pkg
Date: 11/30/2005 09:34:06
> > The precise tools and syntaxc used should be configurable per platform
> > without mk/ having to know the platforms explicitly (i.e. it
> > should be configurable with each platform's config files).
> I agree.

So we need a variable that contains the necessary information which should be
set in mk/platform (and potentially overridden in mk.conf).
As far as I can see the only use of it would be in the line that currently
looks like this:

requires=`($$ldd $$bins $$libs 2>/dev/null || ${TRUE}) | ${AWK} 'NF == 3 { print $$3 }' | ${SORT} -u`;


requires=`($$ldd $$bins $$libs 2>/dev/null || ${TRUE}) | ${AWK} '/compatibility version/ { print $$1 }' | ${SORT} -u`;

Is that correct? That is the second line for, BTW?

Ideally, this should be replaced with something like

requires=`${REQUIRES1} | ${SORT} -u`;


requires=`${REQUIRES2} | ${SORT} -u`;


Now the question to the shell script/makefile aces: what do REQUIRES1 and 2
have to look like? :-)

As an additional note, the code in goes through some effort of
determining whether LDD is set and actually a working binary. Should we
do so at compile time? Can't we simply mandate that it is and provide
reasonable defaults per platform?

Georg Schwarz  +49 178 8545053