DAB corrections

apmuthu

Renowned Member
Feb 26, 2009
814
9
83
Chennai - India & Singapore
github.com
Although Debian Appliance Builder is to be discussed in the mailing list, the following corrections to the DAB.pm will be in order.
Many OS versions have had their repos moved to an archive url.
Lines 575 to 605 in DAB.pm
Code:
   if (!$config->{source}) {
    if (lc($suiteinfo->{origin}) eq 'debian') {
        if ($suite eq 'etch' || $suite eq 'lenny') {
        push @{$config->{source}}, (
            'http://ftp.debian.org/debian SUITE main contrib',
            'http://security.debian.org SUITE/updates main contrib',
        );
        } elsif ($suite =~ /^(?:bullseye|bookworm|trixie|forky)$/) {
        push @{$config->{source}}, (
            "http://deb.debian.org/debian SUITE main contrib",
            "http://deb.debian.org/debian SUITE-updates main contrib",
            "http://security.debian.org SUITE-security main contrib",
        );
        } else {
        push @{$config->{source}}, (
            "http://ftp.debian.org/debian SUITE main contrib",
            "http://ftp.debian.org/debian SUITE-updates main contrib",
            "http://security.debian.org SUITE/updates main contrib",
        );
        }
    } elsif (lc($suiteinfo->{origin}) eq 'ubuntu') {
        my $comp = "main restricted universe multiverse";
        push @{$config->{source}}, (
        "http://archive.ubuntu.com/ubuntu SUITE $comp",
        "http://archive.ubuntu.com/ubuntu SUITE-updates $comp",
        "http://archive.ubuntu.com/ubuntu SUITE-security $comp",
        );
    } else {
        die "implement me";
    }
    }
will need to have the older distributions like debian Squeeze (6.0) addressed like:
Code:
http://archive.debian.org/debian SUITE main contrib
http://archive.debian.org/debian SUITE-lts main contrib
http://archive.debian.org/debian SUITE-proposed-updates main contrib
http://archive.debian.org/debian-security SUITE updates/main updates/contrib

In spite of the above, with zip, unzip and other binaries being installed in PVE 8.2.2, the following error comes in while compiling a LXC template:
Code:
ve_exec failed - status 129
ve_exec failed - status 129
make: *** [Makefile:16: all] Error 129
 
The preceding statements in the Makefile leading to this error is attached.
The dab.conf file sources are:
Code:
Suite: squeeze
CacheDir: ../cache
Source: http://archive.debian.org/debian SUITE main contrib
Source: http://archive.debian.org/debian SUITE-lts main contrib
Source: http://archive.debian.org/debian SUITE-proposed-updates main contrib
# Source: http://security.debian.org SUITE updates/main updates/contrib
Source: http://archive.debian.org/debian-security SUITE updates/main updates/contrib
#Mirror: http://ftp.debian.org/debian => ftp://mirror/debian
Architecture: i386
....

What doesn't install:
Code:
#    dab pear download MAIL Net_SMTP Auth_SASL Net_Socket
    unzip -o pearmailpkgs1.zip -d ${BASEDIR}/usr/src/
#    # https://pear.php.net/package/Mail_Mime/download/1.8.8
    dab exec pear install /usr/src/Mail-1.2.0.tgz /usr/src/Mail_Mime-1.8.8.tgz /usr/src/Net_SMTP-1.6.1.tgz /usr/src/Auth_SASL-1.0.6.tgz /usr/src/Net_Socket-1.0.10.tgz
    rm -f ${BASEDIR}/usr/src/Mail-1.2.0.tgz
    rm -f ${BASEDIR}/usr/src/Net_SMTP-1.6.1.tgz
    rm -f ${BASEDIR}/usr/src/Auth_SASL-1.0.6.tgz
    rm -f ${BASEDIR}/usr/src/Net_Socket-1.0.10.tgz
    rm -f ${BASEDIR}/usr/src/Mail_Mime-1.8.8.tgz
    dab exec pear upgrade /usr/src/Mail_Mime-1.10.9.tgz
#    # https://pear.php.net/package/Console_Getopt/download/1.3.1 # v1.2.3 was installed natively
    dab exec pear upgrade /usr/src/Console_Getopt-1.3.1.tgz
    rm -f ${BASEDIR}/usr/src/Mail_Mime-1.10.9.tgz
    rm -f ${BASEDIR}/usr/src/Console_Getopt-1.3.1.tgz
#    # pear MAIL above needed for SMTP mailing out
 

Attachments

  • Makefile_Error.png
    Makefile_Error.png
    25.9 KB · Views: 0
Last edited:
Solved by moving the "dab exec pera install ..." commands from the Makefile to normal "pear install / upgrade ..." commands at near the end of the one time initial setup file.

Attached is the difference file after such pear intervention that may be merely uploaded as well in the Makefile itself.
 

Attachments

  • AfterPHP_Pear.zip
    759.9 KB · Views: 0

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!