index : bootstrap32 | |
Archlinux32 bootstrap scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-02-01 18:34:42 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-02-01 18:34:42 +0100 |
commit | 655acd3a233b60c5618d0239e9a716865c0b595a (patch) | |
tree | b37945e3e9e882a72cf389e1f1ef9da667201b26 /packages-i486-stage1 | |
parent | d4d48845954a13a311af53d2a881cedee0e7e27e (diff) |
-rw-r--r-- | packages-i486-stage1/curl | 5 | ||||
-rw-r--r-- | packages-i486-stage1/diffutils | 6 | ||||
-rw-r--r-- | packages-i486-stage1/ed | 5 | ||||
-rw-r--r-- | packages-i486-stage1/file | 5 | ||||
-rw-r--r-- | packages-i486-stage1/findutils | 2 | ||||
-rw-r--r-- | packages-i486-stage1/grep | 2 | ||||
-rw-r--r-- | packages-i486-stage1/kbd | 5 | ||||
-rw-r--r-- | packages-i486-stage1/patch | 2 | ||||
-rw-r--r-- | packages-i486-stage1/procps-ng | 14 | ||||
-rw-r--r-- | packages-i486-stage1/sed | 5 | ||||
-rw-r--r-- | packages-i486-stage1/shadow | 12 | ||||
-rw-r--r-- | packages-i486-stage1/texinfo | 5 |
diff --git a/packages-i486-stage1/curl b/packages-i486-stage1/curl index 1c444d8..88b092f 100644 --- a/packages-i486-stage1/curl +++ b/packages-i486-stage1/curl @@ -17,9 +17,10 @@ sed -i '/--prefix=\/usr/ a \ --without-nghttp2 \\' PKGBUILD sed -i '/--prefix=\/usr/ a \ --without-gssapi \\' PKGBUILD # no ca-certificates, needs tons of tools to build (like p11-kit), so we -# create a fake one with certificates from the host +# create a fake one with certificates from the host (the ca crts from +# ca-certificates-utils should be enough actually) # TODO: is this LE/BE-safe? -# sed -i "/depends=/s/'ca-certificates'//" PKGBUILD +sed -i "/depends=/s/'ca-certificates'//" PKGBUILD # zsh, perl is used to create a completion file for curl and zsh sed -i '/--prefix=\/usr/ a \ --without-zsh-functions-dir \\' PKGBUILD diff --git a/packages-i486-stage1/diffutils b/packages-i486-stage1/diffutils new file mode 100644 index 0000000..57fb376 --- /dev/null +++ b/packages-i486-stage1/diffutils @@ -0,0 +1,6 @@ +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD + +# http://lists.busybox.net/pipermail/buildroot/2017-September/203435.html +sed -i '/.\/configure/ i \ echo "gl_cv_func_getopt_gnu=yes" > config.cache' PKGBUILD +sed -i 's@./configure@./configure --cache-file=config.cache@g' PKGBUILD diff --git a/packages-i486-stage1/ed b/packages-i486-stage1/ed new file mode 100644 index 0000000..cdcaa7b --- /dev/null +++ b/packages-i486-stage1/ed @@ -0,0 +1,5 @@ +# ed is needed for patch +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@./configure@./configure CC=$TARGET_ARCH-gcc@" PKGBUILD diff --git a/packages-i486-stage1/file b/packages-i486-stage1/file new file mode 100644 index 0000000..31c2965 --- /dev/null +++ b/packages-i486-stage1/file @@ -0,0 +1,5 @@ +# libmagic is needed for ? (TODO) +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD diff --git a/packages-i486-stage1/findutils b/packages-i486-stage1/findutils new file mode 100644 index 0000000..8ed7de8 --- /dev/null +++ b/packages-i486-stage1/findutils @@ -0,0 +1,2 @@ +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD diff --git a/packages-i486-stage1/grep b/packages-i486-stage1/grep new file mode 100644 index 0000000..8ed7de8 --- /dev/null +++ b/packages-i486-stage1/grep @@ -0,0 +1,2 @@ +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD diff --git a/packages-i486-stage1/kbd b/packages-i486-stage1/kbd new file mode 100644 index 0000000..2e3bcfb --- /dev/null +++ b/packages-i486-stage1/kbd @@ -0,0 +1,5 @@ +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD + +# no unit testing (using C 'check') +sed -i 's@makedepends\(.*\)@#makedepends\1@g' PKGBUILD diff --git a/packages-i486-stage1/patch b/packages-i486-stage1/patch new file mode 100644 index 0000000..1995b5a --- /dev/null +++ b/packages-i486-stage1/patch @@ -0,0 +1,2 @@ +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD diff --git a/packages-i486-stage1/procps-ng b/packages-i486-stage1/procps-ng new file mode 100644 index 0000000..26d5bff --- /dev/null +++ b/packages-i486-stage1/procps-ng @@ -0,0 +1,14 @@ +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD + +# no systemd for now +sed -i "/makedepends=/s/'systemd'//" PKGBUILD +sed -i "/depends=/s/'libsystemd'//" PKGBUILD +sed -i 's@--with-systemd@--without-systemd@' PKGBUILD + +# do not use the stub rpl_malloc/rpl_realloc functions (they don't cross-compile +# and we know that glibc fixed those problems long time ago) +sed -i '2!N; /prepare()/ a \ sed -i "s/AC_FUNC_MALLOC/dnl AC_FUNC_MALLOC/" configure.ac \ + sed -i "s/AC_FUNC_REALLOC/dnl AC_FUNC_RELLOC/" configure.ac \ + autoconf +' PKGBUILD diff --git a/packages-i486-stage1/sed b/packages-i486-stage1/sed new file mode 100644 index 0000000..e0c5138 --- /dev/null +++ b/packages-i486-stage1/sed @@ -0,0 +1,5 @@ +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD + +# gettext: take the one from the host +sed -i 's@makedepends\(.*\)@#makedepends\1@g' PKGBUILD diff --git a/packages-i486-stage1/shadow b/packages-i486-stage1/shadow new file mode 100644 index 0000000..7c71673 --- /dev/null +++ b/packages-i486-stage1/shadow @@ -0,0 +1,12 @@ +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD + +# remove docu and git dependencies +sed -i 's@makedepends\(.*\)@#makedepends\1@g' PKGBUILD + +# building man pages needs xml2po, disable it +sed -i 's@--enable-man@--disable-man@g' PKGBUILD +sed -i '/find/,/-delete/{s/\(.*\)/#\1/g}' PKGBUILD +sed -i '/rmdir/,/man8/{s/\(.*\)/#\1/g}' PKGBUILD +sed -i 's/^#}/}/' PKGBUILD +sed -i '2!N; /prepare()/ a \ sed -i "/SUBDIRS/s/man//g" Makefile.am' PKGBUILD diff --git a/packages-i486-stage1/texinfo b/packages-i486-stage1/texinfo new file mode 100644 index 0000000..8d6ff65 --- /dev/null +++ b/packages-i486-stage1/texinfo @@ -0,0 +1,5 @@ +# texinfo is needed to build grep and other tools +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD |