index : bootstrap32 | |
Archlinux32 bootstrap scripts | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | TODOS | 8 | ||||
-rwxr-xr-x | build_stage1.sh | 2 | ||||
-rw-r--r-- | i486-stage1/gdb/DESCR | 12 |
@@ -33,3 +33,11 @@ - make: recursive tarkets like all-recursive don't work, neither with cross-compiled make nor with the recompiled make on the stage1 system. No clue why?! - some packages get build more than onces (linux-api-headers, pacman-mirrorlist) +- make a wrapper for sed in DESCR, which is actually able to detect whether + the patch was successful or not. Avoid hard to detect errors, when the + upstream PKGBUILD(s) change. +- gdb uses cross-compiler source files for debugging: + Temporary breakpoint 1, 0x004005b0 in main () + (gdb) list + 1 /home/cross/.build/i486-unknown-linux-gnu/src/gcc/libgcc/libgcc2.c: No such file or directory. + diff --git a/build_stage1.sh b/build_stage1.sh index 3565ea6..7c19766 100755 --- a/build_stage1.sh +++ b/build_stage1.sh @@ -22,7 +22,7 @@ inetutils bc kmod linux uinit net-tools libmnl libnfnetlink iptables iproute2 libedit openssh make mpfr gawk libmpc binutils gcc glibc -libunwind strace" +libunwind strace gdb" for p in $PACKAGES; do "$SCRIPT_DIR/build_stage1_package.sh" "$p" || exit 1 diff --git a/i486-stage1/gdb/DESCR b/i486-stage1/gdb/DESCR new file mode 100644 index 0000000..9b1b06d --- /dev/null +++ b/i486-stage1/gdb/DESCR @@ -0,0 +1,12 @@ +# prepare configure for cross-compilation +sed -i "/build/,/}/ s/.\/configure/.\/configure --host=$TARGET_ARCH --target=$TARGET_ARCH --build=$BUILD_ARCH/" PKGBUILD + +# disable python +sed -i "/makedepends=/s/python//" PKGBUILD +sed -i "/depends=/s/python//" PKGBUILD +sed -i "s@--with-python=/usr/bin/python3@--without-python@g" PKGBUILD + +# disable guile +sed -i "/makedepends=/s/guile2.0//" PKGBUILD +sed -i "/depends=/s/guile2.0//" PKGBUILD +sed -i "s@--with-guile=guile-2.0@--without-guile@g" PKGBUILD |