-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using debian-compat (=12) fails #326
Comments
I think there is a change with compatibility level 12, which needs a change
with dh-virtualenv. For immediate fix you could try building with compat
11?
On Sat 24. Apr 2021 at 20.24, Patrik Dufresne ***@***.***> wrote:
I'm trying to upgrade my package to use compat 12. It's failing with this
error Please use the third-party "pybuild" build system instead of
python-distutils
Here control file:
Source: minarca-quota-api
Section: python
Priority: extra
Maintainer: IKUS Software inc. ***@***.***>
Build-Depends: debhelper-compat (= 12), python3, dh-virtualenv (>= 1.1),
python3-setuptools, python3-pip, python3-dev, libffi-dev,
libldap2-dev, libsasl2-dev
Standards-Version: 3.9.5
Package: minarca-quota-api
Architecture: any
Pre-Depends: dpkg (>= 1.16.1), python3 (>= 3.5), ${misc:Pre-Depends}
Depends: ${python3:Depends}, ${misc:Depends}, python3-distutils | libpython3.5-stdlib
Description: Minarca Quota API Server
Rules:
export DH_VIRTUALENV_INSTALL_ROOT=/opt/
export SETUPTOOLS_SCM_PRETEND_VERSION=$(shell python3 setup.py --version)
%:
dh $@ --with python-virtualenv --builddirectory=build
override_dh_virtualenv:
dh_virtualenv --install-suffix minarca-server --setuptools-test --python python3
And the resulting build log:
dpkg-buildpackage: info: source package minarca-quota-api
dpkg-buildpackage: info: source version 3.8.1~dev24+g2985e41
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Patrik Dufresne ***@***.***>
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
debian/rules clean
dh clean --with python-virtualenv --builddirectory=build
/build/minarca-quota-api/.eggs/setuptools_scm-6.0.1-py3.7.egg/setuptools_scm/git.py:88: UserWarning: "/build" is shallow and may cause errors
warnings.warn(f'"{wd.path}" is shallow and may cause errors')
dh_autoreconf_clean -O--builddirectory=build
dh_clean -O--builddirectory=build
debian/rules build
dh build --with python-virtualenv --builddirectory=build
/build/minarca-quota-api/.eggs/setuptools_scm-6.0.1-py3.7.egg/setuptools_scm/git.py:88: UserWarning: "/build" is shallow and may cause errors
warnings.warn(f'"{wd.path}" is shallow and may cause errors')
dh_update_autotools_config -O--builddirectory=build
dh_autoreconf -O--builddirectory=build
dh_auto_configure -O--builddirectory=build
dh_auto_configure: Please use the third-party "pybuild" build system instead of python-distutils
dh_auto_configure: This feature was removed in compat 12.
make: *** [debian/rules:7: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make[1]: *** [Makefile:50: ../minarca-quota-api_3.8.1~dev24+g2985e41_amd64.deb] Error 2
make[1]: Leaving directory '/builds/ikus-soft/minarca/minarca-quota-api'
make: *** [Makefile:13: minarca-quota-api] Error 2
Is compat 12 event support ? The documentation still make reference to
compat 9
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#326>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAPRSFS5UDV2QDNJCLPEZLTKL5FFANCNFSM43QK4NWA>
.
--
- Jyrki
|
Seams to be working with compat=11. Leaving this bug open as it still relevant. compat=12 is not working |
I believe this could be fixed if you use export DH_VIRTUALENV_ARGUMENTS to avoid the error
as this flag has been removed in recent virtualenv versions (see this stackoverflow answer for details) (this should be resolved by #334). You will also need to add a dependency on python(3)-pip, as the buildsystem uses the host pip... (this should be resolved by #333). In addition, you must provide a
Note that according to the man page,
|
Hi, The issue is caused by Another clean way to solve this issue until the next release is to create an empty @nailor I guess a dh_virtualenv release would be kind of nice by now :-) kr, Mat |
I was able to get compat 12 working ok with debian bookworm: https://github.com/flaccid/deb-virtualenv-example |
I'm trying to upgrade my package to use compat 12. It's failing with this error
Please use the third-party "pybuild" build system instead of python-distutils
Here control file:
Rules:
And the resulting build log:
Is compat 12 event support ? The documentation still make reference to compat 9
The text was updated successfully, but these errors were encountered: