Your message dated Fri, 11 Jul 2014 23:19:00 +0000
with message-id <[email protected]>
and subject line Bug#754060: fixed in python-defaults 2.7.8-1
has caused the Debian Bug report #754060,
regarding [python-defaults] Allow bootstrapping without python-docutils
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
754060: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754060
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-defaults
Version: 2.7.6-2
Severity: wishlist
Tags: patch

Hi,

First of all, thanks for maintaining Python in Debian!

As part of this year's "Bootstrappable Debian" Google Summer of Code
project I took a look at python-defaults to break a circular build
dependency as noted in the "Feedback Arc Set" section of
http://bootstrap.debian.net/amd64/ and, more specifically, at
http://bootstrap.debian.net/source/python-defaults.html and the
version-specific pages linked from it.  There are two primary goals to
my work on this GSoC project:
- The first goal is to modify some packages so that they may be built in
  some limited way ("nocheck", binary-only, or build profiles like
  "stage1") without some of their usual build dependencies.  In most
  cases this is caused by one or more dependency loops between binary
  and source packages, so that a source package requires for its
  building, directly or indirectly, one of its own binary packages to be
  already built.  The modifications make the source build in a limited
  fashion (not generating documentation, not running tests, not building
  some of the binary packages) so that this may happen with only the
  rest of the build dependencies, so Debian may be bootstrapped on a new
  architecture starting from a very few cross-built toolchain packages
  and then moving along, source package by source package.
- The second goal, which is actually closely related to the first, is
  that in the process of modifications, any changes (some files not
  regenerated, others not built at all) can be made with binary package
  level granularity.  This means that if a binary package is built at
  all during a limited build, then it must have the same contents as the
  same binary package resulting from a full build.  The point here is to
  avoid breakage if other packages in the archive depend on some
  functionality provided by the omitted files; if so, it should be
  obvious that the functionality is missing, and the clearest way to do
  that is by omitting a full binary package or, rather, delaying its
  build until the rest of the build dependencies are present.

After this somewhat lengthy introduction, the point of my work on
python-defaults was to remove two circular build dependencies:
lsb-release and python-docutils, both of which require python to be
already present.  It was very easy to drop lsb-release, since dpkg-dev
1.15.1 and later provide the needed functionality in the dpkg-vendor
utility.

With python-docutils the result was a bit more... unconventional than
I'd like.  The usual way to resolve these circular build dependencies is
to make sure all the files that need more tools for generating are moved
to a separate package and this package is built conditionally.  For
documentation files, this is usually very easy, as with libtasn1-6 in
#749854, autogen in #751470, flex in #749344 - in some cases it's as
easy as moving some packages from Build-Depends to Build-Depends-Indep
and slightly adjusting the rules file to only build the documentation in
build-indep/binary-indep.  Well, with python-docutils this led to two
weird consequences:
- the Python Policy and the Python FAQ had to be moved from the python
  binary package to the python-doc one, which meant that, to avoid
  replacing the /usr/share/doc/python/python-policy.html/ directory with
  a symlink to ../python-doc/python-policy.html/, I had to let
  python-doc install stuff into /usr/share/doc/python/.  I know that
  this usually raises a few eyebrows, but it seems to be the cleanest
  way to do it (dpkg does not seem to handle very well a directory being
  replaced with a symlink during a package upgrade).
- the manual pages for the executable tools in the python and
  python-minimal binary packages are also generated documentation, which
  means that there was a choice: go with statically-generated versions
  and make sure they are refreshed periodically, or move them to
  python-doc, too.  Well, moving them to python-doc leads to it now
  installing manual pages for utilities in another package - another
  "raise a few eyebrows" situation.

I added a Recommends: python-doc to both python and python-minimal, so
that in the usual "recommended packages are installed by default" case
both the Python Policy and the manual pages will be present on the
system.  Still, I realize that this is a bit fishy, and in the end you
have the final say as actual maintainers of the Python packages in
Debian, so... here are the proposed patches, let the critique begin! :)

Thanks again for your work on Python and on Debian in general!

G'luck,
Peter

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- 
Peter Pentchev  [email protected] [email protected] [email protected]
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13
From acf832fc5bcd5d51da6e44dbbbf2b1215d68d4a3 Mon Sep 17 00:00:00 2001
From: Peter Pentchev <[email protected]>
Date: Sun, 15 Jun 2014 20:17:32 +0300
Subject: [PATCH 1/9] Regenerate debian/control.

---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index a3efed5..570bfe0 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: python-defaults
 Section: python
 Priority: optional
 Maintainer: Matthias Klose <[email protected]>
-Uploaders: Scott Kitterman <[email protected]>, Piotr Ożarowski 
<[email protected]>, Barry Warsaw <[email protected]>
+Uploaders: Scott Kitterman <[email protected]>, Piotr Ożarowski 
<[email protected]>
 Build-Depends: debhelper (>= 8~), python-docutils (>= 0.4-3),
   libhtml-tree-perl, debiandoc-sgml, lsb-release
 Standards-Version: 3.9.5
-- 
2.0.0

From dbf71bacc4c7cfcefab0438079a66fca1895a200 Mon Sep 17 00:00:00 2001
From: Peter Pentchev <[email protected]>
Date: Fri, 13 Jun 2014 17:47:22 +0300
Subject: [PATCH 2/9] Use dpkg-vendor instead of lsb_release.

