Hi Bruce!

Please use the smartphones-userland mailing list for any Debian bug, the
s-standards one is reserved for "FSO Standards and Reference
Implementations".  I moved the discussion to s-userland and set R-T and
M-F-T accordingly.

On Tue, 03 Feb 2009 21:56:59 +0100, Bruce Cran wrote:
> I just tried following the instructions at
> http://wiki.debian.org/DebianOnFreeRunner to install Debian on my
> Freerunner.  Unfortunately it seems the version of tar/BusyBox in FSO M5
> doesn't support the -z option so gunzip needs to be called explicitly:

I already reported it at [1] (yes, I know it was on s-standards...) and
received no official answer.  When I found this problem, I quickly
checked the busybox sources for version 1.13.2 and if I am not wrong
-z/-j support is still there.  Just a missing configuration option?

Michael, should I open a bug in the FSO tracker?

> The patch to fix this is:
[...]
> The installation now gets further but fails later on because it tries
> to use -z again

As I wrote at [1], "it" should be dpkg.

> - the solution was to replace /bin/tar with the version from
> http://packages.debian.org/sid/armel/tar/download .

Actually this is not a solution, but a workaround, which seems to be
anyway necessary at least for official images.  I tested the following
patch on FSO-MS5 and Debian installs fine:

--8<---------------cut here---------------start------------->8---
diff --git a/install.sh b/install.sh
index 1eb8872..bf48242 100755
--- a/install.sh
+++ b/install.sh
@@ -73,6 +73,9 @@ UBOOT_ENV_SIZE=262144
 # mkfs.vfat is not installed by default in most of the Openmoko images
 
DOSFSTOOLS_PACKAGE=$INST_MIRROR/pool/main/d/dosfstools/dosfstools_3.0.1-1_armel.deb
 
+# FSO-MS5 busybox's tar does not support -z
+TAR_PACKAGE=$INST_MIRROR/pool/main/t/tar/tar_1.20-1_armel.deb
+
 
 #
 # FUNCTIONS
@@ -298,6 +301,17 @@ for BINARY in wget ping fdisk mount umount mkfs.ext2 
gunzip dd sed rdate; do
        echo " * $BINARY installed"
 done
 
+if tar --help 2>&1 | grep "Usage: tar \-\[cxtvO\]" >/dev/null; then
+       echo "W: tar does not support gzip archives"
+       echo "Downloading tar package"
+       wget $TAR_PACKAGE -O /tmp/tar.deb
+       ( cd /tmp; ar -x tar.deb data.tar.gz )
+       mkdir -p /usr/local
+       gunzip -c /tmp/data.tar.gz | tar -x -C /usr/local/
+       rm -f /tmp/data.tar.gz
+       rm -f /tmp/tar.deb
+fi
+
 if [ "$SD_PART1_FS" = "vfat" ]; then
        if ! which mkfs.vfat >/dev/null; then
                echo "W: Could not find mkfs.vfat binary"
--8<---------------cut here---------------end--------------->8---

This will add 1.7M to /usr/local/: obviously, we can add more code to
remove everything except /usr/local/bin/tar (236kB), but I do not think
it is worth the effort, also for the reasons I explained at [2]

I will commit it tomorrow if no one will complain.

Thx, bye,
Gismo / Luca

Footnotes: 
[1] 
http://projects.linuxtogo.org/pipermail/smartphones-standards/2009-January/000871.html
[2] 
http://lists.alioth.debian.org/pipermail/pkg-fso-maint/2009-January/000465.html

Attachment: pgpujbMkXf8lo.pgp
Description: PGP signature

_______________________________________________
smartphones-standards mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-standards

Reply via email to