Bug#880095: /usr/bin/dh_girepository: please support Rules-Requires-Root: no

Simon McVittie smcv at debian.org
Sun Oct 29 12:28:48 UTC 2017


Package: gobject-introspection
Version: 1.54.1-1
Severity: wishlist
File: /usr/bin/dh_girepository

I tried converting src:flatpak to Rules-Requires-Root: no, which skips
use of fakeroot, instead running the entire build as the ordinary user and
telling dpkg-dev to consider all files in the tarballs inside the .deb to be
owned by root:root. However, that fails:

make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_strip
   dh_makeshlibs
   dh_shlibdeps
   dh_girepository
install: cannot change owner and permissions of 'debian/gir1.2-flatpak-1.0/DEBIAN': Operation not permitted
dh_girepository: install -o 0 -g 0 -d debian/gir1.2-flatpak-1.0/DEBIAN returned exit code 1
debian/rules:11: recipe for target 'binary' failed

If dh_girepository just used "install [-m MODE] -d DEST" and
"install [-m MODE] SOURCE DEST" instead of adding -o 0 -g 0, this would
probably work, because the default for install(1) is to install the files
owned by the current uid and the current primary gid.

Regards,
    smcv

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gobject-introspection depends on:
ii  build-essential        12.4
ii  libc6                  2.24-17
ii  libffi6                3.2.1-6
ii  libgirepository-1.0-1  1.54.1-1
ii  libglib2.0-0           2.54.2-1
ii  python3                3.6.3-2
ii  python3-mako           1.0.7+ds1-1

gobject-introspection recommends no packages.

gobject-introspection suggests no packages.

-- no debconf information



More information about the pkg-gnome-maintainers mailing list