On Feb 9, 2008, at 4:03 AM, Ralf S. Engelschall wrote:
> On Fri, Feb 08, 2008, Jeff Johnson wrote:
>
>> [...]
>> + - jbj: tie tget/tdir/tglob/tfts to a rpmio "make check".
>> much more to do ...
>> [...]
>> LINT = splint
>>
>> -EXTRA_DIST = gengpg.sh tdir.c tfts.c tget.c thkp.c tput.c
>> tglob.c tinv.c tkey.c trpmio.c lookup3.c tpw.c librpmio.vers
>> +EXTRA_DIST = gengpg.sh thkp.c tput.c tinv.c tkey.c trpmio.c
>> lookup3.c tpw.c librpmio.vers
>>
>> -EXTRA_PROGRAMS = tdir tfts tget tglob thkp tinv tkey tmacro
>> tmagic tmire tput tpw trpmio tsw dumpasn1 lookup3
>> +EXTRA_PROGRAMS = thkp tinv tkey tmacro tmagic tmire tput tpw
>> trpmio tsw dumpasn1 lookup3
>> +
>> +noinst_PROGRAMS = tdir tfts tget tglob
>> +noinst_SCRIPTS = testit.sh
>> +
>> +TESTS = testit.sh
>
> Sorry, Jeff, this cannot be done. It worked for you only because you
> still have not built from scratch. Else you would have noticed that
> this
> requires build/ and lib/ to be built _BEFORE_ rpmio/ stuff and this
> breaks the library dependency hierarchy!
>
Then something else is broken. There's nothing in this set of includes
#include "system.h"
#include <rpmio_internal.h>
#include <rpmmacro.h>
#include <rpmcb.h>
#include <argv.h>
#include <popt.h>
#include "debug.h"
that should need anything other than -lrpmio and -lpopt and dpendents.
Here is what is broken:
make[2]: *** No rule to make target `../build/librpmbuild.la', needed
by `tdir'. Stop.
There's nothing in -lrpmbuild needed by tdir.
> It is important that the test programs in rpmio/ which need build/ and
> lib/ are marked as EXTRA_ stuff so they are *not* built automatically
> during the the regular build. By moving them to noinst_XXXX they are
> attempted to be build and this breaks the regular build procedure now.
> I had to back this change out in order to unbreak the regular
> building.
>
Sure. But there's nothing in those programs that should need anything
outside of -lrpmio.
> If you really wish those test programs to be build automatically I
> recommend to move all of them into a separate directory (e.g. tools/)
> and additionally perhaps allow one to disable their building via
> --without-tests, too.
Or fix the linkage.
73 de Jeff
Received on Sat Feb 9 14:09:58 2008