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

Re: Beginner question - stable installer build fails - why?



Hi,

Alex King <alex@king.net.nz> (2018-01-27):
> I'm trying to build an installer following build/README, but must have
> something basic wrong.  So far I have:
> 
>  * apt-get source debian-installer
>  * Install the build-dependencies on the host system
>  * (did not install a sources list as I'm happy with the system one)
>  * make build_netboot

If you're going to build using make under build/ directly, you need to
pass a few variables to get appropriate settings. You're lacking at
least USE_UDEBS_FROM, which defaults to unstable:

    build/config/common:USE_UDEBS_FROM ?= unstable

This should work (provided you start from a clean tree):

    make -C build build_netboot USE_UDEBS_FROM=stretch

Alternatively, use dpkg-buildpackage, so that debian/rules sets the
appropriate variables for you.

> $ cat sources.list.udeb
> # This file is automatically generated, edit sources.list.udeb.local instead.
> deb [trusted=yes]
> copy:/home/developer/debian-installer-20170615+deb9u2/build/ localudebs/
> deb http://deb.debian.org/debian unstable main/debian-installer
> deb http://ftp.debian.org/debian unstable main/debian-installer

→ unstable instead of stretch, as expected.

> $ apt-cache search virtio-modules-4.9.0-4-amd64-di
> 
> (nothing)

That's expected given your sources.list: no main/debian-installer
component there, so apt doesn't know about those udebs. Try rmadison
(from devscripts) instead.


By the way, there's a bump from 4.9.0-4 to 4.9.0-5 coming up through
stretch-proposed-updates. I've pushed an updated to the stretch branch
accordingly:

  https://anonscm.debian.org/cgit/d-i/debian-installer.git/commit/?id=71c369f53351dab573d153cda41ee26351a85564


Cheers,
-- 
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

Attachment: signature.asc
Description: PGP signature


Reply to: