Package: python2.6
Version: 2.6.6-8+b1

* The exact and complete text of any error messages printed or logged.
This is very important!

<...output produced by sudo DEB_BUILD_OPTIONS="nostrip noopt" debuild
-us -uc -b ...>
debian/python2.6-dev/usr/lib/libpython2.6.a
debian/tmp-dbg/usr/lib/libpython2.6_d.a
rm -f debian/python2.6/usr/lib/python2.6/lib-dynload/_tkinter.so
rm -f debian/python2.6/usr/lib/python2.6/lib-dynload/gdbm.so
dh_strip -a -Npython2.6-dbg -Xdebug -Xdbg --dbg-package=python2.6-dbg
cp Tools/gdb/libpython.py
debian/python2.6-dbg/usr/lib/debug/usr/bin/python2.6-gdb.py
cp: cannot create regular file
`debian/python2.6-dbg/usr/lib/debug/usr/bin/python2.6-gdb.py': No such
file or directory
make: *** [binary-arch] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1325:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed

* Exactly what you typed or did to demonstrate the problem.

  555  apt-get install build-essential devscripts
  556  sudo apt-get source python2.6
  557  dpkg-source -x python2.6_2.6.6-8.dsc
  558  ls
  559  DEB_BUILD_OPTIONS="nostrip noopt" fakeroot debian/rules binary
  560  ls
  561  cd python2.6-2.6.6/
  562  DEB_BUILD_OPTIONS="nostrip noopt" fakeroot debian/rules binary
  563  ls -lh
  564  sudo DEB_BUILD_OPTIONS="nostrip noopt" fakeroot debian/rules binary
  565  ls
  566  ls Tools/
  567  ls Tools/gdb/
  568  ls debian/python2.6-dbg/usr/lib/debug/usr/bin/
  569  ls debian/python2.6-dbg/usr/lib/debug/
  570  ls debian/python2.6-dbg/
  571  ls debian/python2.6-dbg/usr/
  572  ls debian/python2.6-dbg/usr/lib/
  573  ls debian/python2.6-dbg/usr/lib/python2.6/
  574  ls
  575  less R
  576  less README
  577  ls ..
  578  sudo DEB_BUILD_OPTIONS="nostrip noopt" fakeroot debian/rules binary
  579  ls Tools/gdb/
  580  ls debian/python2.6-dbg/usr/lib/
  581* ls -lh debian/python2.6-dbg/usr/lib/
  582  sudo DEB_BUILD_OPTIONS="nostrip noopt" debuild -us -uc -b

* A description of the incorrect behavior:

In line 947 of debian/rules:    cp Tools/gdb/libpython.py
$(d_dbg)/usr/lib/debug/usr/bin/$(PVER)-gdb.py
cp is asked to copy the file libpython.py to a directory that does not
exist.  As you can see in my abbreviated history above (see 572),
debian/usr/lib/ exists, but debian/usr/lib/debug does not.  Not sure
why this is.

The rules makefile should be patched to test for the existence of the
directory that is the second argument to cp in line 947.
I have attached a patch file, created via $diff -u
build/python2.6-2.6.6/debian/rules rules.fixed > test_dir_exists.patch

Below is a lot of requested detail about my development environment:

kernel version: Linux frodo 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28
UTC 2011 x86_64 GNU/Linux
libc6 version: 2.11.2-10


Below I've attached the info returned by reportbug:

kfounk@frodo:~$ reportbug -q --template -T none -s none -S normal -b
--list-cc none -q python2.6
*** Welcome to reportbug.  Use ? for help at prompts. ***
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'Lee Zamparo <zamp...@gmail.com>' as your from address.
Getting status for python2.6...
Will send report to Debian (per lsb_release).
Maintainer for python2.6 is 'Matthias Klose <d...@debian.org>'.
Looking up dependencies of python2.6...

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Lee Zamparo <zamp...@gmail.com>
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Subject: none
X-Debbugs-Cc: zamp...@gmail.com, none

Package: python2.6
Version: 2.6.6-8+b1
Severity: normal



-- System Information:
Debian Release: 6.0.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python2.6 depends on:
ii  libbz2-1.0                1.0.5-6        high-quality block-sorting file co
ii  libc6                     2.11.2-10      Embedded GNU C Library: Shared lib
ii  libdb4.8                  4.8.30-2       Berkeley v4.8 Database Libraries [
ii  libexpat1                 2.0.1-7        XML parsing C library - runtime li
ii  libncursesw5              5.7+20100313-5 shared libraries for terminal hand
ii  libreadline6              6.1-3          GNU readline and history libraries
ii  libsqlite3-0              3.7.3-1        SQLite 3 shared library
ii  mime-support              3.48-1         MIME files 'mime.types' & 'mailcap
ii  python2.6-minimal         2.6.6-8+b1     A minimal subset of the Python lan

python2.6 recommends no packages.

Versions of packages python2.6 suggests:
ii  binutils                      2.20.1-16  The GNU assembler, linker and bina
pn  python2.6-doc                 <none>     (no description available)
pn  python2.6-profiler            <none>     (no description available)

-- no debconf information

If you want to provide additional information, please wait to receive
the bug tracking number via email; you may then send any extra
information
to n...@bugs.debian.org (e.g. 999...@bugs.debian.org), where n is the bug
number. Normally you will receive an acknowledgement via email
including
the bug report number within an hour; if you haven't received a
confirmation, then the bug reporting process failed at some point
(reportbug or
MTA failure, BTS maintenance, etc.).
--- build/python2.6-2.6.6/debian/rules	2011-08-31 18:07:29.000000000 -0400
+++ rules.fixed	2011-09-01 17:54:42.000000000 -0400
@@ -944,6 +944,17 @@
 	rm -f $(d_base)/$(scriptdir)/lib-dynload/gdbm.so
 endif
 	dh_strip -a -N$(p_dbg) -Xdebug -Xdbg --dbg-package=$(p_dbg)
+
+	if which localedef >/dev/null 2>&1; then \
+	  sh debian/locale-gen; \
+	fi
+
+	
+	if [ -d $(d_dbg)/usr/lib/debug/usr/bin/ ]; then \
+		echo "$(d_dbg)/usr/lib/debug/usr/bin/ exists"; \
+	else \
+		mkdir -p $(d_dbg)/usr/lib/debug/usr/bin/; \
+	fi
 	cp Tools/gdb/libpython.py $(d_dbg)/usr/lib/debug/usr/bin/$(PVER)-gdb.py
 	ln -sf $(PVER)-gdb.py $(d_dbg)/usr/lib/debug/usr/bin/$(PVER)-dbg-gdb.py
 	ln -sf ../bin/$(PVER)-gdb.py \

Reply via email to