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

Bug#637298: marked as done (broken cross-debootstraps (--foreign) with host=kfreebsd and target=linux)



Your message dated Wed, 10 Aug 2011 12:17:24 +0000
with message-id <E1Qr7iu-0007X2-0p@franck.debian.org>
and subject line Bug#637298: fixed in debootstrap 1.0.35
has caused the Debian Bug report #637298,
regarding broken cross-debootstraps (--foreign) with host=kfreebsd and target=linux
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.)


-- 
637298: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637298
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debootstrap
Version: 1.0.34
Severity: normal
Tags: patch
User: debian-bsd@lists.debian.org

While cross-deboostraping a linux-i386 chroot using kfreebsd-amd64 host:

$ sudo debootstrap --foreign --arch=i386 squeeze /tmp/test
/usr/sbin/debootstrap: 425: cannot create /tmp/test/test-dev-null: Invalid argument
E: Cannot install into target '/tmp/test' mounted with noexec or nodev

the problem here is that $ARCH stores the target architecture, but it is used
for tests where only the host architecture is relevant.

Please consider attached patch to fix the problem by adding a new variable,
$HOST_ARCH, for the host architecture.

-- System Information:
Debian Release: 6.0.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.utf8, LC_CTYPE=ca_AD.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debootstrap depends on:
ii  wget                          1.12-2.1   retrieves files from the web

Versions of packages debootstrap recommends:
ii  debian-archive-keyring        2010.08.28 GnuPG archive keys of the Debian a
ii  gnupg                         1.4.10-4   GNU privacy guard - a free PGP rep

debootstrap suggests no packages.

-- no debconf information
=== modified file 'debootstrap'
--- debootstrap	2011-08-10 10:28:36 +0000
+++ debootstrap	2011-08-10 10:48:04 +0000
@@ -28,6 +28,7 @@ KEYRING=""
 DISABLE_KEYRING=""
 VARIANT=""
 ARCH=""
+HOST_ARCH=""
 KEEP_DEBOOTSTRAP_DIR=""
 USE_DEBIANINSTALLER_INTERACTION=""
 SECOND_STAGE_ONLY=""
@@ -389,20 +390,24 @@ fi
 
 ###########################################################################
 
-if [ "$ARCH" != "" ]; then
-	true
-elif [ -x /usr/bin/dpkg ] && \
+if [ -x /usr/bin/dpkg ] && \
      /usr/bin/dpkg --print-architecture >/dev/null 2>&1; then
-	ARCH=`/usr/bin/dpkg --print-architecture`
+	HOST_ARCH=`/usr/bin/dpkg --print-architecture`
 elif type udpkg >/dev/null 2>&1 && \
      udpkg --print-architecture >/dev/null 2>&1; then
-	ARCH=`/usr/bin/udpkg --print-architecture`
+	HOST_ARCH=`/usr/bin/udpkg --print-architecture`
 elif [ -e $DEBOOTSTRAP_DIR/arch ]; then
-	ARCH=`cat $DEBOOTSTRAP_DIR/arch`
+	HOST_ARCH=`cat $DEBOOTSTRAP_DIR/arch`
 else
 	error 1 WHATARCH "Couldn't work out current architecture"
 fi
 
+if [ "$ARCH" != "" ]; then
+	true
+else
+	ARCH=$HOST_ARCH
+fi
+
 if [ "$TARGET" = "/" ]; then
 	CHROOT_CMD=""
 elif doing_variant scratchbox; then

=== modified file 'functions'
--- functions	2011-08-10 10:28:36 +0000
+++ functions	2011-08-10 10:47:04 +0000
@@ -938,7 +938,7 @@ clear_mtab () {
 }
 
 setup_proc () {
-	case "$ARCH" in
+	case "$HOST_ARCH" in
 	    kfreebsd-*)
 		umount_on_exit /dev
 		umount_on_exit /proc
@@ -977,7 +977,7 @@ setup_devices () {
 		return 0
 	fi
 
-	case "$ARCH" in
+	case "$HOST_ARCH" in
 	    kfreebsd-*)
 		in_target mount -t devfs devfs /dev ;;
 	    hurd-*)
@@ -1198,7 +1198,7 @@ get_next_predep () {
 check_sane_mount () {
 	mkdir -p "$1"
 
-	case "$ARCH" in
+	case "$HOST_ARCH" in
 	    kfreebsd-*|hurd-*)
 		;;
 	    *)


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

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.35_all.udeb
  to main/d/debootstrap/debootstrap-udeb_1.0.35_all.udeb
