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

Re-building linux-latest using sbuild on Ubuntu



I am trying to re-build linux-latest, for a custom Debian-derived distro,
using sbuild on a Ubuntu build host and encounter the following error:

Traceback (most recent call last):
  File "debian/bin/gencontrol.py", line 11, in <module>
    from debian_linux.config import ConfigCoreDump
ImportError: No module named 'debian_linux'

It seems that gencontrol.py is generating the debian control file to then
build linux-latest. The missing debian_linux python module comes from the
linux-support-<version> package. However, the dependency on this package is on
the build host not in the sbuild chroot. Unfortunately, this package does not
exist on Ubuntu.

My ultimate purpose is to update the kernel version selected linux-latest by
updating the Depends of linux-image-amd64.

Grabbing and installing linux-support manually on the build host (dpkg -i) and
running the build again resolves the error but this is not a good solution as
multiple different developers with different build hosts will need to build
this package. We are using sbuild precisely because of the beautifully
chrooted isolation.

How should I proceed? Another sbuild chroot to generate the control-real file
to allow the main sbuild chroot to build linux-latest?

Also, when the linux-suuport package is installed by hand I get the following
error, what is it for and am I safe to ignore it?

This target is made to fail intentionally, to make sure
that it is NEVER run during the automated build. Please
ignore the following error, the debian/control file has
been generated SUCCESSFULLY.

Thanks.

-----------------------------------------------------------------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are 
addressed. If you have received this email in error please notify your system manager. Any views expressed in this message are those of 
the individual sender and not necessarily those of Adder Technology Limited.

Adder Technology Limited is a company registered in England and Wales with company number 1823478 and VAT number GB 388 8704 87 and 
registered office address 110 Regent Road, Leicester LE1 7LT, UK. Adder Corporation is a company registered in Delaware, United States of 
America with a trading address of 350R Merrimac Street, Newburyport, MA 01950. 
-----------------------------------------------------------------------------------------------------------------------------------------
This footnote confirms that this email message has been swept for the presence of computer viruses, however, you should make no reliance 
upon this when opening this message or any attachments.

-----------------------------------------------------------------------------------------------------------------------------------------


Reply to: