#1089335 gemdropx: Supporting rootless builds by default

#1089335#5
Date:
2024-12-07 19:15:08 UTC
From:
To:
Dear maintainer,

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

Log Summary:
-------------------------------------------------------------------------------
[...]
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/disc.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/dot.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/explode0.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/explode1.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/explode2.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/explode3.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/fuji.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/gemdropx-icon.xpm':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/happy.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/left-mask.xbm':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/left.xbm':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/level.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/lines.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/need.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/nothing-mask.xbm':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/nothing.xbm':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/numbers.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/patience.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/paused.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/right-mask.xbm':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/right.xbm':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/sad.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/score.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/stopwatch.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/title.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/triangle.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/uhoh.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/warning.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/warning1.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/warning2.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/warning3.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/warning4.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/wildcard.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/win1.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/win2.bmp':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/images/yellowgem.bmp':
Operation not permitted
make[2]: [Makefile:45: install] Error 1 (ignored)
mkdir /<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds
install -g root -o root -m 644 data/sounds/*
/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/22drops.mod':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/2force.xm':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/README':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/applause.wav':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/begin.wav':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/bomb.wav':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/buzzer.wav':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/citron.mod':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/clock.wav':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/gameover.wav':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/got.wav':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/grab.wav':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/hr_suds.xm':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/levelselect.wav':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/throw.wav':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/wildcard.wav':
Operation not permitted
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/games/gemdropx/sounds/win.wav':
Operation not permitted
make[2]: [Makefile:47: install] Error 1 (ignored)
install -g root -o root -m 755 gemdropx
/<<PKGBUILDDIR>>/debian/gemdropx/usr/games/
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/games/gemdropx': Operation not
permitted
make[2]: [Makefile:48: install] Error 1 (ignored)
install -g root -o root -m 644 gemdropx.6
/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/man/man6/
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/man/man6/gemdropx.6':
Operation not permitted
make[2]: [Makefile:49: install] Error 1 (ignored)
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
install -g root -o root -m 644 data/images/gemdropx-icon.xpm \
	/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/pixmaps/
install: cannot change ownership of
'/<<PKGBUILDDIR>>/debian/gemdropx/usr/share/pixmaps/gemdropx-icon.xpm':
Operation not permitted
make[1]: *** [debian/rules:18: override_dh_auto_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-16T07:10:33Z
-------------------------------------------------------------------------------


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/987891.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.

#1089335#10
Date:
2024-12-31 14:11:04 UTC
From:
To:
Control: tags -1 patch

Hi

Please see attached as a patch.

I intend to NMU to make progress on the MBF if I do not hear from you on
this. It would help me if you either uploaded this soon or approved the
NMU (enabling me to skip the delay). Thanks in advance.

Best regards,
Niels

#1089335#17
Date:
2024-12-31 15:55:18 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
gemdropx, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1089335@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Niels Thykier <niels@thykier.net> (supplier of updated gemdropx package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 31 Dec 2024 14:09:35 +0000
Source: gemdropx
Architecture: source
Version: 0.9-9.1
Distribution: unstable
Urgency: medium
Maintainer: Christian T. Steigies <cts@debian.org>
Changed-By: Niels Thykier <niels@thykier.net>
Closes: 1089335
Changes:
 gemdropx (0.9-9.1) unstable; urgency=medium
 .
   * Non-maintainer upload with permission from maintainer.
   * Remove requirement for root when building the package.
     (Closes: #1089335)
Checksums-Sha1:
 c7a4177bd4bd2b890603181b4b8a6b2367c9a561 1542 gemdropx_0.9-9.1.dsc
 c1bf21162ee7c68a4a32e3e4601b4df9463efc97 8260 gemdropx_0.9-9.1.debian.tar.xz
 69ba382bb198ec0ff9534ced4c26e8bb03907043 11283 gemdropx_0.9-9.1_source.buildinfo
Checksums-Sha256:
 85d994b3cdfe609ae00f395b3456660f68b6b81800cc18aaceccd0fa5ced17c9 1542 gemdropx_0.9-9.1.dsc
 ca8b3d5b2269f3c55bc6f195d81f62563396953a10d9f22912bd2180e2fecacf 8260 gemdropx_0.9-9.1.debian.tar.xz
 b47f5ff9a2521c6f71f99e4f09465648721e92293e2deb9e8fa69731f62a95fa 11283 gemdropx_0.9-9.1_source.buildinfo
Files:
 63d2f477fdca1e0a1d347bf1a87adc58 1542 games optional gemdropx_0.9-9.1.dsc
 98d28e2d8006f369e1cdb97f50364b87 8260 games optional gemdropx_0.9-9.1.debian.tar.xz
 bddf2ccc43b258592a61465997a92d9a 11283 games optional gemdropx_0.9-9.1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQFGBAEBCgAwFiEE9ecZmu9eXGflVYc/dA1oiINl0okFAmd0B8USHG5pZWxzQHRo
eWtpZXIubmV0AAoJEHQNaIiDZdKJgB0H/icHN4p7JrQt4T231A/8IksPo8ZXl8Gg
etz6WMOn7mna8SMnYf/0hxngD86o5OnxjeRy4y3swApCy62IePgOIb3vNW054aOm
zjxTwP3pO+Il6Kyd7lCmfkm0Orqp+7t25/6xWEzdKUq82Z3PjLodYpF+NJYueMZb
gFXdCFrsEDmMs1SrGbqdkpAcIkjRcghNMiSTNFqgew2RGncnwsg2fmiH36FU8Jf+
zw81T2z9CjpMag4dYVWeRia2bdM2WyT0p8dsCkn0NdMlci2L+SdIhYHLPZMMu+19
hLYrQV/7WMK/dv1l/UIioIUDbCryaJI6p1kG3Ago5j2zAMcy7Rkyn90=
=n0UP
-----END PGP SIGNATURE-----