debootstrap_1.0.35.dsc
  to main/d/debootstrap/debootstrap_1.0.35.dsc
debootstrap_1.0.35.tar.gz
  to main/d/debootstrap/debootstrap_1.0.35.tar.gz
debootstrap_1.0.35_all.deb
  to main/d/debootstrap/debootstrap_1.0.35_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 637298@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@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: Wed, 10 Aug 2011 13:04:41 +0100
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.35
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Description: 
 debootstrap - Bootstrap a basic Debian system
 debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 637297 637298
Changes: 
 debootstrap (1.0.35) unstable; urgency=low
 .
   [ Robert Millan ]
   * Don't build devices.tar.gz if building on GNU/kFreeBSD (closes:
     #637297).
   * Don't use --arch when we specifically care about the host architecture
     (closes: #637298).
Checksums-Sha1: 
 f1e8686ad84345118580d9e9d4537a3b3bbb2bf0 1747 debootstrap_1.0.35.dsc
 413b88949666b4c753e8f5e9a54c53413d80d12b 54541 debootstrap_1.0.35.tar.gz
 c4f6bc8579db91e07cbde44d612eb7553f2f51e4 57806 debootstrap_1.0.35_all.deb
 3dcc3da26237c74998dbe9a06e72372160b957b4 18896 debootstrap-udeb_1.0.35_all.udeb
Checksums-Sha256: 
 c1e7e45d60ce86ed40478c000f9dacbbe2dcd24afecd019dec6104476466d9e2 1747 debootstrap_1.0.35.dsc
 2f75bcc552c2fc5b4cf843741d33b98cbe303d35587d7c5bb0b3ef1e6eacabcb 54541 debootstrap_1.0.35.tar.gz
 66d165c58594ddaa5c34f4d7894a1f30568c5483d953203a7bfa465496e1f57a 57806 debootstrap_1.0.35_all.deb
 fe3e358c23efe0d87e050d5b10ebddbd215a08f9bf4abc29b18b2216bf5de500 18896 debootstrap-udeb_1.0.35_all.udeb
Files: 
 d9865593d3377e0b6b8b1b4e21f2009a 1747 admin extra debootstrap_1.0.35.dsc
 b41aed491494afd3ebb733ba4d492d43 54541 admin extra debootstrap_1.0.35.tar.gz
 147c95c852884c1533612da8f200c718 57806 admin extra debootstrap_1.0.35_all.deb
 65004f6e03234b6c9ac476e04ba92c52 18896 debian-installer extra debootstrap-udeb_1.0.35_all.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Colin Watson <cjwatson@debian.org> -- Debian developer

iQIVAwUBTkJ0Czk1h9l9hlALAQgv0Q/5AX7VxrS8mC7yqZiG/HAYgasOlNjBYvOE
fJCPIZq4r9c17tctCl+7wB4O7FTb0vIpe9MV8GyRRhmtdQa9LgOqvEV0cIO1vwg8
RJijICU4pLOyUA2me83mrJ9w5VIW3Jh+xWXiEMN9LCLJ+LpJVkndoC6Kzm3ClVFa
NKAkCMt6S9nxtPB5AnIcWLYyZsugR9Eq5D/nCS6GZrtksvD8MojldpHWaYXYZSRi
f3NrxEv/LEiK1pzdyaTbgordXEpVTdh4VaAFb3Di+altTJb4PZj1iEK9jNQ+4XH2
591k3bU9uHpR8j9M2KDZe86irESC3NEIx9Zv+E4I5TWrhVUvYirUM5uATublWrzD
df6hnAxjXuH/woH1pqHAm16pqMG4CUEmPpU1B+EoBjWoTe2nrfQdjPCqAT+EwteK
M/5fttR5NEysinfho+CkeV1x4BcgvAGj1fbH4/PVvQ1ZIdHsVoarHbLdAeTJWvh7
6Wa7K5ArKJVQN8gp4lXXRNpXpsCSzkMilfYsKPl53THsR+fXX+oLiRyPpjU2v9MM
pfQ6S8hjBMqXhEfBejAoE6/+arg1PHXJcDpuEcyWbJ5+oyt4HePZAGW5UgBFl0PF
68M08i0kHiHUa9yYxPODAQEWgVqYDx5p2qJd31liRi4URliammvI+S0ASOfHki1G
1z+ZOB+OSAE=
=phI2
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: