Merge lp:~danilo/ubuntu/raring/command-not-found/python2-package into lp:ubuntu/raring/command-not-found

Proposed by Данило Шеган
Status: Merged
Merge reported by: Barry Warsaw
Merged at revision: not available
Proposed branch: lp:~danilo/ubuntu/raring/command-not-found/python2-package
Merge into: lp:ubuntu/raring/command-not-found
Diff against target: 90 lines (+25/-2)
5 files modified
debian/changelog (+6/-0)
debian/command-not-found.install (+1/-1)
debian/control (+14/-0)
debian/python-commandnotfound.install (+1/-0)
debian/rules (+3/-1)
To merge this branch: bzr merge lp:~danilo/ubuntu/raring/command-not-found/python2-package
Reviewer Review Type Date Requested Status
Barry Warsaw (community) Approve
Ubuntu branches Pending
Review via email: mp+149494@code.launchpad.net

Description of the change

Provide a python-commandnotfound package which installs CommandNotFound into Python2 paths as well.

This is a solution for bug 1123193.

Some improvements already done as per https://code.launchpad.net/~danilo/ubuntu/quantal/command-not-found/python2-package/+merge/147965

To post a comment you must log in.
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Thanks a lot for your work here!

Only minor issues are remaining:

- lintian emits:

    W: python-commandnotfound: wrong-section-according-to-package-name python-commandnotfound => python
    I: python-commandnotfound: extended-description-is-probably-too-short
    I: command-not-found source: duplicate-short-description command-not-found python-commandnotfound

- Is the build-dependency on python[3]-dev really needed?

Revision history for this message
Данило Шеган (danilo) wrote :

Here're the simple fixes. I'll need to double check the python3?-dev deps since it was originally in.

Revision history for this message
Barry Warsaw (barry) wrote :

Hmm, I wonder if we shouldn't restructure this package in a better, more Debian Python policy compliant way.

Meaning, the following binary packages:

 * python-commandnotfound - Python 2 library
 * python3-commandnotfound - Python 3 library
 * command-not-found-data - unchanged
 * command-not-found - everything else

Obviously command-not-found would Depends on python3-commandnotfound

Revision history for this message
Barry Warsaw (barry) wrote :

How about verifying and updating Standards-Version too?

Revision history for this message
Barry Warsaw (barry) wrote :

Also, is --without=python-support really necessary?

review: Needs Fixing
Revision history for this message
Bryce Harrington (bryce) wrote :

[Setting to WIP to remove this from sponsor queue; please set back to Needs Review once it's ready for review again.]

Revision history for this message
Barry Warsaw (barry) wrote :

I'm going to fix these problems and upload - thanks Danilo!

Revision history for this message
Barry Warsaw (barry) :
review: Approve
Revision history for this message
Данило Шеган (danilo) wrote :

Thanks Barry: it'd probably take me days to get all of that fixed considering my packaging experience :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-10-26 11:19:07 +0000
+++ debian/changelog 2013-02-25 22:29:20 +0000
@@ -1,3 +1,9 @@
1command-not-found (0.3ubuntu7) raring; urgency=low
2
3 * Reintroduce Python2 support with python-commandnotfound package.
4
5 -- Danilo Segan <danilo@kvota.net> Wed, 20 Feb 2013 09:51:10 +0100
6
1command-not-found (0.3ubuntu6) raring; urgency=low7command-not-found (0.3ubuntu6) raring; urgency=low
28
3 * Build depend on python3-all.9 * Build depend on python3-all.
410
=== modified file 'debian/command-not-found.install'
--- debian/command-not-found.install 2012-02-03 10:10:52 +0000
+++ debian/command-not-found.install 2013-02-25 22:29:20 +0000
@@ -1,3 +1,3 @@
1usr/lib1usr/lib/python3
2usr/bin2usr/bin
3etc/3etc/
4\ No newline at end of file4\ No newline at end of file
55
=== modified file 'debian/control'
--- debian/control 2012-10-26 11:19:07 +0000
+++ debian/control 2013-02-25 22:29:20 +0000
@@ -11,9 +11,15 @@
11 python3-apt,11 python3-apt,
12 python3-gdbm,12 python3-gdbm,
13 python3-distutils-extra,13 python3-distutils-extra,
14 python,
15 python-dev,
16 python-apt,
17 python-gdbm,
18 python-distutils-extra,
14Standards-Version: 3.7.219Standards-Version: 3.7.2
15XS-Vcs-Bzr: http://launchpad.net/~ubuntu-core-dev/command-not-found/ubuntu20XS-Vcs-Bzr: http://launchpad.net/~ubuntu-core-dev/command-not-found/ubuntu
16X-Python3-Version: >= 3.221X-Python3-Version: >= 3.2
22X-Python-Version: >= 2.7
1723
18Package: command-not-found24Package: command-not-found
19Architecture: all25Architecture: all
@@ -28,3 +34,11 @@
28Description: Set of data files for command-not-found.34Description: Set of data files for command-not-found.
29 This package provides the required data used by the command-not-found 35 This package provides the required data used by the command-not-found
30 application.36 application.
37
38Package: python-commandnotfound
39Section: python
40Architecture: all
41Depends: ${python:Depends}, ${misc:Depends}, python-apt, command-not-found-data, python-gdbm, lsb-release
42Description: Python2 bindings for command-not-found.
43 This package will install Python2 library for command_not_found tool.
44 Useful if you still have programs in Python2 that depend on it.
3145
=== added file 'debian/python-commandnotfound.install'
--- debian/python-commandnotfound.install 1970-01-01 00:00:00 +0000
+++ debian/python-commandnotfound.install 2013-02-25 22:29:20 +0000
@@ -0,0 +1,1 @@
1usr/lib/python2.*/*-packages/*
02
=== modified file 'debian/rules'
--- debian/rules 2012-06-29 13:46:06 +0000
+++ debian/rules 2013-02-25 22:29:20 +0000
@@ -1,7 +1,7 @@
1#!/usr/bin/make -f1#!/usr/bin/make -f
22
3%:3%:
4 dh $@ --with=python3 --without=python-support4 dh $@ --with=python2,python3 --without=python-support
55
6PY3REQUESTED := $(shell py3versions -r)6PY3REQUESTED := $(shell py3versions -r)
7PY3DEFAULT := $(shell py3versions -d)7PY3DEFAULT := $(shell py3versions -d)
@@ -10,6 +10,7 @@
10PY3 := $(filter-out $(PY3DEFAULT),$(PY3REQUESTED)) python310PY3 := $(filter-out $(PY3DEFAULT),$(PY3REQUESTED)) python3
1111
12override_dh_auto_build:12override_dh_auto_build:
13 dh_auto_build
13 set -e; for python in $(PY3); do \14 set -e; for python in $(PY3); do \
14 $$python setup.py build; \15 $$python setup.py build; \
15 done16 done
@@ -23,6 +24,7 @@
23 find -name __pycache__ -print0 | xargs -0r rm -rf24 find -name __pycache__ -print0 | xargs -0r rm -rf
2425
25override_dh_auto_install:26override_dh_auto_install:
27 dh_auto_install
26 set -e; for python in $(PY3); do \28 set -e; for python in $(PY3); do \
27 $$python setup.py install --force --root=$(CURDIR)/debian/tmp \29 $$python setup.py install --force --root=$(CURDIR)/debian/tmp \
28 --no-compile -O0 --install-layout=deb; \30 --no-compile -O0 --install-layout=deb; \

Subscribers

People subscribed via source and target branches