Package: crosshurd
Version: 1.7.22
Severity: grave
Tags: patch

For some reason, this didn't happen before, but the problem appears clear now:
when makehurddir.sh attempts to extract packages, it fails when changing cwd to
$TARGET.  This is because the TARGET variable contains a relative path, but
previous to calling "debfor" in `functions', there's a line to enter the target
directory, so the second time it'll fail.

Patch attached (tested bootstrapping kfreebsd-gnu).

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL 
set to C)

Versions of packages crosshurd depends on:
ii  dialog                    1.0-20051107-1 Displays user-friendly dialog boxe
ii  dpkg-dev                  1.13.11        package building tools for Debian

Versions of packages crosshurd recommends:
pn  attr                          <none>     (no description available)

-- no debconf information
--- /usr/share/crosshurd/functions~     2005-06-11 13:32:50.000000000 +0200
+++ /usr/share/crosshurd/functions      2005-11-13 12:43:39.000000000 +0100
@@ -54,7 +54,7 @@
                                                                                
 
 apt_debfor () {
   for p in "$@"; do (
-    cd "$TARGET/var/cache/apt/archives"
+    cd "var/cache/apt/archives"
     local chk=0
     for x in ${p}_*_*.deb; do
       if [ -e "$x" ]; then

Reply via email to