[Debian-med-packaging] Elastix: dh_testroot: You must run this as root (or use fakeroot).

Niels Thykier niels at thykier.net
Mon Jan 14 22:08:00 GMT 2019


Andreas Tille:
> Hi,
> 
> I intend to upgrade elastix[1] but I'm running into:
> 
> 
> ...
> [100%] Built target itkMevisDicomTiffImageIOTest
> make[2]: Leaving directory '/build/elastix-4.9.0/obj-x86_64-linux-gnu'
> /usr/bin/cmake -E cmake_progress_start /build/elastix-4.9.0/obj-x86_64-linux-gnu/CMakeFiles 0
> make[1]: Leaving directory '/build/elastix-4.9.0/obj-x86_64-linux-gnu'
>    create-stamp debian/debhelper-build-stamp
>  fakeroot debian/rules binary
> dh binary-arch --no-parallel
> ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
>    dh_testroot -a -O--no-parallel
> ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> dh_testroot: You must run this as root (or use fakeroot).
> make: *** [debian/rules:12: binary-arch] Error 255
> dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
> 
> 
> I was able to build this package today with minor changes (on a
> different machine but always in up to date pbuilder chroot).  Any
> idea what might be wrong here?
> 
> Kind regards
> 
>        Andreas.
> 
> 
> [1] https://salsa.debian.org/med-team/elastix
> 

Hi Andreas,

Basically, fakeroot fails to load itself properly (that is the
LD_PRELOAD warnings).  I am not sure why though and it might be worth
figuring out what goes wrong there.

Note that you can also use "Rules-Requires-Root: no" in d/control
assuming the package in fact does not need (fake)root (many does not but
some do).  That should side-step the entire issue for this package
(although if you have a broken fakeroot, you will probably run into this
issue again later with a different package).

Thanks,
~Niels



More information about the Debian-med-packaging mailing list