index : bootstrap32 | |
Archlinux32 bootstrap scripts | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | packages-i486-stage1/coreutils | 2 | ||||
-rw-r--r-- | packages-i486-stage1/libcap | 22 | ||||
-rw-r--r-- | packages-i486-stage1/pam | 27 | ||||
-rw-r--r-- | packages-i486-stage1/template | 7 | ||||
-rw-r--r-- | packages-i486-stage1/util-linux | 21 |
diff --git a/packages-i486-stage1/coreutils b/packages-i486-stage1/coreutils new file mode 100644 index 0000000..1995b5a --- /dev/null +++ b/packages-i486-stage1/coreutils @@ -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/libcap b/packages-i486-stage1/libcap new file mode 100644 index 0000000..c58fb49 --- /dev/null +++ b/packages-i486-stage1/libcap @@ -0,0 +1,22 @@ +# libcap is needed for coreutils +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@KERNEL_HEADERS=/usr/include@BUILD_CC=gcc CC=$TARGET_ARCH-gcc AR=$TARGET_ARCH-ar RANLIB=$TARGET_ARCH-ranlib KERNEL_HEADERS=/usr/include@" PKGBUILD + +# https://bugs.gentoo.org/604802 +# gperf_case_strncmp (register const char *s1, register const char *s2, register size_t n) +# gperf output is somehow broken for cross-compilation +# https://bugs.gentoo.org/attachment.cgi?id=462080 +# TODO: https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git/log/ +# wget -O libcap-2.25-gperf.patch 'https://604802.bugs.gentoo.org/attachment.cgi?id=462080' +# copy libcap-2.25-gperf.patch from i486 folder +sed -i 's@source=(@source=(libcap-2.25-gperf.patch @' PKGBUILD +sed -i "s@md5sums=(@md5sums=('SKIP' @" PKGBUILD +sed -i '2!N; /prepare() *{ *\n *cd/ a \ patch -Np1 < ${srcdir}/libcap-2.25-gperf.patch' PKGBUILD + +# TODO: mail this to https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git/log/ +# libcap needs pam just when building a test (which we cannot execute anyway) +# test.c:3:10: fatal error: security/pam_modules.h: No such file or directory +# #include <security/pam_modules.h> +# => add pam as dependency and build it as we need it anyway sooner or later diff --git a/packages-i486-stage1/pam b/packages-i486-stage1/pam new file mode 100644 index 0000000..24f403e --- /dev/null +++ b/packages-i486-stage1/pam @@ -0,0 +1,27 @@ +# pam is needed for libcap +SYSROOT_INSTALL=1 + +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD + +# no flex, w3m, docboox-xml/xsl (no docu and take flex from the host) +sed -i "s@makedepends=@#makedepends=@" PKGBUILD + +# disable NIS/YP +sed -i 's@./configure@./configure --disable-nis@g' PKGBUILD + +# unix_passwd.c:56:10: fatal error: rpcsvc/yp_prot.h: No such file or directory +# #include <rpcsvc/yp_prot.h> +# => pam-1.3.0-unix-passwd-no-yp.patch +sed -i 's@source=(@source=(pam-1.3.0-unix-passwd-no-yp.patch @' PKGBUILD +sed -i "s@md5sums=(@md5sums=('3f5edd685cdd2c0a2ca44bc6e75320d8' @" PKGBUILD +sed -i '/patch -Np/ a \ patch -Np1 -i "${srcdir}/pam-1.3.0-unix-passwd-no-yp.patch"' PKGBUILD + +# disable docu rebuilding +sed -i 's@./configure@./configure --disable-regenerate-docu@' PKGBUILD + +# no documentation built, so nothing to remove +sed -i '2!N; /# FS #40749\n \+rm/ s/rm/#rm/g' PKGBUILD + +# tons of tools needed to build documentation, we ommit the documentation right now +sed -i "s@makedepends@#makedepends@" PKGBUILD diff --git a/packages-i486-stage1/template b/packages-i486-stage1/template index 3d5d558..faa5d7f 100644 --- a/packages-i486-stage1/template +++ b/packages-i486-stage1/template @@ -15,3 +15,10 @@ NOPARALLEL_BUILD=0 # force the installation of the files in the package also into # the sysroot of the cross-compiler SYSROOT_INSTALL=0 + +# ADDITIONAL_INSTALL_PACKAGE = <package name> +# per default the package has the same name as the package file, +# some packages generate additional package files to install +# (for example util-linux also has a libutil-linux) +# Note: SYSROOT_INSTALL respects this too +ADDITIONAL_INSTALL_PACKAGE= diff --git a/packages-i486-stage1/util-linux b/packages-i486-stage1/util-linux new file mode 100644 index 0000000..7d4d941 --- /dev/null +++ b/packages-i486-stage1/util-linux @@ -0,0 +1,21 @@ +# libutil-linux is needed for e2fsprogs +SYSROOT_INSTALL=1 + +# TODO: install two packages libutil-linux util-linux +ADDITIONAL_INSTALL_PACKAGE=libutil-linux + +# prepare configure for cross-compilation +sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD + +# disable some dependencies on systemd, python, libcap-ng +sed -i 's@makedepends\(.*\)@#makedepends\1@g' PKGBUILD +sed -i 's@ \+depends\(.*\)@#depends\1@g' PKGBUILD + +# no python +sed -i 's@--with-python=3@--without-python \\@g' PKGBUILD + +# no systemd +sed -i '/--without-python/ a \ --without-systemd --without-systemdsystemunitdir' PKGBUILD +sed -i "s@\(sed.*\)@#\1@" PKGBUILD +# TODO: needed? +# sed -i '/ListenStream/ aRuntimeDirectory=uuidd' "$pkgdir/usr/lib/systemd/system/uuidd.socket" |