Bug#968300: doesn't build without real root

Michael Biebl biebl at debian.org
Wed Aug 12 19:52:01 BST 2020


Control: severity -1 normal
Control: tags -1 unreproducible moreinfo

Am 12.08.20 um 16:11 schrieb Marc Haber:
> Package: systemd
> Version: 241-7~deb10u4.1+0~zgSID+1
> Severity: serious
> Tags: ftbfs
> Justification: [buster] fails to build from source
>

The package obviously builds from source, otherwise there would be no
stable or unstable uploads.

> Hi,
> 
> I am trying to do a local build of systemd 241 on buster to fix the
> capabilities issue (#964026). In this process, I have found out that
> systemd does need "real root" when building and is neiter satisfied with
> a non-root build nor with fakeroot:

I can't reproduce that. I always build packages as non-root user.

> (build tail after dpkd-buildpackage)
> mv debian/systemd/lib/systemd/system/tmp.mount debian/systemd/usr/share/systemd/
> printf '\n[Install]\nWantedBy=local-fs.target\n' >> debian/systemd/usr/share/systemd/tmp.mount
> rm debian/systemd/lib/systemd/system/local-fs.target.wants/tmp.mount
> # files shipped by cryptsetup
> rm debian/systemd/usr/share/man/man5/crypttab.5
> # files shipped by systemd
> rm debian/udev/lib/udev/rules.d/70-uaccess.rules
> rm debian/udev/lib/udev/rules.d/73-seat-late.rules
> rm debian/udev/lib/udev/rules.d/71-seat.rules
> rm debian/udev/lib/udev/rules.d/99-systemd.rules
> # remove duplicate files shipped by systemd-*/udev
> echo "Removing duplicate files in systemd package:"
> Removing duplicate files in systemd package:
> set -e; for pkg in systemd-sysv systemd-container systemd-journal-remote systemd-coredump systemd-tests libpam-systemd libnss-myhostname libnss-mymachines libnss-resolve libnss-systemd libsystemd0 libsystemd-dev udev libudev1 libudev-dev; do \
>         echo "... from $pkg..."; \
>         (cd debian/$pkg; find -type f -o -type l) | (cd debian/systemd; xargs rm -f --verbose); \
>         (cd debian/$pkg; find -mindepth 1 -type d | sort -r) | (cd debian/systemd; xargs rmdir --ignore-fail-on-non-empty --verbose || true); \
> done
> ... from systemd-sysv...
> /srv/mh/systemd/systemd-241/debian/systemd
> rm: cannot remove '/srv/mh/systemd/systemd-241/debian/systemd-sysv': Is a directory

Maybe this directory has messed up permissions?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200812/ec693031/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list