Control: reassign -1 dh-python
Control: affects -1 src:lvm2

Hi dh-python maintainers,

lvm2 installs debian/lvm2-dbusd/usr/sbin/lvmdbusd mode 0555, IOW -w.

dh-python then fails:

On Tue, Apr 29, 2025 at 02:57:10PM +0200, Lucas Nussbaum wrote:
> >    dh_python3 -i
> > I: dh_python3 tools:114: replacing shebang in 
> > debian/lvm2-dbusd/usr/sbin/lvmdbusd
> > Traceback (most recent call last):
> >   File "/usr/bin/dh_python3", line 293, in <module>
> >     main()
> >     ~~~~^^
> >   File "/usr/bin/dh_python3", line 220, in main
> >     stats = Scanner(interpreter, package, private_dir, options).result
> >             ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/usr/share/dh-python/dhpython/fs.py", line 262, in __init__
> >     self.handle_bin_dir(root, file_names)
> >     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
> >   File "/usr/share/dh-python/dhpython/fs.py", line 446, in handle_bin_dir
> >     if fix_shebang(fpath, self.options.shebang):
> >        ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/usr/share/dh-python/dhpython/tools.py", line 123, 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

I'm not sure if lvm2 can even workaround this.

Best,
Chris

Reply via email to