[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#475108: Missing file: debian/lib/python/debian_linux/__init__.py



Package: linux-kbuild-2.6
Version: 2.6.24-1
Severity: normal

The linux-kbuild-2.6 package (at least for version 2.6.24-1) is
missing the file debian/lib/python/debian_linux/__init__.py.
Without this file, modifying debian/control (such as for a local
version of the package, as I have done) and running pdebuild gives:

  dpkg-buildpackage: source package is linux-kbuild-2.6
  dpkg-buildpackage: source version is 2.6.24-1~zg1
  dpkg-buildpackage: source changed by John Zaitseff <J.Zaitseff@zap.org.au>
  dpkg-buildpackage: source version without epoch 2.6.24-1~zg1
   fakeroot debian/rules clean
  if [ -f debian/control.md5sum ]; then \
                  if md5sum debian/bin/gencontrol.py debian/changelog debian/templates/control.main.in debian/templates/control.source.in | diff - debian/control.md5sum > /dev/null; then true; else \
                          /usr/bin/make -f debian/rules debian/control-real; \
                  fi \
          else \
                  /usr/bin/make -f debian/rules debian/control-real; \
          fi
  make[1]: Entering directory `/var/tmp/linux-kbuild-2.6/linux-kbuild-2.6-2.6.24'
  chmod +x debian/bin/gencontrol.py
  debian/bin/gencontrol.py
  Traceback (most recent call last):
    File "debian/bin/gencontrol.py", line 6, in ?
      from debian_linux.debian import *
  ImportError: No module named debian_linux.debian
  make[1]: *** [debian/control-real] Error 1
  make[1]: Leaving directory `/var/tmp/linux-kbuild-2.6/linux-kbuild-2.6-2.6.24'
  make: *** [debian/control] Error 2

Creating an empty __init__.py file using "touch" fixes this problem,
as far as I can see (I'm not a Python guru---yet!).

It may be that empty files are not correctly handled by whatever
creates the Debian diff, so a file with a newline in it may be
necessary... but I am not at all sure of this.

Yours truly,

John Zaitseff

-- 
John Zaitseff                    ,--_|\    The ZAP Group
Phone:  +61 2 9643 7737         /      \   Sydney, Australia
E-mail: J.Zaitseff@zap.org.au   \_,--._*   http://www.zap.org.au/
                                      v



Reply to: