Dear Maintainer,
Trying to build lvm2_2.03.22-1 on trixie (as of 14Jun2024) fails with
permissions error:
make[1]: Leaving directory '/var/tmp/lvm2-2.03.22'
dh_installman
dh_python3 -i
/usr/share/dh-python/dhpython/_defaults.py:46: EncodingWarning: 'encoding'
argument not specified
config.read("/usr/share/python{}/debian_defaults".format(ver))
I: dh_python3 tools:113: replacing shebang in
debian/lvm2-dbusd/usr/sbin/lvmdbusd
Traceback (most recent call last):
File "/bin/dh_python3", line 292, in <module>
main()
File "/bin/dh_python3", line 219, in main
stats = Scanner(interpreter, package, private_dir, options).result
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/dh-python/dhpython/fs.py", line 259, in __init__
self.handle_bin_dir(root, file_names)
File "/usr/share/dh-python/dhpython/fs.py", line 443, in handle_bin_dir
if fix_shebang(fpath, self.options.shebang):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/dh-python/dhpython/tools.py", line 122, in fix_shebang
with open(fpath, 'wb') as fp:
^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied:
'debian/lvm2-dbusd/usr/sbin/lvmdbusd'
make: *** [debian/rules:83: binary] Error 1
This was from freshly downloaded sources:
* lvm2_2.03.22-1.debian.tar.xz
* lvm2_2.03.22-1.dsc
* lvm2_2.03.22.orig.tar.xz
using the following recipe:
dpkg-source -x lvm2_2.03.22*.dsc
cd lvm2-2.03.22/
dpkg-buildpackage -rfakeroot -us -uc
I believe this dpkg-source/dpkg-buildpackage recipe should work without any
additional configuration - please advise if there are additional steps that are
necessary.
My interest in recompiling this package is linked to a suspicion that lvm2 may
need to be recompiled for the latest trixie kernel (now 6.9.x), which may be
implicated in bug #1072996 in cryptmount.