installed packages should be checked first when generating dependencies
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | dh-python (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
dh_pythonX appears to go through the following series of checks when generating dependencies for python packages:
1) check package specific pydist overrides
2) check for package in dh-python fallback files
3) check for package using dpkg -S
these last two steps appear the wrong way around (at least to me); we are transitioning a number of python-oslo* packages due to upstream switching to unnamespaced packages - however the check in 2) kicks in first, so we end up with the old binary package names in generated Depends.
Also the fallback files are generated from Debian unstable, so is not great for Ubuntu first transitions.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: dh-python 1.20141111-2ubuntu1
ProcVersionSign
Uname: Linux 3.18.0-13-generic x86_64
ApportVersion: 2.16.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Feb 16 17:02:00 2015
Dependencies:
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-11-25 (83 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20141124)
PackageArchitec
SourcePackage: dh-python
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
| James Page (james-page) wrote : | #1 |
| Piotr Ożarowski (piotr) wrote : | #2 |
| James Page (james-page) wrote : | #3 |
Piotr - thanks for the pointer!
| Piotr Ożarowski (piotr) wrote : Re: [Bug 1422433] Re: installed packages should be checked first when generating dependencies | #4 |
if you point me to Ubuntu's newest Contents file (without hardcoded
release), I can use dpkg-vendor to use the right one during build.
| James Page (james-page) wrote : | #5 |
Piotr
distro-info provides "ubuntu-distro-info --devel" which would give you the name of the current devel release of Ubuntu, which is probably the right source for most re-generations - full URL:
http://
Does that work for you?
| James Page (james-page) wrote : | #6 |
Proposed patch attached for supporting Ubuntu fallback generation.
Piotr - can you let me know what you think?
| tags: | added: patch |
| Piotr Ożarowski (piotr) wrote : | #7 |
is there a way to get latest Ubuntu release name (or an alias, like "sid" or "unstable" or "current") using stdlib only? (DistroInfo requires additional python3-distro-info build dependency)?
| Launchpad Janitor (janitor) wrote : | #8 |
This bug was fixed in the package dh-python - 2.20150826
---------------
dh-python (2.20150826) unstable; urgency=medium
* Remove '--with-doctest' from nose call, closes: 749506
to re-enable it: export PYBUILD_
* Build-Depends based test suite detection is used only if PYBUILD_TEST_FOO
is not set to 1
* dh_python2: do not try to move files to pyshared if package doesn't
provide public modules (f.e. due to interpreter version no longer
supported or installed), closes: 793148
-- Piotr Ożarowski <email address hidden> Wed, 26 Aug 2015 16:53:52 +0200
| Changed in dh-python (Ubuntu): | |
| status: | New → Fix Released |


in pydist/ generate_ fallback_ list.py you can change SOURCE (I can change it to try SOURCE env. var. first, to make it easier for you)
and then invoke `make dist_fallback` to generate new fallback file