Source: extrepo
Version: 0.13
Severity: important
Tags: ftbfs
Justification: FTBFS
X-Debbugs-Cc: ni...@thykier.net
User: ni...@thykier.net
Usertags: rrr-no-as-default-issue

Dear maintainer,

During a test rebuild for building packages with
`Rules-Requires-Root: no` as the default in `dpkg`,
extrepo failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]

+------------------------------------------------------------------------------+
| Build
                                                                       |
+------------------------------------------------------------------------------+


Unpack source
-------------

Format: 3.0 (native)
Source: extrepo
Binary: extrepo
Architecture: all
Version: 0.13
Maintainer: Wouter Verhelst <wou...@debian.org>
Standards-Version: 4.4.1
Vcs-Browser: https://salsa.debian.org/extrepo-team/extrepo
Vcs-Git: https://salsa.debian.org/extrepo-team/extrepo.git
Testsuite: autopkgtest
Testsuite-Triggers: extrepo-offline-data
Build-Depends: debhelper-compat (= 12), gnupg
Package-List:
 extrepo deb admin optional arch=all
Checksums-Sha1:
 ae6cedf3e74749e8b2fa64d72b4b0254811c69fd 16660 extrepo_0.13.tar.xz
Checksums-Sha256:
 8c4e24cea9d6537e9061b1c2bf5d5e77c5a7260e98db98575b35ccec81899498 16660
extrepo_0.13.tar.xz
Files:
 2a455a7eb77c1b75d36c97301433c329 16660 extrepo_0.13.tar.xz


gpgv: Signature made Sun Jan  7 22:09:51 2024 UTC
gpgv:                using ECDSA key
1984860920B60CED8D13093747D37F29E62EB8FF
gpgv:                issuer "wou...@debian.org"
gpgv: Can't check signature: No public key
dpkg-source: warning: cannot verify inline signature for ./
extrepo_0.13.dsc: no acceptable signature found
dpkg-source: info: extracting extrepo in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking extrepo_0.13.tar.xz

Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=en_US.UTF-8
LC_ALL=C.UTF-8
LOGNAME=debusine-worker
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SHELL=/bin/sh
USER=debusine-worker

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package extrepo
dpkg-buildpackage: info: source version 0.13
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Wouter Verhelst
<wou...@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
dh clean
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f keyring.gpg
dh_auto_clean
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
        /usr/bin/perl Makefile.PL INSTALLDIRS=vendor "OPTIMIZE=-g -O2 -
Werror=implicit-function-declaration -ffile-prefix-map=/
<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -
Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time
-D_FORTIFY_SOURCE=2" "LD=aarch64-linux-gnu-gcc -g -O2 -Werror=implicit-
function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-
protector-strong -fstack-clash-protection -Wformat -Werror=format-
security -mbranch-protection=standard -Wl,-z,relro"
Warning: prerequisite YAML 0 not found.
Generating a Unix-style Makefile
Writing Makefile for Debian::ExtRepo
Writing MYMETA.yml and MYMETA.json
   dh_auto_build
        make -j16
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp lib/Debian/ExtRepo/Commands/Search.pm blib/lib/Debian/ExtRepo/
Commands/Search.pm
cp lib/Debian/ExtRepo/Data.pm blib/lib/Debian/ExtRepo/Data.pm
cp lib/Debian/ExtRepo.pm blib/lib/Debian/ExtRepo.pm
cp lib/Debian/ExtRepo/Commands/Disable.pm blib/lib/Debian/ExtRepo/
Commands/Disable.pm
cp lib/Debian/ExtRepo/Commands/Enable.pm blib/lib/Debian/ExtRepo/
Commands/Enable.pm
cp extrepo blib/script/extrepo
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/extrepo
Manifying 1 pod document
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test
        make -j16 test TEST_VERBOSE=1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
No tests defined for Debian::ExtRepo extension.
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   create-stamp debian/debhelper-build-stamp
   dh_prep
   dh_installdirs
   dh_auto_install --destdir=debian/extrepo/
        make -j16 install DESTDIR=/<<PKGBUILDDIR>>/debian/extrepo
AM_UPDATE_INFO_DIR=no PREFIX=/usr
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Manifying 1 pod document
Installing /<<PKGBUILDDIR>>/debian/extrepo/usr/share/perl5/Debian/ExtRepo.pm
Installing /<<PKGBUILDDIR>>/debian/extrepo/usr/share/perl5/Debian/
ExtRepo/Data.pm
Installing /<<PKGBUILDDIR>>/debian/extrepo/usr/share/perl5/Debian/
ExtRepo/Commands/Disable.pm
Installing /<<PKGBUILDDIR>>/debian/extrepo/usr/share/perl5/Debian/
ExtRepo/Commands/Search.pm
Installing /<<PKGBUILDDIR>>/debian/extrepo/usr/share/perl5/Debian/
ExtRepo/Commands/Enable.pm
Installing /<<PKGBUILDDIR>>/debian/extrepo/usr/share/man/man1/extrepo.1p
Installing /<<PKGBUILDDIR>>/debian/extrepo/usr/bin/extrepo
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
gpg --dearmor < keyring.asc > keyring.gpg
dh_install
cp: cannot create regular file 'debian/extrepo/usr/bin/extrepo':
Permission denied
dh_install: error: cp --reflink=auto -a ./extrepo debian/extrepo/usr/
bin// returned exit code 1
make[1]: *** [debian/rules:7: override_dh_install] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-16T02:51:31Z

-------------------------------------------------------------------------------


The above is just how the build ends and not necessarily the most
relevant part. If required, the full build log is available here:

https://people.debian.org/~nthykier/rrr-no-as-default/logs/982961.gz

You can find common solutions at
https://people.debian.org/~nthykier/rrr-no-as-default/docs/solutions.md

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

If this package is listed in
https://people.debian.org/~nthykier/rrr-no-as-default/docs/static-
ownership.list,
then please just set `Rules-Requires-Root: binary-targets` to the source
stanza of `debian/control` as a fix to this bug.

If this package is listed in
https://people.debian.org/~nthykier/rrr-no-as-default/docs/maybe-
misbuilds.list,
then the package was deemed at risk for misbuilding (having wrong
ownership) but had a FTBFS problem we tested it. Please test whether the
package works with `Rules-Requires-Root: no` validating that the
resulting deb has the correct ownership for all paths in the deb.

The goal is to have the default changed in `dpkg` either in `Trixie` or
`Forky`, depending on progress and feasibility with the release schedule
for Trixie.

For more information on this bug filing, please see:
https://lists.debian.org/debian-dpkg/2024/11/msg00016.html

Thanks,


PS: The builds were performed in mid-November. If you fixed the problem
between between then and this bug being filed, then please just close
the bug with the version it was fixed in.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to