DAB 64 bit Template compilation errors

apmuthu

Well-Known Member
Feb 26, 2009
807
8
58
Chennai - India & Singapore
github.com
Attempting to compile a Debian 7 Template using DAB, the following error occurs:
Code:
unpack: apt-utils
unpack: libsqlite3-0
unpack: libreadline6
unpack: libgssapi-krb5-2
unpack: libkrb5-3
unpack: ssl-cert
unpack: cpio
configure important packages
command 'vzctl exec2 90000 defenv dpkg --force-confold --skip-same-version --configure -a' failed with exit code 1
command 'vzctl exec2 90000 defenv dpkg --force-confold --skip-same-version --configure -a' failed with exit code 1
make: *** [all] Error 1

The code sequence in DAB.pm that trips it is:
Code:
    # unpack base packages
    foreach my $p (@$important) {
    $self->ve_dpkg ('unpack', $p);
    }

    # start loopback
    $self->ve_command ("ifconfig lo up");

    $self->logmsg ("configure important packages\n");
    $self->ve_command ("dpkg --force-confold --skip-same-version --configure -a");

The Makefile portion for packages to be installed are:
Code:
BASEDIR:=$(shell dab basedir)

all: info/init_ok
    dab bootstrap
    dab task mysql --password random
    dab install apache2-mpm-prefork apache2
    dab install zip unzip bzip2
    dab task php
    dab install php5-mysql php5-curl php5-xsl screen
...

Any clues?

The standard 64 bit appliances to refer at http://download.proxmox.com/appliances/system/ do not provide any clues.
 
Last edited:
Debian Wheezy installs libbsd0:amd64 v0.7.0-2~bpo70+1from wheezy-backports whereas it should only install v0.4.2-1 from the wheezy repo. The higher version of libbsd0 now needs libc6 to be greater than v2.13.
 

Attachments

  • logfile_libc6.zip
    9.7 KB · Views: 0
  • What is the preferred way to make Wheezy 64 bit DAB based template?
  • Should we alter the DAB.pm to fix the version of libbsd0 at v0.4.2-1 (and revert when Debian maintainers rectify this glitch)?
  • wheezy-backports seems to have the upgraded libbsd0 v0.7.0-2~bpo70+1 file.
  • Should we force a dependency ignore? As these files come in with the DAB bootstrap - where do we hold the required version?
  • Even the Makefile based option of forcing a downgrade does not seem possible....
    Code:
    wget ftp://ftp.debian.org/debian/pool/main/libb/libbsd/libbsd0_0.4.2-1_amd64.deb
    dpkg -i --force-depends-version libbsd0_0.4.2-1_amd64.deb
  • Is there a possibility of using an if...then construct within the Makefile?
  • Where is the DAB bootstrap file list?
    I only hope this is not a repeat of what happened earlier to lenny templating in DAB just to force everyone onto the latest and greatest version of Debian.

When a Standard 64 bit Debian Wheezy v7.0.2 template is used to make an OpenVZ container and gets updated to v7.8.0 from within it, the following versions are available:
Code:
# dpkg -l libc6 libbsd0 libedit2
||/ Name                        Version            Architecture       Description
+++-===========================-==================-==================-===========================================================
ii  libbsd0:amd64               0.4.2-1            amd64              utility functions from BSD systems - shared library
ii  libc6:amd64                 2.13-38+deb7u8     amd64              Embedded GNU C Library: Shared libraries
ii  libedit2:amd64              2.11-20080614-5    amd64              BSD editline and history libraries

When a new DAB 64 bit template is created for Wheezy v7.8.0 it errors out during the build process and the build container has the following:
Code:
# dpkg -l libc6 libbsd0 libedit2
||/ Name                     Version           Architecture      Description
+++-========================-=================-=================-======================================================
iU  libbsd0:amd64            0.7.0-2~bpo70+1   amd64             utility functions from BSD systems - shared library
ii  libc6:amd64              2.13-38+deb7u8    amd64             Embedded GNU C Library: Shared libraries
iU  libedit2:amd64           2.11-20080614-5   amd64             BSD editline and history libraries
This one fine use of the pvebash script (# pvebash 90000 private) for troubleshooting justifies it's inclusion in the new PVE ISOs.
 
Last edited:
[SOLVED] Re: DAB 64 bit Template compilation errors

When building 64 bit DAB Wheezy Templates, do not enable the wheezy-backports repo.
It can be enabled after the template is built and/or used.

Attached is the Standard Wheezy 64 bit DAB build files. The build path to place the files in is /var/lib/vz/template/builds/debian7_64
 

Attachments

  • debian7_64.zip
    11.8 KB · Views: 1

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!