[Pkg-freeipa-devel] Bug#1089329: freeipa: Supporting rootless builds by default

Niels Thykier niels at thykier.net
Sat Dec 7 19:09:33 GMT 2024


Source: freeipa
Version: 4.11.1-2.1
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`,
freeipa failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/config.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/dn_ctypes.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/dnsutil.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/kernel_keyring.py 
-> /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython
copying 
/<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/directivesetter.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython
creating 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install
copying 
/<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/install/__init__.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/install/cli.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/install/typing.py 
-> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/install/common.py 
-> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/install/util.py 
-> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/install/core.py 
-> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/dn.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/kerberos.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/ipaldap.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/ipachangeconf.py 
-> /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython
copying /<<PKGBUILDDIR>>/ipapython/build/lib/ipapython/graph.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/errors.py 
to errors.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/version.py 
to version.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/ipavalidate.py 
to ipavalidate.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/ipautil.py 
to ipautil.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/ssh.py 
to ssh.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/__init__.py 
to __init__.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/ipa_log_manager.py 
to ipa_log_manager.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/certdb.py 
to certdb.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/cookie.py 
to cookie.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/session_storage.py 
to session_storage.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/fqdn.py 
to fqdn.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/nsslib.py 
to nsslib.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/dogtag.py 
to dogtag.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/admintool.py 
to admintool.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/config.py 
to config.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/dn_ctypes.py 
to dn_ctypes.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/dnsutil.py 
to dnsutil.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/kernel_keyring.py 
to kernel_keyring.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/directivesetter.py 
to directivesetter.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install/__init__.py 
to __init__.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install/cli.py 
to cli.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install/typing.py 
to typing.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install/common.py 
to common.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install/util.py 
to util.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install/core.py 
to core.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/dn.py 
to dn.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/kerberos.py 
to kerberos.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/ipaldap.py 
to ipaldap.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/ipachangeconf.py 
to ipachangeconf.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/graph.py 
to graph.cpython-312.pyc
writing byte-compilation script '/tmp/tmpnnky5zei.py'
/usr/bin/python3 /tmp/tmpnnky5zei.py
removing /tmp/tmpnnky5zei.py
running install_egg_info
running egg_info
writing ipapython.egg-info/PKG-INFO
writing dependency_links to ipapython.egg-info/dependency_links.txt
writing requirements to ipapython.egg-info/requires.txt
writing top-level names to ipapython.egg-info/top_level.txt
reading manifest file 'ipapython.egg-info/SOURCES.txt'
adding license file '../COPYING'
writing manifest file 'ipapython.egg-info/SOURCES.txt'
Copying ipapython.egg-info to 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython-4.11.1.egg-info
Copying PKG-INFO to 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython-4.11.1.egg-info/PKG-INFO
Skipping SOURCES.txt
Copying dependency_links.txt to 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython-4.11.1.egg-info/dependency_links.txt
Copying requires.txt to 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython-4.11.1.egg-info/requires.txt
Copying top_level.txt to 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython-4.11.1.egg-info/top_level.txt
running install_scripts
writing list of installed files to 
'/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/ipapython/install_files.txt'
modules installed to 
'/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/', which is 
not in Python's module search path (sys.path) -- you'll have to change 
the search path yourself
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/<<PKGBUILDDIR>>/ipapython'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/ipapython'
make[3]: Entering directory '/<<PKGBUILDDIR>>'
make[4]: Entering directory '/<<PKGBUILDDIR>>'
  /usr/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/tmp/usr/bin'
  /usr/bin/install -c ipa '/<<PKGBUILDDIR>>/debian/tmp/usr/bin'
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/<<PKGBUILDDIR>>'
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
mkdir -p /<<PKGBUILDDIR>>/debian/tmp/usr/share/bash-completion/completions \
install -m 0644 contrib/completion/ipa.bash_completion \
	/<<PKGBUILDDIR>>/debian/tmp/usr/share/bash-completion/completions/ipa
mkdir: cannot create directory 
‘/<<PKGBUILDDIR>>/debian/tmp/usr/share/bash-completion/completions’: 
Permission denied
make[1]: *** [debian/rules:75: override_dh_auto_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:135: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit 
status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-16T05:43:05Z

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


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/986603.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/pkg-freeipa-devel/attachments/20241207/0e44975a/attachment.sig>


More information about the Pkg-freeipa-devel mailing list