Bug#908365: Package fails to build reproducibly

Chris Lamb lamby at debian.org
Sun Sep 9 20:31:24 BST 2018


Chris Lamb wrote:

> (Sorry to be a downer but I wouldn't want to give the impression this
> was so "easily" remedied. Alas.)

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/
buildd.

Can this variable be provided on the command line? If so, you will need
to also ship the actual catalogs too.


Alternatively, you could do something dumb like:
  
  --- a/debian/rules      2018-09-09 17:51:44.321868919 +0100
  --- b/debian/rules      2018-09-09 20:28:31.894763652 +0100
  @@ -255,6 +255,9 @@
          install --mode=755 debian/extra/set-cpufreq debian/systemd/lib/systemd/
   endif
   
  +       # Unreproducible?
  +       rm -f debian/systemd-tests/usr/lib/systemd/tests/test-catalog
  +
   override_dh_missing:
          dh_missing --sourcedir debian/install/deb $(DH_MISSING)

I haven't tested this specifcally, nor checked whether this makes the
entire package reproducible but this is the most obvious thing atm.

Enjoy...


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-




More information about the Pkg-systemd-maintainers mailing list