Package: mmdebstrap
Version: 1.5.7-1+deb13u1
Severity: wishlist
File: /usr/bin/mmdebstrap
When debugging an mmdebstrap build, I occasionally want an interactive aptitude
GUI.
Using $MMDEBSTRAP_APT_CONFIG, I can do this without bothering to install
aptitude inside the built environment.
This works with minor issues:
mmdebstrap forky /dev/null
--customize-hook='APT_CONFIG=$MMDEBSTRAP_APT_CONFIG aptitude'
This works with no issues:
mmdebstrap forky /dev/null
--customize-hook='APT_CONFIG=$MMDEBSTRAP_APT_CONFIG HOME=$1/root aptitude
-oDir::Aptitude::State=var/lib/aptitude' --essential-hook='mkdir -p
$1/var/lib/aptitude'
or
mmdebstrap forky /dev/null
--customize-hook='APT_CONFIG=$MMDEBSTRAP_APT_CONFIG HOME=$1/root aptitude
-oDir::Aptitude::State=var/lib/aptitude' --include=aptitude
Should mmdebstrap set Dir::Aptitude::State "var/lib/aptitude" in
MMDEBSTRAP_APT_CONFIG?
mmdebstrap already sets Dir in MMDEBSTRAP_APT_CONFIG.
Should aptitude default Dir::Aptitude::State be relative to Dir (not absolute)
by default?
i.e. remove leading / from the path here:
https://sources.debian.org/src/aptitude/0.8.13-8.1/configure.ac?hl=636#L636
You can see an example with relative paths here:
https://sources.debian.org/src/apt/3.3.0/test/libapt/configuration_test.cc?hl=95#L90-L95
-- System Information:
Debian Release: 13.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.85+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages mmdebstrap depends on:
ii apt 3.0.3
ii perl 5.40.1-6
ii python3 3.13.5-1
Versions of packages mmdebstrap recommends:
ii arch-test 0.22-1
ii gpg 2.4.7-21+deb13u1+b2
ii libdistro-info-perl 1.13
ii libdpkg-perl 1.22.22
ii mount 2.41-5
ii uidmap 1:4.17.4-2
Versions of packages mmdebstrap suggests:
pn apt-transport-tor <none>
ii apt-utils 3.0.3
ii binfmt-support 2.2.2-7
ii bzip2 1.0.8-6
ii ca-certificates 20250419
pn debootstrap <none>
ii distro-info-data 0.66+deb13u1
ii dpkg-dev 1.22.22
ii e2fsprogs 1.47.2-3+b10
ii fakechroot 2.20.1+ds-18
ii fakeroot 1.37.1.1-1
ii genext2fs 1.5.0-3+b1
ii libarchive13t64 [libarchive13] 3.7.4-4
ii lz4 1.10.0-4
ii lzop 1.04-2
pn ncompress <none>
ii perl-doc 5.40.1-6
ii qemu-user 1:10.0.8+ds-0+deb13u1+b1
ii qemu-user-static 1:10.0.8+ds-0+deb13u1+b1
ii squashfs-tools-ng 1.3.2-1
ii systemd 257.9-1~deb13u1
ii xz-utils 5.8.1-1
ii zstd 1.5.7+dfsg-1
-- no debconf information