Bug#908365: Package fails to build reproducibly
biebl at debian.org
Mon Sep 10 15:51:49 BST 2018
Am 10.09.18 um 04:28 schrieb Michael Biebl:
> Thanks Chris
> Am 09.09.18 um 21:31 schrieb Chris Lamb:
>> Spent a couple moments on this. The first thing that can be addressed
>> is the absolute CATALOG_DIR which ends up in the /usr/lib/systemd/
>> tests/test-catalog binary in the systemd-tests package.
>> This dir is currently "useless" in that it will fail on (almost) all
>> end- user systems as it points into the original build path, eg, /tmp/
> test-catalog is an odd one indeed. We already special-case it in our
> I've filed https://github.com/systemd/systemd/issues/10045, maybe we can
> find a proper solution for this or stop installing the test binary.
So, upstream has proposed a fix to make test-catalog work as installed
test . It still encodes the absolute build dir in the binary though.
While looking at it more closely, I noticed that test-catalog is not the
only test using ABS_BUILD_DIR.
get_testdata_dir() from src/shared/tests.c  also uses it.
I'm a bit uncertain about this. Those (installed) tests are bit special.
They are supposed to work during "ninja test", i.e. we run them as part
of the build process. But we also install them in the systemd-tests
binary package so we can run them via autopkgtest later on.
Now, I could try and convince upstream to not embed ABS_BUILD_DIR into
the binary and maybe let the build system pass the build dir as env var.
This would make those test-binaries a bit more cumbersome to use though,
because you'd have to manually set the env var if you directly execute
the test by hand.
Since the "systemd-tests" package is a bit special, could we somehow
exclude that (basically all binaries from /usr/lib/systemd/tests) from
the reproducibility checks so the binaries which are shipped in that
package don't make the whole src:systemd package fail?
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the Reproducible-builds