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

Bug#806780: marked as done (--foreign/--second-stage breaks with multiple components)

Your message dated Sat, 07 Apr 2018 15:21:07 +0000
with message-id <E1f4peN-0009uK-Tm@fasolo.debian.org>
and subject line Bug#806780: fixed in debootstrap 1.0.96
has caused the Debian Bug report #806780,
regarding --foreign/--second-stage breaks with multiple components
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

806780: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806780
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debootstrap
Version: 1.0.75
Severity: normal
Tags: patch

When passing multiple components to --second-stage things fail as debootstrap
tries to open debootstrap.invalid_dists_badger_snake|mushroom-armhf.Packages
rather then seperate Packages file for snake and mushroom.

Fixed in attached patch

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, armel

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (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.17-1

Versions of packages debootstrap recommends:
ii  debian-archive-keyring  2014.3
ii  gnupg                   1.4.19-6

debootstrap suggests no packages.

-- no debconf information
>From 6621d8304cb79dcc6e07098caaf6eaa56fe8594a Mon Sep 17 00:00:00 2001
From: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Date: Tue, 1 Dec 2015 09:09:07 +0100
Subject: [PATCH] Fix multiple components usage for --foreign

commit e24e4b006736734e, bug #757819 made resolve_deps and
setup_available in the --foreign case. However this only worked when
using just one component as the USE_COMPONENTS variable is | delimited.

Translate the USE_COMPONENTS variable on the fly from | delimited to
space delimeted to allow multiple components to work again.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
 functions | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/functions b/functions
index 8bef5e6..64d76e4 100644
--- a/functions
+++ b/functions
@@ -1256,14 +1256,14 @@ resolve_deps () {
 	local ALLPKGS2="";
 	while [ "$PKGS" != "" ]; do
 		local NEWPKGS=""
-		for c in ${COMPONENTS:-$USE_COMPONENTS}; do
+		for c in ${COMPONENTS:-$(echo ${USE_COMPONENTS} | tr '|' ' ')}; do
 			local path="dists/$SUITE/$c/binary-$ARCH/Packages"
 			local pkgdest="$TARGET/$($DLDEST pkg "$SUITE" "$c" "$ARCH" "$m1" "$path")"
 		PKGS=$(echo "$PKGS $NEWPKGS" | tr ' ' '\n' | sort | uniq)
 		local REALPKGS=""
-		for c in ${COMPONENTS:-$USE_COMPONENTS}; do
+		for c in ${COMPONENTS:-$(echo ${USE_COMPONENTS} | tr '|' ' ')}; do
 			local path="dists/$SUITE/$c/binary-$ARCH/Packages"
 			local pkgdest="$TARGET/$($DLDEST pkg "$SUITE" "$c" "$ARCH" "$m1" "$path")"
 			REALPKGS="$REALPKGS $("$PKGDETAILS" PKGS REAL "$pkgdest" $PKGS | sed -n 's/ .*REAL.*$//p')"
@@ -1279,7 +1279,7 @@ resolve_deps () {
 setup_available () {
 	local m1="${MIRRORS%% *}"
+	for c in ${COMPONENTS:-$(echo ${USE_COMPONENTS} | tr '|' ' ')}; do
 		local path="dists/$SUITE/$c/binary-$ARCH/Packages"
 		local pkgdest="$TARGET/$($DLDEST pkg "$SUITE" "$c" "$ARCH" "$m1" "$path")"
 		# XXX: What if a package is in more than one component?

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

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

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 806780@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Hideki Yamane <henrich@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)

Hash: SHA512

Format: 1.8
Date: Fri, 06 Apr 2018 10:02:20 +0900
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.96
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Hideki Yamane <henrich@debian.org>
 debootstrap - Bootstrap a basic Debian system
 debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 563647 586158 732628 734324 754318 762431 775444 775474 798564 806780 833525
 debootstrap (1.0.96) unstable; urgency=medium
   * Escape spaces to fix debootstrap on path contains space fails
     Thanks to Tianon Gravi <tianon@debian.org> for the based patch
     (Closes: #586158, #762431)
   * Add warning if file specified via --keyring does not exist
     Thanks to jnqnfe <jnqnfe@gmail.com> for the patch
     (Closes: #754318, #775474)
   * Avoid unnecessary keyring warning with --second-stage option
     (Closes: #734324)
   * Output warning if falling back to sha1 (Closes: #775444)
     Thanks to jnqnfe <jnqnfe@gmail.com> for the patch.
   * Prevent unintended removal with --print-debs option (Closes: #833525)
     Thanks to Johannes Schauer <josch@debian.org> for the patch
   * Add scripts for Kali Linux (Closes: #798564)
   * Improve manpage description for --{unpack,make}-tarball options
     (Closes: #563647)
   * debian/control
     - Add "Suggests: squid-deb-proxy-client"
   * debian/rules
     - Add Kali for ${keyring} pattern
   [ Sjoerd Simons ]
   * Fix multiple components usage for --foreign/--second-stage
     (Closes: #806780)
   [ Michael Vogt ]
   * Try to auto-detect proxy if available (e.g. squid-deb-proxy-client)
     (Closes: #732628)
 e283396a67afae3737229a54c142b2f26f6793b6 1991 debootstrap_1.0.96.dsc
 6abf18b0faa0a47a65e6b30aa9611df3d04127ed 69541 debootstrap_1.0.96.tar.gz
 c583d15df4f603d57079d0d3752051dcdf7ed1d4 19632 debootstrap-udeb_1.0.96_all.udeb
 7a01dd6e1d718cc7846832bfafaaeb08d7991e11 67130 debootstrap_1.0.96_all.deb
 9a8356d661e8bd165ab926c00695322483f0f022 5766 debootstrap_1.0.96_amd64.buildinfo
 d2949b1c59c6de220fdb8ca5992ddf7d4ef6680420604b7b0a5c8141f76cbf51 1991 debootstrap_1.0.96.dsc
 5fe34b69069a8dcb425450f81d7e7c9eda9a6afd90082985d9e8f790868dae86 69541 debootstrap_1.0.96.tar.gz
 c03783f84073f8bce653042b9a64179f616cc14352f975ab82e843c5d3c2bfce 19632 debootstrap-udeb_1.0.96_all.udeb
 12ffc7d26021eefef8b9e667e78088c6a655439768e505e2c6d83999f3fed03c 67130 debootstrap_1.0.96_all.deb
 daad68829989b2c379478c97c1b60b6c48244f15cb8eead7a5d79a8ce14c8079 5766 debootstrap_1.0.96_amd64.buildinfo
 7e77faea3139b192eca2ae83412818a1 1991 admin optional debootstrap_1.0.96.dsc
 7fdc23cf17ba818b3c5034e9afe0deb7 69541 admin optional debootstrap_1.0.96.tar.gz
 b19393afd74acb11fff1b05e91db3820 19632 debian-installer optional debootstrap-udeb_1.0.96_all.udeb
 8bdbbd814a1c224a62864087e922c120 67130 admin optional debootstrap_1.0.96_all.deb
 020c970100f8e2db4487dd5e1c63e764 5766 admin optional debootstrap_1.0.96_amd64.buildinfo



--- End Message ---

Reply to: