Bug#1089328: freeimage: Supporting rootless builds by default
Niels Thykier
niels at thykier.net
Sat Dec 7 19:09:08 GMT 2024
Source: freeimage
Version: 3.18.0+ds2-10
Severity: important
Tags: ftbfs
Justification: FTBFS
X-Debbugs-Cc: niels at thykier.net
User: niels at 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`,
freeimage failed to rebuild.
Log Summary:
-------------------------------------------------------------------------------
[...]
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa40c.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa407.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa407.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa420.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x829a.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x829d.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x8822.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x8824.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x8827.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x8828.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9000.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9003.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9004.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9101.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9102.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9201.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9202.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9203.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9204.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9205.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9206.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9207.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9208.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9209.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x920a.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9214.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x927c.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9286.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9290.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9291.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9292.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa000.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa001.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa002.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa003.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa004.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa20b.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa20c.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa20e.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa20f.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa210.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa214.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa215.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa217.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa300.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa301.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa302.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa401.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa402.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa403.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa404.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa405.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa406.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa407.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa408.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa409.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa40a.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa40b.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa40c.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa407.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa407.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa420.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x829a.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x829d.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x8822.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x8824.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x8827.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x8828.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9000.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9003.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9004.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9101.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9102.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9201.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9202.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9203.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9204.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9205.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9206.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9207.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9208.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9209.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x920a.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9214.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x927c.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9286.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9290.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9291.
TIFFFieldWithTag: Warning, Warning, unknown tag 0x9292.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa000.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa001.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa002.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa003.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa004.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa20b.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa20c.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa20e.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa20f.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa210.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa214.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa215.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa217.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa300.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa301.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa302.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa401.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa402.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa403.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa404.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa405.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa406.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa407.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa408.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa409.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa40a.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa40b.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa40c.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa407.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa407.
TIFFFieldWithTag: Warning, Warning, unknown tag 0xa420.
testMemIO ...
testMultiPage ...
testMultiPageMemory ...
testStreamMultiPage ...
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test -Nlibfreeimage-dev -Nlibfreeimage3
-Nlibfreeimageplus-dev -Nlibfreeimageplus3
create-stamp debian/debhelper-build-stamp
dh_prep
debian/rules override_dh_auto_install-arch
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_install -- INCDIR="/<<PKGBUILDDIR>>/debian/tmp/usr/include"
INSTALLDIR="/<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu"
make -j8 install DESTDIR=/<<BUILDDIR>>/freeimage-3.18.0\+ds2/debian/tmp
AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true"
INCDIR=/<<BUILDDIR>>/freeimage-3.18.0\+ds2/debian/tmp/usr/include
INSTALLDIR=/<<BUILDDIR>>/freeimage-3.18.0\+ds2/debian/tmp/usr/lib/aarch64-linux-gnu
make[2]: Entering directory '/<<PKGBUILDDIR>>'
make -f Makefile.gnu install make[3]: Entering directory '/<<PKGBUILDDIR>>'
install -d /<<PKGBUILDDIR>>/debian/tmp/usr/include
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu
install -m 644 -o root -g root Source/FreeImage.h
/<<PKGBUILDDIR>>/debian/tmp/usr/include
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/tmp/usr/include/FreeImage.h': Operation not
permitted
make[3]: *** [Makefile.gnu:76: install] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:30: install] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_install: error: make -j8 install
DESTDIR=/<<BUILDDIR>>/freeimage-3.18.0\+ds2/debian/tmp
AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true"
INCDIR=/<<BUILDDIR>>/freeimage-3.18.0\+ds2/debian/tmp/usr/include
INSTALLDIR=/<<BUILDDIR>>/freeimage-3.18.0\+ds2/debian/tmp/usr/lib/aarch64-linux-gnu
returned exit code 2
make[1]: *** [debian/rules:43: override_dh_auto_install-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:24: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-16T05:43:03Z
-------------------------------------------------------------------------------
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/986601.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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20241207/273bd0bb/attachment.sig>
More information about the debian-science-maintainers
mailing list