installed packages should be checked first when generating dependencies

Bug #1422433 reported by James Page
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dh-python (Ubuntu)
Fix Released
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
ProcVersionSignature: Ubuntu 3.18.0-13.14-generic 3.18.5
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)
PackageArchitecture: all
SourcePackage: dh-python
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
James Page (james-page) wrote :
Revision history for this message
Piotr Ożarowski (piotr) wrote :

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

Revision history for this message
James Page (james-page) wrote :

Piotr - thanks for the pointer!

Revision history for this message
Piotr Ożarowski (piotr) wrote : Re: [Bug 1422433] Re: installed packages should be checked first when generating dependencies

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.

Revision history for this message
James Page (james-page) wrote :

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://archive.ubuntu.com/ubuntu/dists/vivid/Contents-amd64.gz

Does that work for you?

Revision history for this message
James Page (james-page) wrote :

Proposed patch attached for supporting Ubuntu fallback generation.

Piotr - can you let me know what you think?

tags: added: patch
Revision history for this message
Piotr Ożarowski (piotr) wrote :

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)?

Revision history for this message
Launchpad Janitor (janitor) wrote :

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_TEST_ARGS=--with-doctest
  * 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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.