Source: gkrellm2-cpufreq
Version: 0.6.4-6.1
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`,
gkrellm2-cpufreq failed to rebuild.

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

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


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

Format: 3.0 (quilt)
Source: gkrellm2-cpufreq
Binary: gkrellm-cpufreq
Architecture: any
Version: 0.6.4-6.1
Maintainer: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de>
Homepage: http://chw.populus.org/rub/7
Standards-Version: 4.4.0
Vcs-Browser: https://github.com/glaubitz/gkrellm-cpufreq-debian
Vcs-Git: git://github.com/glaubitz/gkrellm-cpufreq-debian.git
Build-Depends: debhelper (>= 12), libcpupower-dev, gkrellm (>= 2.1.4),
libgtk2.0-dev
Package-List:
 gkrellm-cpufreq deb x11 optional arch=any
Checksums-Sha1:
 4cf77b3f8c8e72c0a8fe57e541cb284a3368d3a1 13738 gkrellm2-
cpufreq_0.6.4.orig.tar.gz
 306580a50792a85a73fd7a1c360d63a3a65f8ad5 3804 gkrellm2-
cpufreq_0.6.4-6.1.debian.tar.xz
Checksums-Sha256:
 71dceb4a77b038ca8731cdba23f71926519c1f784946d676207d20c673c46dc8 13738
gkrellm2-cpufreq_0.6.4.orig.tar.gz
 0d8e80dab97ee902fcbc378ffe6c34456b613f3ce661192106fb68e5722d9bee 3804
gkrellm2-cpufreq_0.6.4-6.1.debian.tar.xz
Files:
 6eebb29cb208bc3049fa790cae1e366d 13738 gkrellm2-cpufreq_0.6.4.orig.tar.gz
 aed1eaf39f1fb4fb059025dfd72dd8f9 3804 gkrellm2-
cpufreq_0.6.4-6.1.debian.tar.xz


gpgv: Signature made Sun Feb  7 11:46:03 2021 UTC
gpgv:                using RSA key 3AFA757FAC6EA11D2FF45DF088D24287A2D898B1
gpgv: Can't check signature: No public key
dpkg-source: warning: cannot verify inline signature for ./gkrellm2-
cpufreq_0.6.4-6.1.dsc: no acceptable signature found
dpkg-source: info: extracting gkrellm2-cpufreq in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking gkrellm2-cpufreq_0.6.4.orig.tar.gz
dpkg-source: info: unpacking gkrellm2-cpufreq_0.6.4-6.1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying 0001-Modify-Makefile-to-make-sure-linker-
flags-are-proper.patch
dpkg-source: info: applying 0002-Modify-Makefile-to-allow-gkrellm2-
cpufreq-to-be-cros.patch
dpkg-source: info: applying 0003-Modify-Makefile-to-link-against-
libcpupower-instead-.patch
dpkg-source: info: applying 0004-Get-number-of-cpus.patch

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 gkrellm2-cpufreq
dpkg-buildpackage: info: source version 0.6.4-6.1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Adrian Bunk <b...@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
dh  clean
   dh_auto_clean
        make -j8 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f *.o core *.so* *.bak *~
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules binary
dh  binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   dh_auto_build
        make -j8 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/
<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -
Wformat -Werror=format-security -mbranch-protection=standard -O2 -Wall -
fPIC `pkg-config gtk+-2.0 --cflags` -Wdate-time -D_FORTIFY_SOURCE=2  -c
-o cpufreq.o cpufreq.c
cpufreq.c: In function ‘governor_userspace’:
cpufreq.c:140:3: warning: ignoring return value of ‘system’ declared
with attribute ‘warn_unused_result’ [-Wunused-result]
  140 |   system(cmd);
      |   ^~~~~~~~~~~
cpufreq.c: In function ‘set_frequency’:
cpufreq.c:146:3: warning: ignoring return value of ‘system’ declared
with attribute ‘warn_unused_result’ [-Wunused-result]
  146 |   system(cmd);
      |   ^~~~~~~~~~~
cpufreq.c: In function ‘next_governor’:
cpufreq.c:134:3: warning: ignoring return value of ‘system’ declared
with attribute ‘warn_unused_result’ [-Wunused-result]
  134 |   system(cmd);
      |   ^~~~~~~~~~~
cpufreq.c: In function ‘create_plugin’:
cpufreq.c:410:3: warning: ‘style’ may be used uninitialized [-Wmaybe-
uninitialized]
  410 |   gkrellm_panel_configure(panel, "", style);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cpufreq.c:339:17: note: ‘style’ was declared here
  339 |   GkrellmStyle* style;
      |                 ^~~~~
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/
<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -
Wformat -Werror=format-security -mbranch-protection=standard -O2 -Wall -
fPIC `pkg-config gtk+-2.0 --cflags` cpufreq.o -o cpufreq.so -Wl,-z,relro
-shared -lcpupower `pkg-config gtk+-2.0 --libs`
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test
   create-stamp debian/debhelper-build-stamp
   dh_prep
   dh_auto_install --destdir=debian/gkrellm-cpufreq/
        make -j8 install DESTDIR=/<<PKGBUILDDIR>>/debian/gkrellm-cpufreq
AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
install -D -m 755 cpufreq.so /<<PKGBUILDDIR>>/debian/gkrellm-cpufreq/
usr/lib/gkrellm2/plugins/cpufreq.so
install -g root -o root -D -m 755 cpufreqnextgovernor /<<PKGBUILDDIR>>/
debian/gkrellm-cpufreq/usr/sbin/cpufreqnextgovernor
install: cannot change ownership of '/<<PKGBUILDDIR>>/debian/gkrellm-
cpufreq/usr/sbin/cpufreqnextgovernor': Operation not permitted
make[1]: *** [Makefile:21: install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_install: error: make -j8 install DESTDIR=/<<PKGBUILDDIR>>/
debian/gkrellm-cpufreq AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-
program=true" returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-16T07:57:09Z

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


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