Package: debootstrap
Version: 0.3.3
Tags: patch
Hi,
debootstrap requires either perl or pkgdetails. Since it is probably not
easy to install perl I tried to compile pkgdetails.c.
Crosscompiling failed:
$ /usr/mips/bin/mips-linux-gcc -mabi=64 pkgdetails.c -o pkgdetails
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/mips/lib/gcc-lib/mips-linux/3.3.3/../../../../mips-linux/bin/ld:
/tmp/ccm6vkAa.o: ABI is incompatible with that of the selected emulation
/usr/mips/lib/gcc-lib/mips-linux/3.3.3/../../../../mips-linux/bin/ld:
failed to merge target specific data of file /tmp/ccm6vkAa.o
It seems to work now without -mabi=64 but I don't remember why I tried
to use this option nevertheless.
I also tried it with IRIX's cc and got a compile error which is fixed
by the following patch. Since debootstrap is used to install Debian, you
cannot assume a proper Debian system to create pkgdetails.
--- pkgdetails.c.orig 2006-11-16 21:44:23.000000000 +0100
+++ pkgdetails.c 2006-11-16 21:50:45.000000000 +0100
@@ -21,7 +21,7 @@
char cur_deps[MAX_LINE];
char *pkgs[MAX_PKGS];
int i;
- int skip;
+ int skip, any;
FILE *f;
cur_pkg[0] = cur_deps[0] = '\0';
@@ -40,7 +40,7 @@
if (strncasecmp(buf, "Package:", 8) == 0) {
skip = 1;
fieldcpy(cur_pkg, buf);
- int any = 0;
+ any = 0;
for (i = 0; i < pkgc; i++) {
if (!pkgs[i]) continue;
any = 1;
I strongly suggest you provide the binary pkgdetails to simplify the
usage of debootstrap since I had to crosscompile it already for another
installation.
Jens
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]