incorrect parsing of != dependency versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dh-python (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Wily |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned | ||
Yakkety |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
dh-python incorrectly used != version operators in some cases, resulting in failed package builds; this impacts a number of stable updates for Xenial which blacklist a specific cryptography version.
[Test Case]
Build stable release of glance/
[Regression Potential]
Testing OK in yakkety; change is minimal and ensures != operator is ignored when detected.
[Original Bug Report]
Some updates to requirements for openstack projects (glance and keystone specifically) is causing dh-python to incorrectly generate a != version dependency; this is the requires.txt entry:
cryptography!
which causes (utimately):
dpkg-gencontrol: warning: can't parse dependency python-cryptography (!= 1.3.0)
from the generated dependency line:
"python-castellan, python-crypto (>= 2.6), python-cryptography (!= 1.3.0), python-
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: dh-python 2.20151103ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-22-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Thu May 12 15:15:36 2016
Dependencies:
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-01-17 (115 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160117)
PackageArchitec
SourcePackage: dh-python
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in dh-python (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in dh-python (Ubuntu Yakkety): | |
importance: | Undecided → High |
Changed in dh-python (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in dh-python (Ubuntu Yakkety): | |
status: | New → Triaged |
description: | updated |
Changed in dh-python (Ubuntu Wily): | |
importance: | Undecided → High |
tags: |
added: verification-done removed: verification-needed |
This is odd because its not the only dependency in this type for format.