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

Bug#599565: Hurd's storeio depends on libparted / libuuid



Package: crosshurd
Version: 1.7.41

Hello!

Yeah, I know I should be using the new debian-installer thingy :-), but I
wanted to get flubber going, easily, using my existing machinery, so
there.

It took me some minutes to figure this out...  ;-)

    [...]
    + mkswap.linux -v1 /dev/hd1
    /dev/hd1: Translator died
    # showtrans /dev/hd1
    /hurd/storeio hd1
    # mkswap.linux -v1 /dev/hd1
    /dev/hd1: Translator died
    # devprobe hd1
    hd1 count 1
    close, hd1 count 0
    hd1
    # mkfs.ext2 /dev/hd1
    mke2fs 1.41.12 (17-May-2010)
    Could not stat /dev/hd1 --- Unknown code P 101
    # ls -l /dev/hd1
    ls: cannot access /dev/hd1: Translator died
    # /hurd/storeio --help
    /hurd/storeio: error while loading shared libraries: libparted.so.0: cannot open shared object file: No such file or directory

Aha!

diff -ru ./etc/crosshurd/packages/gnu /etc/crosshurd/packages/gnu
--- ./etc/crosshurd/packages/gnu	2010-04-16 23:19:39.000000000 +0200
+++ /etc/crosshurd/packages/gnu	2010-10-09 01:06:43.000000000 +0200
@@ -1,5 +1,7 @@
 gnumach
 hurd
+libparted0debian1
+libuuid1
 libc0.3
 inetutils-tools
 cardmgr-gnumach

Or should this rather be done automatically?  Preferably; but how?


And yet, there is another obstacle: libuuid is automatically extracted,
libparted is not.  The extract logic in
/usr/share/crosshurd/makehurddir.sh won't consider it, as it is
``Priority: optional'' (libuuid is ``required''), so we need a special
clause.

diff -ru ./usr/share/crosshurd/makehurddir.sh /usr/share/crosshurd/makehurddir.sh
--- ./usr/share/crosshurd/makehurddir.sh	2010-07-08 01:21:02.000000000 +0200
+++ /usr/share/crosshurd/makehurddir.sh	2010-10-09 01:02:07.000000000 +0200
@@ -48,6 +48,10 @@
         extract libbz2-1.0
 fi
 
+if [ -e $TARGET/var/cache/apt/archives/libparted0debian1_* ] ; then
+        extract libparted0debian1
+fi
+
 x_feign_install dpkg
 if [ "$DEB_TARGET_GNU_SYSTEM" = "gnu" ] ; then
 	x_feign_install hurd


(FWIW, it's already known that stderr of passive translators (sometimes?)
disappears into some nirvana.)


Regards,
 Thomas

Attachment: pgpoVV8ipMjow.pgp
Description: PGP signature


Reply to: