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

Bug#694310: marked as done (debootstrap: test-exec function does not work on android)



Your message dated Sat, 22 Dec 2012 13:02:27 +0000
with message-id <E1TmOih-0005Kt-Bl@franck.debian.org>
and subject line Bug#694310: fixed in debootstrap 1.0.45
has caused the Debian Bug report #694310,
regarding debootstrap: test-exec function does not work on android
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.)


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

Dear Maintainer,

Please accept this patch making the test-exec function work on Android. It is
against current git HEAD.

Note you will still need busybox and root to use debootstrap on Android. You will
also need to build pkgconfig.c from base-installer statically.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: armhf (armv7l)

Kernel: Linux 3.5.4-00581-g5930e52 (PREEMPT)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From c63c87f6e430f628d11d5ca927d4931e09c25da5 Mon Sep 17 00:00:00 2001
From: Shawn Landden <shawnlandden@gmail.com>
Date: Sun, 25 Nov 2012 10:47:55 +0000
Subject: [PATCH] functions: check for /bin/sh before using it in shebang
 (android)

---
 functions |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/functions b/functions
index b450396..097650b 100644
--- a/functions
+++ b/functions
@@ -1299,10 +1299,18 @@ check_sane_mount () {
 		;;
 	esac
 
-	cat > "$1/test-exec" <<EOF
+	if [ -f "/bin/sh" ]; then
+		cat > "$1/test-exec" <<EOF
 #! /bin/sh
 :
 EOF
+	elsif [ -f "/system/bin/sh" ]; then
+		cat > "$1/test-exec" <<EOF
+#! /system/bin/sh
+:
+EOF
+	fi
+
 	chmod +x "$1/test-exec"
 	if ! "$1/test-exec"; then
 		rm -f "$1/test-exec"
-- 
1.7.10.4


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

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

Debian distribution maintenance software
pp.
Christian Perrier <bubulle@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: SHA1

Format: 1.8
Date: Sat, 22 Dec 2012 12:56:32 +0100
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.45
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Christian Perrier <bubulle@debian.org>
Description: 
 debootstrap - Bootstrap a basic Debian system
 debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 694310
Changes: 
 debootstrap (1.0.45) unstable; urgency=low
 .
   [ Joey Hess ]
   * Better support use on Android by not hardcoding /bin/sh
     in a test file that's created, and instead putting in the
     actual path to sh. Closes: #694310 Thanks, Shawn Landden
Checksums-Sha1: 
 df9ddfb238ccca10449087ce72636f4bf2b1c44e 1779 debootstrap_1.0.45.dsc
 1abb485313a8faa4f8d3837b7a49bdd7c304a00e 58121 debootstrap_1.0.45.tar.gz
 6c50f820936863efef6adaed60fe3c57ec94d416 61170 debootstrap_1.0.45_all.deb
 1462f53e5fef2654c484e2e1fd2269b3b1c79a11 17942 debootstrap-udeb_1.0.45_all.udeb
Checksums-Sha256: 
 4a4ba2c5824504bd5c1fc1150ffc3f1713b9765bff442abf05f9b04962c466bc 1779 debootstrap_1.0.45.dsc
 323d27268289ed2b75a61a5735cd33a52e103c78609ae9addc193f1918bb51f2 58121 debootstrap_1.0.45.tar.gz
 b2d9ac7432dbbc8ba00a568f523f8118fdaa80c93d74e7aa1fabea74605658d0 61170 debootstrap_1.0.45_all.deb
 96622ae8a6fc162130cbade34b3f1840a12493e72c4a4e3f67ed21449f72cacb 17942 debootstrap-udeb_1.0.45_all.udeb
Files: 
 bfd70264bf24badc99187f72e9363034 1779 admin extra debootstrap_1.0.45.dsc
 2f0249c4797fa75848ce2dbe60172f8c 58121 admin extra debootstrap_1.0.45.tar.gz
 cd97ce9f3583e38a12691cb3867ff556 61170 admin extra debootstrap_1.0.45_all.deb
 6fc031474b1082a31acad89474c75b63 17942 debian-installer extra debootstrap-udeb_1.0.45_all.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIUAwUBUNWsi4cvcCxNbiWoAQIsTA/3ZL3cwhhF7DOqtap+OCKz1Me40rsY8cS0
X5a5JQGhUgCpIiLY/CYFv5h3LujMSOds45QdvjdFKF3h/vKW0CPfAQ/npysyV1sx
Pt1d7ayT2425OuX2ORNEYYrGvUKkix39/1hHAUMjZk8nSstuaadRD0QrdaEHE9Gd
kdejuH62pkUF4Q829e3fvWfwh5680/gRD3SmoN1CAPjHht2XeuHtoJCUMNtz0n3J
csYoxJ/ET1KqsEsBTeTAe6YitIvlmOaHKpRiVmoZpx3/SWyWNEhOrnooROwf4eZK
g+uG9PDU+xMjRYAsPgizYeIooJOX/8w3vSCCTciMyqFdz04RlSeEKcEzc1eIS4pz
s86RS3qWVGJ6iO0VouYvrGa5D1WU2/cbuux/jy5OdG00Rzg17gzorX+rKmkvzDG3
x1e/OzhyC5DiTn3RgJOEmVY+XSQf4F0Rz8/AXjcOQ1m48FOGGhdOeMHVPD2nTBpr
HwKo7uShFuDq1LJuyXv79HdIenw0A2G1fcyhoKBc+XiQ0jwisM5kPU+67HFgkVVr
T2IQdV/1+pOAihet9KssUvR42TPjHeDwuUFNNGGDDRsVVYaYGqyqPIKPJ9dVgKo5
3TuhBKixZA20sRC3qbujjbd0Haf2ZF9w/yD1u/6hfe0eWBrO3RKB4fgknLXmKyo5
GBcNHk/eyQ==
=CHQz
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: