--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: Missing support for data.tar.bz2-based debs
- From: Marc 'HE' Brockschmidt <he@debian.org>
- Date: Wed, 02 Jan 2008 11:52:01 +0100
- Message-id: <20080102105201.7347.66324.reportbug@pindar.localnet>
Package: debootstrap
Version: 1.0.6
Severity: wishlist
Tags: patch
Hi,
The current debootstrap code can't handle .debs which contain a
data.tar.bz2 instead of a data.tar.bz. Attached is a fix.
Marc
diff -Nwru debootstrap-1.0.7/debian/control debootstrap-1.0.7.he/debian/control
--- debootstrap-1.0.7/debian/control 2007-11-14 03:22:12.000000000 +0100
+++ debootstrap-1.0.7.he/debian/control 2008-01-02 11:48:53.000000000 +0100
@@ -9,7 +9,7 @@
Package: debootstrap
Architecture: all
-Depends: wget, binutils
+Depends: wget, binutils, bzip2
Description: Bootstrap a basic Debian system
debootstrap is used to create a Debian base system from scratch,
without requiring the availability of dpkg or apt. It does this by
diff -Nwru debootstrap-1.0.7/functions debootstrap-1.0.7.he/functions
--- debootstrap-1.0.7/functions 2007-11-14 10:50:04.000000000 +0100
+++ debootstrap-1.0.7.he/functions 2008-01-02 11:47:59.000000000 +0100
@@ -718,7 +718,15 @@
progress "$p" "$#" EXTRACTPKGS "Extracting packages"
packagename="$(echo "$pkg" | sed 's,^.*/,,;s,_.*$,,')"
info EXTRACTING "Extracting %s..." "$packagename"
+ data_file="$(ar -t "./$pkg" | grep '^data')"
+ if [ "$data_file" = "data.tar.gz" ]; then
ar -p "./$pkg" data.tar.gz | zcat | tar -xf -
+ elif [ "$data_file" = "data.tar.bz2" ]; then
+ ar -p "./$pkg" data.tar.bz2 | bzcat | tar -xf -
+ else
+ echo "Something weird happened and I don't know how debootstrap handles errors"
+ exit 1
+ fi
done
); }
--- End Message ---
--- Begin Message ---
Source: debootstrap
Source-Version: 1.0.21
We believe that the bug you reported is fixed in the latest version of
debootstrap, which is due to be installed in the Debian FTP archive:
debootstrap-udeb_1.0.21_all.udeb
to main/d/debootstrap/debootstrap-udeb_1.0.21_all.udeb
debootstrap_1.0.21.dsc
to main/d/debootstrap/debootstrap_1.0.21.dsc
debootstrap_1.0.21.tar.gz
to main/d/debootstrap/debootstrap_1.0.21.tar.gz
debootstrap_1.0.21_all.deb
to main/d/debootstrap/debootstrap_1.0.21_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 458663@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Otavio Salvador <otavio@debian.org> (supplier of updated debootstrap package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 21 Feb 2010 23:11:06 -0300
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.21
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Otavio Salvador <otavio@debian.org>
Description:
debootstrap - Bootstrap a basic Debian system
debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 288109 345762 390647 458663 557296 561283 561298
Changes:
debootstrap (1.0.21) unstable; urgency=low
.
[ Otavio Salvador ]
* Apply patch from Clint Adams <schizo@debian.org> to add support for
gz/bz2/xz data.tar (closes: #458663).
.
[ Guillem Jover ]
* Refactor deb extractors into two new functions.
* Use dpkg-deb if available instead of ar (closes: #557296).
* Add an --extractor option to override the automatic extractor selection.
.
[ Otavio Salvador ]
* Document new --extractor option in manpage.
* Apply patch from Vagrant Cascadian <vagrant+bugs@freegeek.org> not
fail if resolv.conf is a broken symlink (closes: #390647).
.
[ Frans Pop ]
* Use tab indentation in scripts/debian/sid to reduce its size (relevant
for Debian Installer).
* Add apt to base packages for the buildd variant as it is no longer marked
Build-Essential.
.
[ Otavio Salvador ]
* Apply patch from Andres Salomon <dilinger@collabora.co.uk> to honor
--components when using mirror_style 'main' (closes: #561283).
* Apply patch from Andres Salomon <dilinger@collabora.co.uk> to fix
iteration through components in download_main (closes: #561298).
.
[ Joey Hess ]
* Allow the suite to be stable, testing, or unstable when debootstrapping
Debian. Closes: #288109
* Make scripts directory in source tree look like installed directory,
and add a section to README explaining an easy way to run
debootstrap w/o installing it. Closes: #345762
* Convert rules file to use dh with overrides.
* Remove binary-basedebs target from debian/rules.
This target has been broken in multiple ways since 2007. While I
accidentially partially fixed it with the above changes, this is evidence
it's dead code that can be safely removed.
Checksums-Sha1:
4210e7b38b194f2edf5b250d3b4c4a5361c0a3b5 1669 debootstrap_1.0.21.dsc
55e151a851c25cd82f0bede60ee6d5bd140223dc 56841727 debootstrap_1.0.21.tar.gz
5a71a47a1183ae096f377eeb90900899907cf589 57042 debootstrap_1.0.21_all.deb
785919c500862fc28d184eb5d59bdf9393786339 18886 debootstrap-udeb_1.0.21_all.udeb
Checksums-Sha256:
9852140ec9dae3df6f824cfe98b2e84089b5ef6b9487ca318e44164fee47c782 1669 debootstrap_1.0.21.dsc
fd0f2a92f9706a7b52935fc988b84d6678173cbffd14b0ea84f43335e665a303 56841727 debootstrap_1.0.21.tar.gz
be2bc42919796889d0b3110a919b9aa69c9c5e1974574994fd128938c5c22893 57042 debootstrap_1.0.21_all.deb
73a234f2e3e6907b8eea6e9f7b4372bfe042ef9bf61924751519b599e7edf3e0 18886 debootstrap-udeb_1.0.21_all.udeb
Files:
5d54eba945bfb7f14fcb4cc892a1b828 1669 admin extra debootstrap_1.0.21.dsc
90c8e02b41ef73b8a5dc774d5a546635 56841727 admin extra debootstrap_1.0.21.tar.gz
c486ada83c35d46152beb9d30aa98d08 57042 admin extra debootstrap_1.0.21_all.deb
204318870f77f3511078f08d743b78c4 18886 debian-installer extra debootstrap-udeb_1.0.21_all.udeb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBCAAGBQJLgef+AAoJEOtw/vPN/G5PbVcP/1vCc2zd0Ii6VcPlOYxolzqt
2uQgFN4XFbghO35d5HC7qpfMWpNE43lGg/L4rB2kRbj94Amm/55o5BSi+Q98n95D
m/YwUxq59GsG7RQVQzbmCHvcwBU2Tqf1D0ejr0sX8DCA42B3OZ03NvqI5UsTUmA8
Pdc8ZabeK2elPW2cx+conMpIeE247TeeQY56oYWePd3FNht0RMY+jGBJb8LwifRP
urCGHtofLPlDfnnALt4e3+YcoPym0KdTM/R/AxAAMGAyN+zwaQXrvj9kyKJYA9ew
ckCaBAjpnNfUuIQlKFWK5TwZudo5hIrK4WnspfDPyQDXoVt2hEaTC8lpfv2JCCLh
k2kZK14BLN/ikAwFGLw+RN3kcwWXa1Oz2RkBCu0tAR8VZQAKMIqM8IpJzTMs2wHQ
oJCrITxrF7tXmkbFc5CAlwB/FyhuK8LoG+VSOSKNagDvCzYfyN2W4x4QbmwVr8+C
iaWqheOiRn3xesKJSSBE5lJtx/lj212i4M5vEB49g+9wbpLnJCThIax/Mj5DEA7k
12K420nr9nEUd/X7wS5EdtjICpDjL/Af3OuVmfqFFo+bcOVJi97el6SwAkd7Opth
j5cOnLQLmhOd5b6iYB0OkH/va73fWPb0gEFYRSpcsJM4UFzc23ZN/uwfgZjSNRxD
PX1xtc0L0D+QC9WcQ4EA
=IJqM
-----END PGP SIGNATURE-----
--- End Message ---