Drop a circular build dependency on lsb-release by using
dpkg-vendor instead of lsb_release to find out whether we are
on a Debian or a Ubuntu distribution.  The dpkg-vendor utility
was added in dpkg-dev 1.15.1, so there is no need for a versioned
build dependency.
---
 debian/control.in | 2 +-
 debian/rules      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/control.in b/debian/control.in
index 5ffad46..f5839f4 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Matthias Klose <[email protected]>
 Uploaders: Scott Kitterman <[email protected]>, Piotr Ożarowski 
<[email protected]>
 Build-Depends: debhelper (>= 8~), python-docutils (>= 0.4-3),
-  libhtml-tree-perl, debiandoc-sgml, lsb-release
+  libhtml-tree-perl, debiandoc-sgml
 Standards-Version: 3.9.5
 Homepage: http://www.python.org/
 Vcs-Bzr: http://alioth.debian.org/anonscm/bzr/pkg-python/python-defaults-debian
diff --git a/debian/rules b/debian/rules
index e131a80..7fca98e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,7 @@ changelog_values := $(shell dpkg-parsechangelog \
 PKGSOURCE  := $(word 1, $(changelog_values))
 PKGVERSION := $(word 2, $(changelog_values))
 
-distribution := $(shell lsb_release -is)
+distribution := $(shell dpkg-vendor --query Vendor)
 
 export VER=2.7
 export NVER=2.8
-- 
2.0.0

From d49580c06404d58c03ff1e96f37db2c96830b763 Mon Sep 17 00:00:00 2001
From: Peter Pentchev <[email protected]>
Date: Sun, 15 Jun 2014 20:18:28 +0300
Subject: [PATCH 3/9] Regenerate debian/control.

---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 570bfe0..4320b93 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Matthias Klose <[email protected]>
 Uploaders: Scott Kitterman <[email protected]>, Piotr Ożarowski 
<[email protected]>
 Build-Depends: debhelper (>= 8~), python-docutils (>= 0.4-3),
-  libhtml-tree-perl, debiandoc-sgml, lsb-release
+  libhtml-tree-perl, debiandoc-sgml
 Standards-Version: 3.9.5
 Homepage: http://www.python.org/
 Vcs-Bzr: http://alioth.debian.org/anonscm/bzr/pkg-python/python-defaults-debian
-- 
2.0.0

From 6a17cd15a742d87eebae3a9bbdec93f3eb9e195c Mon Sep 17 00:00:00 2001
From: Peter Pentchev <[email protected]>
Date: Sat, 14 Jun 2014 14:21:32 +0300
Subject: [PATCH 4/9] Move the Python Policy and the FAQ to python-doc.

Move the documents that need additional tools for building to
the python-doc package so that they may be cleanly isolated in
a binary-only build.  The goal is to be able to build
the architecture-dependent packages without relying on
python-docutils or similar in order to be able to break
a circular build dependency and improve the process of
bootstrapping Debian on a new architecture.

In the process, move the actual generation of the documentation
files to a build-indep stage, do not do everything in the install
and binary stages.
---
 debian/python-doc.doc-base.python-policy | 19 ++++++++
 debian/python-doc.docs                   |  3 ++
 debian/python-doc.install                |  1 +
 debian/python.doc-base.python-policy     | 19 --------
 debian/rules                             | 83 ++++++++++++++++++--------------
 5 files changed, 71 insertions(+), 54 deletions(-)
 create mode 100644 debian/python-doc.doc-base.python-policy
 create mode 100644 debian/python-doc.install
 delete mode 100644 debian/python.doc-base.python-policy

diff --git a/debian/python-doc.doc-base.python-policy 
b/debian/python-doc.doc-base.python-policy
new file mode 100644
index 0000000..da7267e
--- /dev/null
+++ b/debian/python-doc.doc-base.python-policy
@@ -0,0 +1,19 @@
+Document: python-policy
+Title: Debian Python Policy (Proposal)
+Author: Neil Schemenauer, Matthias Klose, Gregor Hoffleit
+Abstract: This document describes the packaging of Python within the Debian
+ GNU/Linux distribution and the policy requirements for packaged Python
+ programs and modules.
+ .
+ The Debian Python Policy has still a draft status.
+Section: Debian
+
+Format: debiandoc-sgml
+Files: /usr/share/doc/python-doc/python-policy.sgml.gz
+
+Format: text
+Files: /usr/share/doc/python-doc/python-policy.txt.gz
+
+Format: HTML
+Index: /usr/share/doc/python-doc/python-policy.html/index.html
+Files: /usr/share/doc/python-doc/python-policy.html/*.html
diff --git a/debian/python-doc.docs b/debian/python-doc.docs
index 7f88ca4..d9cc702 100644
--- a/debian/python-doc.docs
+++ b/debian/python-doc.docs
@@ -1 +1,4 @@
+debian/python-policy.txt
+debian/python-policy.sgml
+debian/python-policy.html
 pydist/README.PyDist*
diff --git a/debian/python-doc.install b/debian/python-doc.install
new file mode 100644
index 0000000..1308ca2
--- /dev/null
+++ b/debian/python-doc.install
@@ -0,0 +1 @@
+faq/*.html usr/share/doc/python-doc/faq
diff --git a/debian/python.doc-base.python-policy 
b/debian/python.doc-base.python-policy
deleted file mode 100644
index 049a475..0000000
--- a/debian/python.doc-base.python-policy
+++ /dev/null
@@ -1,19 +0,0 @@
-Document: python-policy
-Title: Debian Python Policy (Proposal)
-Author: Neil Schemenauer, Matthias Klose, Gregor Hoffleit
-Abstract: This document describes the packaging of Python within the Debian
- GNU/Linux distribution and the policy requirements for packaged Python
- programs and modules.
- .
- The Debian Python Policy has still a draft status.
-Section: Debian
-
-Format: debiandoc-sgml
-Files: /usr/share/doc/python/python-policy.sgml.gz
-
-Format: text
-Files: /usr/share/doc/python/python-policy.txt.gz
-
-Format: HTML
-Index: /usr/share/doc/python/python-policy.html/index.html
-Files: /usr/share/doc/python/python-policy.html/*.html
diff --git a/debian/rules b/debian/rules
index 7fca98e..5d933f9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,12 +42,29 @@ ifneq ($(with_doc),yes)
 endif
 
 build: stamp-build
-build-arch: stamp-build
-build-indep: stamp-build
-stamp-build:
+build-arch: stamp-build-arch
+build-indep: stamp-build-indep
+stamp-build: stamp-build-arch stamp-build-indep
        touch stamp-build
 
-stamp-doc-policy:
+stamp-build-arch: control-file
+       touch stamp-build-arch
+
+stamp-build-indep: control-file stamp-doc
+       touch stamp-build-indep
+
+stamp-doc-faq: control-file
+       set -e; \
+       cd faq && \
+       for p in *.ht; do \
+         p=`basename $$p .ht`; \
+         echo $(rst2html) $$p.ht $$p.html; \
+         awk 'NR > 2' $$p.ht > $$p.ht2; \
+         $(rst2html) $$p.ht2 $$p.html; \
+       done
+       touch stamp-doc-faq
+
+stamp-doc-policy: control-file
        debiandoc2text debian/python-policy.sgml
        mv -f python-policy.txt debian/
        debiandoc2html -l en.UTF-8 debian/python-policy.sgml
@@ -56,7 +73,7 @@ stamp-doc-policy:
        make -C pydist README.PyDist.html
        touch stamp-doc-policy
 
-stamp-doc: stamp-doc-policy
+stamp-doc: stamp-doc-policy stamp-doc-faq
        touch stamp-doc
 
 control-file:
@@ -130,27 +147,23 @@ stamp-control:
            fi; \
        done
 
-install: build stamp-dh_python stamp-install
-stamp-install: stamp-build control-file stamp-control
+install-arch: build-arch stamp-dh_python stamp-install-arch
+install-indep: build-indep stamp-install-indep
+
+stamp-install-arch: stamp-build-arch
        dh_testdir
        dh_testroot
-       dh_installdirs usr/share/doc/python/faq
-       dh_install
+       dh_install -a
+       touch stamp-install-arch
 
-       set -e; \
-       cd faq && \
-       for p in *.ht; do \
-         p=`basename $$p .ht`; \
-         echo $(rst2html) $$p.ht $$p.html; \
-         awk 'NR > 2' $$p.ht > $$p.ht2; \
-         $(rst2html) $$p.ht2 $$p.html; \
-         mv $$p.html ../debian/python/usr/share/doc/python/faq/; \
-         rm -f $$p.ht2; \
-       done
-       mv debian/python/usr/share/doc/python/faq/FAQ.html \
-               debian/python/usr/share/doc/python/
+stamp-install-indep: stamp-build-indep
+       dh_testdir
+       dh_testroot
+       dh_installdirs -ppython-doc usr/share/doc/python-doc/faq 
usr/share/doc/python-doc/python-policy.html
+       mv faq/FAQ.html debian/python-doc/usr/share/doc/python-doc/
+       dh_install -i
 
-       touch stamp-install
+       touch stamp-install-indep
 
 stamp-dh_python:
        dh_testdir
@@ -165,7 +178,7 @@ stamp-dh_python:
        touch $@
 
 # Build architecture-independent files here.
-binary-indep: build install stamp-doc
+binary-indep: build-indep install-indep stamp-doc
        dh_testdir -i
        dh_testroot -i
        dh_installman -i
@@ -212,7 +225,7 @@ endif
        dh_builddeb -i $(NOPKGS)
 
 # Build architecture-dependent files here.
-binary-arch: build install stamp-doc
+binary-arch: build-arch install-arch
        dh_testdir -a
        dh_testroot -a
        dh_installman -a
@@ -266,19 +279,23 @@ binary-arch: build install stamp-doc
        ln -sf 2to3-$(VER).1.gz \
                debian/python/usr/share/man/man1/2to3.1.gz
 
-       mkdir -p debian/python/usr/share/doc/python
-       cp -a debian/python-policy.{html,sgml,txt} \
-               debian/python/usr/share/doc/python/
-
        mkdir -p debian/python/usr/share/pixmaps
        ln -sf python$(VER).xpm debian/python/usr/share/pixmaps/python.xpm
 
        : # add symlinks to policy files
-       mkdir -p debian/python/usr/share/doc/python$(VER)
+       mkdir -p debian/python/usr/share/doc/python 
debian/python/usr/share/doc/python$(VER)
        for ext in html sgml.gz txt.gz; do \
-         ln -sf ../python/python-policy.$$ext \
+         ln -sf ../python-doc/python-policy.$$ext \
+               debian/python/usr/share/doc/python/python-policy.$$ext; \
+         ln -sf ../python-doc/python-policy.$$ext \
                debian/python/usr/share/doc/python$(VER)/python-policy.$$ext; \
        done
+       for faq in faq FAQ.html; do \
+         ln -sf ../python-doc/$$faq \
+               debian/python/usr/share/doc/python/$$faq; \
+         ln -sf ../python-doc/$$faq \
+               debian/python/usr/share/doc/python$(VER)/$$faq; \
+       done
 
        mkdir -p debian/python/usr/share/apps/konsole
        cp -p debian/python.desktop debian/python/usr/share/apps/konsole/
@@ -375,13 +392,9 @@ endif
        dh_md5sums -a $(NOPKGS)
        dh_builddeb -a $(NOPKGS)
 
-# Build architecture-dependent files here.
-binary-arch: build install
-# nothing to do
-
 binary: binary-indep binary-arch
 
-.PHONY: control-file configure build clean binary-indep binary-arch binary 
install
+.PHONY: control-file configure build clean binary-indep binary-arch binary 
install-indep install-arch
 
 # Local Variables:
 # mode: makefile
-- 
2.0.0

From 0068888d8ec6f6517e77dd4677e7eb3513e0970e Mon Sep 17 00:00:00 2001
From: Peter Pentchev <[email protected]>
Date: Sat, 14 Jun 2014 14:35:07 +0300
Subject: [PATCH 5/9] Let python-doc install into /usr/share/doc/python.

This, although a little bit inappropriate, takes care of
a couple of problems that arise when we attempt to replace
a directory with a symbolic link during a package upgrade.
---
 debian/python-doc.doc-base.python-policy |  8 ++++----
 debian/python-doc.docs                   |  3 ---
 debian/python-doc.install                |  5 ++++-
 debian/rules                             | 15 ++++-----------
 4 files changed, 12 insertions(+), 19 deletions(-)

diff --git a/debian/python-doc.doc-base.python-policy 
b/debian/python-doc.doc-base.python-policy
index da7267e..049a475 100644
--- a/debian/python-doc.doc-base.python-policy
+++ b/debian/python-doc.doc-base.python-policy
@@ -9,11 +9,11 @@ Abstract: This document describes the packaging of Python 
within the Debian
 Section: Debian
 
 Format: debiandoc-sgml
-Files: /usr/share/doc/python-doc/python-policy.sgml.gz
+Files: /usr/share/doc/python/python-policy.sgml.gz
 
 Format: text
-Files: /usr/share/doc/python-doc/python-policy.txt.gz
+Files: /usr/share/doc/python/python-policy.txt.gz
 
 Format: HTML
-Index: /usr/share/doc/python-doc/python-policy.html/index.html
-Files: /usr/share/doc/python-doc/python-policy.html/*.html
+Index: /usr/share/doc/python/python-policy.html/index.html
+Files: /usr/share/doc/python/python-policy.html/*.html
diff --git a/debian/python-doc.docs b/debian/python-doc.docs
index d9cc702..7f88ca4 100644
--- a/debian/python-doc.docs
+++ b/debian/python-doc.docs
@@ -1,4 +1 @@
-debian/python-policy.txt
-debian/python-policy.sgml
-debian/python-policy.html
 pydist/README.PyDist*
diff --git a/debian/python-doc.install b/debian/python-doc.install
index 1308ca2..077626a 100644
--- a/debian/python-doc.install
+++ b/debian/python-doc.install
@@ -1 +1,4 @@
-faq/*.html usr/share/doc/python-doc/faq
+faq/*.html usr/share/doc/python/faq
+debian/python-policy.txt usr/share/doc/python
+debian/python-policy.sgml usr/share/doc/python
+debian/python-policy.html usr/share/doc/python
diff --git a/debian/rules b/debian/rules
index 5d933f9..ea96686 100755
--- a/debian/rules
+++ b/debian/rules
@@ -159,8 +159,8 @@ stamp-install-arch: stamp-build-arch
 stamp-install-indep: stamp-build-indep
        dh_testdir
        dh_testroot
-       dh_installdirs -ppython-doc usr/share/doc/python-doc/faq 
usr/share/doc/python-doc/python-policy.html
-       mv faq/FAQ.html debian/python-doc/usr/share/doc/python-doc/
+       dh_installdirs -ppython-doc usr/share/doc/python/faq 
usr/share/doc/python/python-policy.html
+       mv faq/FAQ.html debian/python-doc/usr/share/doc/python/
        dh_install -i
 
        touch stamp-install-indep
@@ -187,9 +187,6 @@ ifeq ($(with_doc),yes)
        mkdir -p debian/python-doc/usr/share/doc/python
        ln -sf ../python$(VER)-doc/html \
                debian/python-doc/usr/share/doc/python/html
-       mkdir -p debian/python-doc/usr/share/doc/python-doc
-       ln -sf ../python$(VER)-doc/html \
-               debian/python-doc/usr/share/doc/python-doc/html
 endif
 
        : # provide the idle and idle.1 defaults
@@ -285,15 +282,11 @@ binary-arch: build-arch install-arch
        : # add symlinks to policy files
        mkdir -p debian/python/usr/share/doc/python 
debian/python/usr/share/doc/python$(VER)
        for ext in html sgml.gz txt.gz; do \
-         ln -sf ../python-doc/python-policy.$$ext \
-               debian/python/usr/share/doc/python/python-policy.$$ext; \
-         ln -sf ../python-doc/python-policy.$$ext \
+         ln -sf ../python/python-policy.$$ext \
                debian/python/usr/share/doc/python$(VER)/python-policy.$$ext; \
        done
        for faq in faq FAQ.html; do \
-         ln -sf ../python-doc/$$faq \
-               debian/python/usr/share/doc/python/$$faq; \
-         ln -sf ../python-doc/$$faq \
+         ln -sf ../python/$$faq \
                debian/python/usr/share/doc/python$(VER)/$$faq; \
        done
 
-- 
2.0.0

From f8c45e5e26c86b35055bb3d5cd87a0bd07ec7138 Mon Sep 17 00:00:00 2001
From: Peter Pentchev <[email protected]>
Date: Sun, 15 Jun 2014 20:07:56 +0300
Subject: [PATCH 6/9] Move the manpages to python-doc, too.

This is a bit unconventional, since now a package contains manpages for
programs found in another package, but this allows us to build the rest
of the packages without a build-dependency on rst2man.
---
 debian/python-doc.manpages     | 3 +++
 debian/python-minimal.manpages | 2 --
 debian/python.manpages         | 1 -
 debian/rules                   | 8 ++++++--
 4 files changed, 9 insertions(+), 5 deletions(-)
 create mode 100644 debian/python-doc.manpages
 delete mode 100644 debian/python-minimal.manpages
 delete mode 100644 debian/python.manpages

diff --git a/debian/python-doc.manpages b/debian/python-doc.manpages
new file mode 100644
index 0000000..3bd2723
--- /dev/null
+++ b/debian/python-doc.manpages
@@ -0,0 +1,3 @@
+pyclean.1
+pycompile.1
+dh_python2.1
diff --git a/debian/python-minimal.manpages b/debian/python-minimal.manpages
deleted file mode 100644
index 242b101..0000000
--- a/debian/python-minimal.manpages
+++ /dev/null
@@ -1,2 +0,0 @@
-pyclean.1
-pycompile.1
diff --git a/debian/python.manpages b/debian/python.manpages
deleted file mode 100644
index 47df0aa..0000000
--- a/debian/python.manpages
+++ /dev/null
@@ -1 +0,0 @@
-dh_python2.1
diff --git a/debian/rules b/debian/rules
index ea96686..cf0b090 100755
--- a/debian/rules
+++ b/debian/rules
@@ -73,7 +73,11 @@ stamp-doc-policy: control-file
        make -C pydist README.PyDist.html
        touch stamp-doc-policy
 
-stamp-doc: stamp-doc-policy stamp-doc-faq
+stamp-doc-manpages: control-file
+       DESTDIR=debian/python-minimal PREFIX=/usr make manpages
+       touch stamp-doc-manpages
+
+stamp-doc: stamp-doc-policy stamp-doc-faq stamp-doc-manpages
        touch stamp-doc
 
 control-file:
@@ -171,7 +175,7 @@ stamp-dh_python:
        dh_installdirs
        -make check_versions
        DESTDIR=debian/python PREFIX=/usr make install-dev
-       DESTDIR=debian/python-minimal PREFIX=/usr make install-runtime manpages
+       DESTDIR=debian/python-minimal PREFIX=/usr make install-runtime
        # disabled by default, run manually if you want to update it
        # (requires apt-file and network connection)
        #make -C pydist dist_fallback
-- 
2.0.0

From a2e25502199b24972f64f40897ac73c7d3a25107 Mon Sep 17 00:00:00 2001
From: Peter Pentchev <[email protected]>
Date: Sun, 15 Jun 2014 20:05:32 +0300
Subject: [PATCH 7/9] "make clean" in tests requires python-minimal installed.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 135614d..5d17068 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ PREFIX ?= /usr/local
 MANPAGES ?= dh_python2.1 pycompile.1 pyclean.1
 
 clean:
-       make -C tests clean
+       if pyversions -s > /dev/null 2>&1; then make -C tests clean; fi
        make -C pydist clean
        find . -name '*.py[co]' -delete
        rm -f .coverage $(MANPAGES)
-- 
2.0.0

From f0cb817e511a6602f1a33cb36fadab369808e236 Mon Sep 17 00:00:00 2001
From: Peter Pentchev <[email protected]>
Date: Sun, 15 Jun 2014 20:09:30 +0300
Subject: [PATCH 8/9] Move python-docutils to B-D-I.

Break a circular build dependency by only depending on python-docutils
(which depends on python) while building architecture-independent
packages.  This allows the bootstrap builds to generate the binary
packages, using arch:all packages already built for other architectures
if necessary.
---
 debian/control.in | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/debian/control.in b/debian/control.in
index f5839f4..1472626 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -3,8 +3,9 @@ Section: python
 Priority: optional
 Maintainer: Matthias Klose <[email protected]>
 Uploaders: Scott Kitterman <[email protected]>, Piotr Ożarowski 
<[email protected]>
-Build-Depends: debhelper (>= 8~), python-docutils (>= 0.4-3),
-  libhtml-tree-perl, debiandoc-sgml
+Build-Depends: debhelper (>= 8~)
+Build-Depends-Indep: python-docutils (>= 0.4-3), debiandoc-sgml,
+  libhtml-tree-perl
 Standards-Version: 3.9.5
 Homepage: http://www.python.org/
 Vcs-Bzr: http://alioth.debian.org/anonscm/bzr/pkg-python/python-defaults-debian
@@ -15,7 +16,8 @@ Architecture: any
 Multi-Arch: allowed
 Priority: standard
 Depends: ${misc:Depends}, @PVER@ (>= @PREVVER@), python-minimal (= 
${binary:Version}), libpython-stdlib (= ${binary:Version})
-Suggests: python-doc (= ${binary:Version}), python-tk (>= @PREVVER@)
+Recommends: python-doc (= ${source:Version})
+Suggests: python-tk (>= @PREVVER@)
 Conflicts: python-central (<< 0.5.5)
 Breaks: python-csv (<< 1.0-4), python-bz2 (<< 1.1-8), python-email (<< 
2.5.5-3), update-manager-core (<< 0.200.5-2)
 Replaces: python-dev (<< 2.6.5-2)
@@ -33,7 +35,7 @@ Architecture: any
 Multi-Arch: allowed
 Priority: standard
 Depends: ${misc:Depends}, @PVER@-minimal (>= @PREVVER@), dpkg (>= 1.13.20)
-Recommends: python
+Recommends: python, python-doc (= ${source:Version})
 Conflicts: python-central (<< 0.5.5)
 Breaks: python (<= 2.7.3-1~), python-dev (<< 2.6), python-dbg (<< 2.6), 
python-all (<< 2.6), python-all-dev (<< 2.6), python-all-dbg (<< 2.6), 
python-examples (<< 2.6), idle (<< 2.6), python2.5-minimal (<< 2.5.5-7), 
python2.6-minimal (<< 2.6.5~rc2-2), python3.1-minimal (<< 3.1.2~rc1-2), 
python-support (<< 1.0.10ubuntu2)
 Replaces: python (<= 2.7.3-1~)
-- 
2.0.0

From dad1118b67332cdf42944ed8d9a35335d2d8467a Mon Sep 17 00:00:00 2001
From: Peter Pentchev <[email protected]>
Date: Sun, 15 Jun 2014 20:19:06 +0300
Subject: [PATCH 9/9] Regenerate debian/control.

---
 debian/control | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index 4320b93..6fd5e50 100644
--- a/debian/control
+++ b/debian/control
@@ -3,8 +3,9 @@ Section: python
 Priority: optional
 Maintainer: Matthias Klose <[email protected]>
 Uploaders: Scott Kitterman <[email protected]>, Piotr Ożarowski 
<[email protected]>
-Build-Depends: debhelper (>= 8~), python-docutils (>= 0.4-3),
-  libhtml-tree-perl, debiandoc-sgml
+Build-Depends: debhelper (>= 8~)
+Build-Depends-Indep: python-docutils (>= 0.4-3), debiandoc-sgml,
+  libhtml-tree-perl
 Standards-Version: 3.9.5
 Homepage: http://www.python.org/
 Vcs-Bzr: http://alioth.debian.org/anonscm/bzr/pkg-python/python-defaults-debian
@@ -15,7 +16,8 @@ Architecture: any
 Multi-Arch: allowed
 Priority: standard
 Depends: ${misc:Depends}, python2.7 (>= 2.7.7-1~), python-minimal (= 
${binary:Version}), libpython-stdlib (= ${binary:Version})
-Suggests: python-doc (= ${binary:Version}), python-tk (>= 2.7.7-1~)
+Recommends: python-doc (= ${source:Version})
+Suggests: python-tk (>= 2.7.7-1~)
 Conflicts: python-central (<< 0.5.5)
 Breaks: python-csv (<< 1.0-4), python-bz2 (<< 1.1-8), python-email (<< 
2.5.5-3), update-manager-core (<< 0.200.5-2)
 Replaces: python-dev (<< 2.6.5-2)
@@ -33,7 +35,7 @@ Architecture: any
 Multi-Arch: allowed
 Priority: standard
 Depends: ${misc:Depends}, python2.7-minimal (>= 2.7.7-1~), dpkg (>= 1.13.20)
-Recommends: python
+Recommends: python, python-doc (= ${source:Version})
 Conflicts: python-central (<< 0.5.5)
 Breaks: python (<= 2.7.3-1~), python-dev (<< 2.6), python-dbg (<< 2.6), 
python-all (<< 2.6), python-all-dev (<< 2.6), python-all-dbg (<< 2.6), 
python-examples (<< 2.6), idle (<< 2.6), python2.5-minimal (<< 2.5.5-7), 
python2.6-minimal (<< 2.6.5~rc2-2), python3.1-minimal (<< 3.1.2~rc1-2), 
python-support (<< 1.0.10ubuntu2)
 Replaces: python (<= 2.7.3-1~)
-- 
2.0.0

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: python-defaults
Source-Version: 2.7.8-1

We believe that the bug you reported is fixed in the latest version of
python-defaults, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Scott Kitterman <[email protected]> (supplier of updated python-defaults 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 11 Jul 2014 17:10:37 -0400
Source: python-defaults
Binary: python python-minimal python-examples python-dev libpython-dev 
libpython-stdlib idle python-doc python-dbg libpython-dbg python-all 
python-all-dev python-all-dbg libpython-all-dev libpython-all-dbg
Architecture: source all i386
Version: 2.7.8-1
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <[email protected]>
Changed-By: Scott Kitterman <[email protected]>
Description:
 idle       - IDE for Python using Tkinter (default version)
 libpython-all-dbg - package depending on all supported Python debugging 
packages
 libpython-all-dev - package depending on all supported Python development 
packages
 libpython-dbg - debug build of the Python Interpreter (version 2.7)
 libpython-dev - header files and a static library for Python (default)
 libpython-stdlib - interactive high-level object-oriented language (default 
python v
 python     - interactive high-level object-oriented language (default version)
 python-all - package depending on all supported Python runtime versions
 python-all-dbg - package depending on all supported Python debugging packages
 python-all-dev - package depending on all supported Python development packages
 python-dbg - debug build of the Python Interpreter (version 2.7)
 python-dev - header files and a static library for Python (default)
 python-doc - documentation for the high-level object-oriented language Python
 python-examples - examples for the Python language (default version)
 python-minimal - minimal subset of the Python language (default version)
Closes: 669346 701192 735163 751706 754060
Changes:
 python-defaults (2.7.8-1) unstable; urgency=medium
 .
   [ Barry Warsaw ]
   * Fix typo in policy doc re: wheel package exception list.
   * Add myself to Uploaders.
 .
   [ Scott Kitterman ]
   * Fix error in pydist package relationship regex (Closes: #735163)
     - Thanks to Rafael Laboissiere for the patch
   * Switch from using lsb-release to dpkg-vendor to determine distro and drop
     lsb-release from build-depends (Closes: #751706)
     - Thanks to Peter Pentchev for the patch
   * Drop unused build-depends on libhtml-tree-perl
   * Clarify discussion of requirement to use python:Provides (Closes: #669346)
   * Add clarification of naming requirements for submocules (Closes: #701192)
   * Minor cleanups in debian/pyversions.py
   * Stop automatically regenerating static content (dh_python2 man pages and
     Python FAQ) and drop build-dep on python-docutils to ease bootstrapping
     (Closes: #754060)
     - Add direct build-dep on python-all to replace indirect build-dep
   * Bump version to 2.7.8
   * Drop ancient Breaks on python-csv, python-bz2, and python-email
Checksums-Sha1:
 9f58f947134effaa821b00095c0d9ffb6d6f2e57 2564 python-defaults_2.7.8-1.dsc
 420757210163e6d6f7ef0c2dcb94297fd3f8575c 284536 python-defaults_2.7.8-1.tar.gz
 db48c8406afc0f8f440ffb604f16bf3134a7017c 952 python-examples_2.7.8-1_all.deb
 59e9bce0c48d19c7ff01649ac424a4ae3707be4b 3170 idle_2.7.8-1_all.deb
 bbef27991e4b74517b531572a198fc80ca81ef17 22778 python-doc_2.7.8-1_all.deb
 f78936abc6779f2f8456f0c38dbd44ddb461870c 150646 python_2.7.8-1_i386.deb
 1e73292e77a81edcb3af5f4a43c1ab2657e440a6 39840 python-minimal_2.7.8-1_i386.deb
 6ce7b767f7bb218b2741a8dbdeec3a517ea8ec75 1170 python-dev_2.7.8-1_i386.deb
 ef5172882b95e06180bf63764935b096f539a80f 19334 libpython-dev_2.7.8-1_i386.deb
 d663de00db3657320bb91b663b217171768870b3 19254 
libpython-stdlib_2.7.8-1_i386.deb
 6d9fcd2fa7d59ed4401ccb832282598472f4f48a 1240 python-dbg_2.7.8-1_i386.deb
 cf862860023f85edffd46eaa5674850cc19436ab 19280 libpython-dbg_2.7.8-1_i386.deb
 45ae613d0c8cb8bc01b40437357f626d8fe657d2 986 python-all_2.7.8-1_i386.deb
 f7d6bff52be9f8ca2d3621edd476f4275ccdf731 1016 python-all-dev_2.7.8-1_i386.deb
 b6e0b2862977b21dda6d70afcd3401ca0f0de430 1016 python-all-dbg_2.7.8-1_i386.deb
 198476c001869751ce00c1b36b2469557806d156 1004 
libpython-all-dev_2.7.8-1_i386.deb
 9759bf31435e9c57afdf9d2ff9b75cf061e3e1d2 1146 
libpython-all-dbg_2.7.8-1_i386.deb
Checksums-Sha256:
 bab746a5e6783e110d80f207aa801a348072e134127149fd32e4fd9018b58e84 2564 
python-defaults_2.7.8-1.dsc
 41baf948d47b39863e6ef09dde20f93a2f9bbf673fff89466de9138bc081baf6 284536 
python-defaults_2.7.8-1.tar.gz
 f96c982d3badfc862f75e0ba9586f40fcd706617f676bbabae3173b1dde9fa87 952 
python-examples_2.7.8-1_all.deb
 c1a7ef549681cf0bd0732d38fbd818c46b27a92210c00341cbf83accc486abaa 3170 
idle_2.7.8-1_all.deb
 88c39163becded6063ec57d3fe57148c92cd682e6b3915936502a414390bda30 22778 
python-doc_2.7.8-1_all.deb
 29dc43e79e7ef9962004fb120562e4db994a1c59a616caa680923fe3b658308a 150646 
python_2.7.8-1_i386.deb
 03c39bd91aabb57fba5ae4e5071d7b69421c0d817060dbb69fb00eb5e8424417 39840 
python-minimal_2.7.8-1_i386.deb
 53a3f74898c8666b13057c72ddf6af3176d01b55c4cfbba17b9e7e081b121a06 1170 
python-dev_2.7.8-1_i386.deb
 9ebdaccf642b8cc8095c69fed71e6577875ed1cee2a41048dcf47aecf74a59ca 19334 
libpython-dev_2.7.8-1_i386.deb
 15f383f4a35850b92764f8017e6d96e7f2915158564366ff689b364a0cb58653 19254 
libpython-stdlib_2.7.8-1_i386.deb
 65cbc0c400ce575c5b0c995a25693b11d6ba971d0612560be32ef761b0a97ed3 1240 
python-dbg_2.7.8-1_i386.deb
 1e0c2d2105161afafa96bd5a46dfb2d6cadcfc8e4eb55b4f98f11ac17be9133a 19280 
libpython-dbg_2.7.8-1_i386.deb
 6b5f5d0a83d335a8e85a1de933a7a253dd14c9d65b30edc91239f0566b924028 986 
python-all_2.7.8-1_i386.deb
 27e5b8ebc8f2190b2ca5d2de1753fabf85e06b4e57f2cca2c1ccdf63e89079a3 1016 
python-all-dev_2.7.8-1_i386.deb
 3b2389f05cc4586d4708e7d2150108ed64025452ac22088603f36b598fa707b2 1016 
python-all-dbg_2.7.8-1_i386.deb
 806bce56f357b3843567e3798a0d22aec950b54023e47665ef91c5bfdb6228b7 1004 
libpython-all-dev_2.7.8-1_i386.deb
 e401daffefc4c1ad03427d780e2496b0621f48f54a4917ad5dd70cb08fedd407 1146 
libpython-all-dbg_2.7.8-1_i386.deb
Files:
 7c5e1502d9802ed729f8f7120a3288f4 952 python optional 
python-examples_2.7.8-1_all.deb
 365ed268b2dd59faca845872f1a8a41c 3170 python optional idle_2.7.8-1_all.deb
 321189d102b7b4e85141b2ed8e872964 22778 doc optional python-doc_2.7.8-1_all.deb
 dcec247e39efe0d6f7bb0b77d9f79aa0 150646 python standard python_2.7.8-1_i386.deb
 3b2ac94146d850a4ff35f1138c943327 39840 python standard 
python-minimal_2.7.8-1_i386.deb
 b8944ff9752b112f28a4f53b06070a74 1170 python optional 
python-dev_2.7.8-1_i386.deb
 82f972c706ba7fed16499918befe5051 19334 libdevel optional 
libpython-dev_2.7.8-1_i386.deb
 b01adccec389e8793865d04e096280c7 19254 python optional 
libpython-stdlib_2.7.8-1_i386.deb
 1168c5d15605889a5f15988683dd37a6 1240 debug extra python-dbg_2.7.8-1_i386.deb
 f30079b10c713b1337488e479e068855 19280 debug extra 
libpython-dbg_2.7.8-1_i386.deb
 38bf0f2c507e0d339fd9c1255e20acbe 986 python optional 
python-all_2.7.8-1_i386.deb
 83f0372ead1c0b70d1a5e955e54c3a82 1016 python optional 
python-all-dev_2.7.8-1_i386.deb
 100d909cb9ed7a998b3b2ddf29dc3823 1016 debug extra 
python-all-dbg_2.7.8-1_i386.deb
 5163320401a37b3c5f990062ab9e8d5a 1004 libdevel optional 
libpython-all-dev_2.7.8-1_i386.deb
 678ec3ea63b40314b158689a3141202f 1146 debug extra 
libpython-all-dbg_2.7.8-1_i386.deb
 f3e05c3ba90cad434a28f3ec7495940f 2564 python optional 
python-defaults_2.7.8-1.dsc
 167720976d64220265b2368dfd0d6d9e 284536 python optional 
python-defaults_2.7.8-1.tar.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJTwG1hAAoJEHjX3vua1ZrxtiAQAJE3ytg38lXq9K/NW2v2hYR4
1d93G0f4Y1UzzbJbsWBJ+UeibKfFwMhwQRX/UG6l9nxRVYJrAHTTZ6R6FwyQsOTU
rkye9QQyUcrJG0sANSUftjcFELjHt48DH2s18xtT+ISx+htSje1Z4L1/rsu6aw0v
wk+TtD/E9+mqxh87JNrYDKKZCTU67Qk7o8EjZS2b3d835K8RggS1dnYgBpogy3o0
WHjpgCuGnzH7CyrZF/KPNbK21qOec3XbVdXVGt4xsBwWMAEmloAY67L9vaTWrwMW
5kQa/xlLMdxh9rQiLkwoi9WsQK7/YVuc2s7ddq1vpNqURKRDml73hGndv2WdZt2Z
EOPdIdZtV7WZ3DE1nASASRW5ZaO2cEjr7yy0o9M4EWpKhekLJs/CIchsx2xzS1od
eW0Nbpo40MsBA1Qfm6j6z5yBIFOW9J0DJ6pifAawx2XDAynARlOv0cxmKCBBGsYN
opIKZu5CxlkqiMy5RIZPSTxwPo5dGj9DGb9QolHw1ziJpFWCfLaJWl/PhK6S7+ya
C4NT6BOyduh4oc/5LDasV6lF5oN3dy01fCCVLOquSg6ddooHT5rNLZo2Z600/che
0PjhRasphmhMErlGckw40iE0M1VoD9nl22Q9pG4quZvyhZEXgKshv2+KYMMP/tgU
EC3UNP6bjBwJDIlUjuxj
=nNZ5
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to