#997401 lvm2: FTBFS: dh_install: error: missing files, aborting

Package:
src:lvm2
Source:
lvm2
Submitter:
Lucas Nussbaum
Date:
2025-08-11 15:23:07 UTC
Severity:
serious
Tags:
#997401#5
Date:
2021-10-23 20:23:06 UTC
From:
To:
Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
The full build log is available from:
http://qa-logs.debian.net/2021/10/23/lvm2_2.03.11-2.1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

#997401#12
Date:
2024-07-14 15:26:08 UTC
From:
To:
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.