Hi, Here is a new version ([1]) of a script to fit debootstrap to debian-ports. It makes use of both suites 'unstable' and 'unreleased' in the archive, and doesn't add to debootstrap dependency. See the attached README.debian-ports for usage : basically, copy the attached file 'debian-ports' in /usr/share/debootstrap/scripts, and use debian-ports as a (pseudo)-suite, e.g. debootstrap debian-ports my_chroot It is advisable to install a newer version of debootstrap (1.0.60 is recommended - 1.0.26 won't work) and debian-ports-archive-keyring (2014.02.01 at the present time). This was tested so far on one alpha workstation 500. I would be thankful for report of tests, particularly on other architectures. It is expected to work on alpha, arm64, hppa, and ppc64. debootstrap --exclude=aptitude,aptitude-common,wget debian-ports my_chroot is expected to work on m68k. debootstrap --variant=minbase debian-ports my_chroot is expected to work on sparc64. debootstrap --variant=minbase debian-ports my_chroot is expected to fail on powerpcspe (libsemanage-common (= 2.2-1) is a missing dependency of required package libsemanage1(2.2-1+b1) - libsemanage-common (2.3-1) is available instead), on sh4 (libsemanage-common (= 2.1.10-2) is a missing dependency of required package libsemanage1(2.1.10-2) - libsemanage-common (2.3-1) is available instead, and libdb5.1 is a missing dependency of required package libpam-modules(1.1.8-3)) and x32 (libsemanage-common (= 2.2-1) is a missing dependency of required package libsemanage1(2.2-1) - libsemanage-common (2.3-1) is available instead, and startpar is a missing dependency of required package sysv-rc(2.88dsf-53.2)). Regards, JH Chatenet PS: please CC me, I am not on the list. [1] : https://lists.debian.org/debian-alpha/2013/12/msg00016.html, https://lists.debian.org/debian-68k/2013/12/msg00118.html
Attachment:
debian-ports.gz
Description: Binary data
debootstrap for debian-ports ============================ It is advisable to install a newer version of debootstrap (1.0.48 or above - 1.0.26 won't work) and debian-ports-archive-keyring. Usage (standalone) ----------------- Uncompress debian-ports.gz in the current directory. Referring to debootstrap man page, the basic syntax is debootstrap [OPTION...] unstable TARGET MIRROR ./debian-ports e.g. debootstrap unstable my_chroot http://ftp.de.debian.org/debian-ports ./debian-ports Usage (installed) ----------------- Uncompress debian-ports.gz and copy it in /usr/share/debootstrap/scripts. Then use 'debian-ports' as the (pseudo)-suite name, e.g. debootstrap debian-ports my_chroot Remark 1 : the variant 'scratchbox' was not tested. Remark 2 : MIRROR, if given, should be a mirror of debian-ports, not of the regular debian archive. Remark 3 : package validation requires the debian-ports archive key (http://ftp.debian-ports.org/archive/archive_2014.key at the present time) One may install debian-ports-archive-keyring, or download the key and add it with apt-key (cat archive_2014.key | apt-key add -). Or switch off package validation altogether with option --no-check-gpg of debootstrap (not recommended). How it works ------------ debootstrap sources a script under /usr/share/debootstrap/scripts to accommodate the peculiarities of the target suite. The attached script "debian-ports" is a slight modification of the one for unstable : - function download_indices is modified to download from unreleased as well. - Packages files from unstable and unreleased are concatenated and sorted by ascending version number. - the default mirror is changed to ftp.debian-ports.org and the default keyring to debian-ports-archive-keyring. - debian-ports-archive-keyring (Prority : extra) is selected for installation in the target. - unreleased is added to etc/apt/sources.list in the target. A perl function is inlined to sort the Packages file. Or the path of an alternative sort program may be given in the environment variable DEBOOTSTRAP_SORT_PKGS.