index : bootstrap32 | |
Archlinux32 bootstrap scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-02-01 17:33:40 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-02-01 17:33:40 +0100 |
commit | d4d48845954a13a311af53d2a881cedee0e7e27e (patch) | |
tree | 555e444eeaeb27f1bdd353e4146bc8fb2596d593 /packages-i486-stage1 | |
parent | 854da672db23e3a73ec8c006a042b1b3334e4b63 (diff) |
-rw-r--r-- | packages-i486-stage1/bzip2 | 6 | ||||
-rw-r--r-- | packages-i486-stage1/curl | 25 | ||||
-rw-r--r-- | packages-i486-stage1/e2fsprogs | 2 | ||||
-rw-r--r-- | packages-i486-stage1/expat | 8 | ||||
-rw-r--r-- | packages-i486-stage1/gzip | 5 | ||||
-rw-r--r-- | packages-i486-stage1/less | 3 | ||||
-rw-r--r-- | packages-i486-stage1/libarchive | 5 | ||||
-rw-r--r-- | packages-i486-stage1/lz4 | 12 | ||||
-rw-r--r-- | packages-i486-stage1/pcre | 5 | ||||
-rw-r--r-- | packages-i486-stage1/tar | 7 | ||||
-rw-r--r-- | packages-i486-stage1/util-linux | 2 | ||||
-rw-r--r-- | packages-i486-stage1/xz | 8 |
diff --git a/packages-i486-stage1/bzip2 b/packages-i486-stage1/bzip2 new file mode 100644 index 0000000..9329744 --- /dev/null +++ b/packages-i486-stage1/bzip2 @@ -0,0 +1,6 @@ +# bzip2 is needed for libarchive +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@\( \+\)make@\1make CC=$TARGET_ARCH-cc RANLIB=$TARGET_ARCH-ranlib AR=$TARGET_ARCH-ar@g" PKGBUILD + diff --git a/packages-i486-stage1/curl b/packages-i486-stage1/curl new file mode 100644 index 0000000..1c444d8 --- /dev/null +++ b/packages-i486-stage1/curl @@ -0,0 +1,25 @@ +# curl is needed for pacman +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD + +# build with minimal features, we don't need support for those protocols +# in stage1, basic http(s), ftp is enough (other protocols draw in quite +# some dependencies otherwise) +sed -i "/depends=/s/'krb5'//" PKGBUILD +sed -i "/depends=/s/'libssh2'//" PKGBUILD +sed -i '/--prefix=\/usr/ a \ --without-libssh2 \\' PKGBUILD +sed -i "/depends=/s/'libpsl'//" PKGBUILD +sed -i '/--prefix=\/usr/ a \ --without-libpsl \\' PKGBUILD +sed -i "/depends=/s/'libnghttp2'//" PKGBUILD +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 +# TODO: is this LE/BE-safe? +# 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/e2fsprogs b/packages-i486-stage1/e2fsprogs new file mode 100644 index 0000000..1995b5a --- /dev/null +++ b/packages-i486-stage1/e2fsprogs @@ -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/expat b/packages-i486-stage1/expat new file mode 100644 index 0000000..e8c1341 --- /dev/null +++ b/packages-i486-stage1/expat @@ -0,0 +1,8 @@ +# expat is needed for libarchive +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD + +# TODO: ./configure: line 17309: program: command not found +# most likely a harmless error when probing for some documentation build tool diff --git a/packages-i486-stage1/gzip b/packages-i486-stage1/gzip new file mode 100644 index 0000000..2a024e0 --- /dev/null +++ b/packages-i486-stage1/gzip @@ -0,0 +1,5 @@ +# gzip is needed for libarchive, (z)less +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD diff --git a/packages-i486-stage1/less b/packages-i486-stage1/less new file mode 100644 index 0000000..a4c1acd --- /dev/null +++ b/packages-i486-stage1/less @@ -0,0 +1,3 @@ +# prepare configure for cross-compilation +sed -i "s@sh configure@sh configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD + diff --git a/packages-i486-stage1/libarchive b/packages-i486-stage1/libarchive new file mode 100644 index 0000000..0a42942 --- /dev/null +++ b/packages-i486-stage1/libarchive @@ -0,0 +1,5 @@ +# libarchive is needed for pacman +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD diff --git a/packages-i486-stage1/lz4 b/packages-i486-stage1/lz4 new file mode 100644 index 0000000..2dae4e8 --- /dev/null +++ b/packages-i486-stage1/lz4 @@ -0,0 +1,12 @@ +# lz4 is needed for libarchive +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@\( \+\)make@\1make CC=$TARGET_ARCH-cc RANLIB=$TARGET_ARCH-ranlib AR=$TARGET_ARCH-ar@g" PKGBUILD + +# lz4 has a git makedepends, diffutils for unit tests +sed -i 's@makedepends\(.*\)@#makedepends\1@g' PKGBUILD +sed -i 's@checkdepends\(.*\)@#checkdepends\1@g' PKGBUILD + + + diff --git a/packages-i486-stage1/pcre b/packages-i486-stage1/pcre new file mode 100644 index 0000000..8445c25 --- /dev/null +++ b/packages-i486-stage1/pcre @@ -0,0 +1,5 @@ +# pcre is needed for grep +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD diff --git a/packages-i486-stage1/tar b/packages-i486-stage1/tar new file mode 100644 index 0000000..420e179 --- /dev/null +++ b/packages-i486-stage1/tar @@ -0,0 +1,7 @@ +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD + +# checking whether mknod can create fifo without root privileges... configure: error: in `/build/tar/src/tar-1.29': +# configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check) +# See `config.log' for more details +sed -i 's@./configure@FORCE_UNSAFE_CONFIGURE=1 ./configure@g' PKGBUILD diff --git a/packages-i486-stage1/util-linux b/packages-i486-stage1/util-linux index 7d4d941..38e4b24 100644 --- a/packages-i486-stage1/util-linux +++ b/packages-i486-stage1/util-linux @@ -1,7 +1,7 @@ # libutil-linux is needed for e2fsprogs SYSROOT_INSTALL=1 -# TODO: install two packages libutil-linux util-linux +# install two packages: libutil-linux and util-linux ADDITIONAL_INSTALL_PACKAGE=libutil-linux # prepare configure for cross-compilation diff --git a/packages-i486-stage1/xz b/packages-i486-stage1/xz new file mode 100644 index 0000000..6b043fe --- /dev/null +++ b/packages-i486-stage1/xz @@ -0,0 +1,8 @@ +# xz is needed for libarchive +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD + +# with gcc 7.2 we get new errors, disable termination on warnings +sed -i 's@--enable-werror@--disable-werror@g' PKGBUILD |