FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 04-09-2008, 02:18 AM
John Zaitseff
 
Default 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



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-01-2012, 07:14 AM
Jonathan Nieder
 
Default Bug#475108: Missing file: debian/lib/python/debian_linux/__init__.py

fixed 475108 linux-tools/3.1.1-1
notfixed 475108 3.0.0-2+rm
quit

Hi John,

In 2008, John Zaitseff wrote:

> 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
[...]
> 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

Sorry for the sloow response. This seems to have been fixed (by
adding the __init__.py file) when linux-kbuild became linux-tools.

Thanks for your help and patience,
Jonathan


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20121001071431.GA4583@elie.Belkin
 

Thread Tools




All times are GMT. The time now is 09:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org