Skip to content

fix_shebangs() fails #352

@steveo-at-bosch

Description

@steveo-at-bosch

Hi,

when calling dpkg-buildpackage -us -uc -b, it fails with

...
Successfully built ad-tools
sed: can't read debian/mypackage/opt/venvs/mypackage/bin/rst2xetex.py: No such file or directory
Traceback (most recent call last):
  File "/usr/bin/dh_virtualenv", line 111, in <module>
    sys.exit(main() or 0)
  File "/usr/bin/dh_virtualenv", line 103, in main
    deploy.fix_shebangs()
  File "/usr/lib/python3/dist-packages/dh_virtualenv/deployment.py", line 234, in fix_shebangs
    subprocess.check_call(['sed', '-i', regex, f])
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)

here's the content of my rules

#!/usr/bin/make -f

%:
	dh $@ --with python-virtualenv

and control

Source: mypackage
Section: python
Priority: extra
Maintainer: None <None>
Build-Depends: debhelper (>= 9), python, dh-virtualenv (>= 0.7)
Standards-Version: 3.9.5

Package: mypackage
Architecture: any
Pre-Depends: dpkg (>= 1.16.1), python2.7-minimal | python2.6-minimal, ${misc:Pre-Depends}
Depends: ${python:Depends}, ${misc:Depends}
Description: mydescr
 mydescr

Environment:

Ubuntu 20.04
Debian dpkg-buildpackage version 1.19.7.
dh_virtualenv 1.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions