[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#837185: marked as done (debootstrap: fails with `dpkg-deb` and busybox' `tar`)



Your message dated Tue, 13 Sep 2016 12:49:18 +0000
with message-id <E1bjn9K-0003Mf-E3@franck.debian.org>
and subject line Bug#837185: fixed in debootstrap 1.0.83
has caused the Debian Bug report #837185,
regarding debootstrap: fails with `dpkg-deb` and busybox' `tar`
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
837185: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837185
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debootstrap
Version: 1.0.82
Severity: minor

While testing other changes, I noticed that debootstrap fails when
using `dpkg-deb` together with busybox' `tar` implementation as
`dpkg-deb -f` passes additional options to `tar`.

I'm not sure if this happens in the real world (i.e. anyone has
`dpkg-deb` available, but busybox' tar instead of GNU's tar), but the
attached patch avoids the problem by calling the installed `dpkg-deb`
in the second stage.

(The patch should go in after the ones from #810301.)

Ansgar

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'testing'), (500, 'stable'), (300, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debootstrap depends on:
ii  wget  1.18-2+b1

Versions of packages debootstrap recommends:
ii  debian-archive-keyring  2014.3
ii  gnupg                   2.1.14-5

debootstrap suggests no packages.

-- no debconf information
>From 316ba08b931e6f226b25c396b45b6add58b578e2 Mon Sep 17 00:00:00 2001
From: Ansgar Burchardt <ansgar@debian.org>
Date: Fri, 9 Sep 2016 23:03:23 +0200
Subject: [PATCH] Feign install of dpkg in second stage

Using the `dpkg-deb` extractor, or more precise `dpkg-deb -f`, together
with busybox' `tar` results in failure: `dpkg-deb` passes additional
options to `tar` that are not understood by busybox' implementation such
as `--warning=no-timestamp`.

We can avoid this by feigning the installation of `dpkg` in the second
stage. Here it is possible to call the installed `dpkg-deb` together
with the installed (GNU) `tar`.
---
 scripts/sid | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/scripts/sid b/scripts/sid
index 428c676..ceedd66 100644
--- a/scripts/sid
+++ b/scripts/sid
@@ -59,11 +59,15 @@ first_stage_install () {
 	fi
 
 	setup_devices
+}
+
+second_stage_install () {
+	setup_dynamic_devices
 
 	x_feign_install () {
 		local pkg="$1"
 		local deb="$(debfor $pkg)"
-		local ver="$(extract_deb_field "$TARGET/$deb" Version)"
+		local ver="$(in_target dpkg-deb -f "$deb" Version)"
 
 		mkdir -p "$TARGET/var/lib/dpkg/info"
 
@@ -77,10 +81,6 @@ Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
 	}
 
 	x_feign_install dpkg
-}
-
-second_stage_install () {
-	setup_dynamic_devices
 
 	x_core_install () {
 		smallyes '' | in_target dpkg --force-depends --install $(debfor "$@")
-- 
2.9.3


--- End Message ---
--- Begin Message ---
Source: debootstrap
Source-Version: 1.0.83

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.

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 837185@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steve McIntyre <93sam@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@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 13 Sep 2016 13:16:41 +0100
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.83
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Steve McIntyre <93sam@debian.org>
Description:
 debootstrap - Bootstrap a basic Debian system
 debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 810301 837075 837185
Changes:
 debootstrap (1.0.83) unstable; urgency=medium
 .
   [ Ansgar Burchardt ]
   * functions: Validate that the requested suite is listed in the
     Release file's Suite or Codename field. (Closes: #837075)
   * Add support for merged-/usr, enabled by a new --merged-usr option.
     (Closes: #810301)
   * Feign install of dpkg in second stage. This avoids problems when
     using dpkg-deb together with busybox' tar. (Closes: #837185)
   * README: Use https://.
 .
   [ Steve McIntyre ]
   * Update Standards-Version to 3.9.8 (no changes needed)
Checksums-Sha1:
 6188946fc8ad972a5b720322623afb0d3d930559 1812 debootstrap_1.0.83.dsc
 e3dd550523fb8f30b5217df99e44cd9340bce6dd 65551 debootstrap_1.0.83.tar.gz
 761bb5d56a0364a33fcd9c0d996b874ac86f785c 18574 debootstrap-udeb_1.0.83_all.udeb
 17e5a6cdef48a16936644e9e5a63ca9f1e774f7f 65192 debootstrap_1.0.83_all.deb
Checksums-Sha256:
 203e64ff912d3a926d57515d7d1537a4e6c91e393eaa5344c8614f8424ce2fe5 1812 debootstrap_1.0.83.dsc
 64d571e8807643ce098e2c4eff0ce17ae246569f1f07224244649be36eaac6b4 65551 debootstrap_1.0.83.tar.gz
 877fe5281a0e424bd6c71d121cbb725b8f56694e66558cd47c20c3aa87ceff72 18574 debootstrap-udeb_1.0.83_all.udeb
 e9abe794bad681b184179e8ab04a41c5d1567cee082e4adc95ed61ad0dce084f 65192 debootstrap_1.0.83_all.deb
Files:
 a02f87d143eb0bed5ee4060162b13fe5 1812 admin extra debootstrap_1.0.83.dsc
 fa5a79d4fddeb50465a9506df9b464bc 65551 admin extra debootstrap_1.0.83.tar.gz
 5811209f3861f7b4ea0c08eb0b48b729 18574 debian-installer extra debootstrap-udeb_1.0.83_all.udeb
 e5e42bdbc243e2922c3f9fb367eab625 65192 admin extra debootstrap_1.0.83_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJX1/LOAAoJEFh5eVc0QmhOsWkQAI9x5weQwEwHfEceuwM/fKBu
RCXh2X01iDMnK4QxnMQemp+r0fNnwpCDjhcfKOzvcSiqTkzCFwXUiNJXdeX3s3tL
MhywDxZr4l7U7mdON5DKJkbN4PmI8P5XH41IeO5uXPet+1poUtg5OjkRoM/jTqjw
pvFNqLX8lNNiqL8rmuYQ+O2maJRxNgigVw76+UVr2eVz01qEIrmUfzmvx8DQJrnK
w3W7VX68ZMOZxCUH0rqaWlxsLuJzV7/TJHwtc71bxmkD6BtgtMHJdpw8idAJVFci
jwIW4sj1m/LtePSZBV+uQbRGxXcP41d84ogQASjQKejUMaPRtRx5X1qiG3p1hVeq
qEiw8Z/JYDej38Pa8ZQD1LKoH6H764EsmPeR0lNv/Zzqr5HGXkQo3gUTBWMLZk87
cdMuQfmJtmIA86yZSTTBfIUHcKnN8MOzLV9VesXVJ+M6ezYKk2TYKW8sdWbF4eAF
OdD95lQxt0tVtj3ioQHMnlYTmr3cWRBE1RTGNQNMlVrrxAMxOmgjleyIW3lRvIMc
CKo2CD+ndNsQVM6h4iDDIoh+VfAoYEu5+DepCBFIj/mWkQ69Mrtqz3l1vuMZQPSy
b1eWIBEXpovm+fZ9jmNPV+oWx/9F79n+zhjqfd7lvY6FwVhJbfUCxZ7Ic/pG/+As
pE2lFrUXFhY2wTrsEs3Y
=VC5c
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: