summaryrefslogtreecommitdiff
path: root/packages-i486-stage1/libtirpc
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-02-01 11:43:22 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-02-01 11:43:22 +0100
commitab6c622e801c15627beac5cdc0e0f6d9270316aa (patch)
treeb16f9d97c95733a23d5d2780735e339189417b2a /packages-i486-stage1/libtirpc
parent01b9f1fb2e19f0d587bdbe77d9861d62de4dcd8f (diff)
downloadbootstrap32-ab6c622e801c15627beac5cdc0e0f6d9270316aa.tar.xz
added package patch support
building up to libtirpc
Diffstat (limited to 'packages-i486-stage1/libtirpc')
-rw-r--r--packages-i486-stage1/libtirpc19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages-i486-stage1/libtirpc b/packages-i486-stage1/libtirpc
new file mode 100644
index 0000000..58b2b4f
--- /dev/null
+++ b/packages-i486-stage1/libtirpc
@@ -0,0 +1,19 @@
+# libtirpc is needed by pam
+SYSROOT_INSTALL=1
+
+# prepare configure for cross-compilation
+sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD
+
+# disable Kerberos
+sed -i "/depends=/s/'krb5'//" PKGBUILD
+
+# gssapi seems also to be a dependency, not in PKBUILD, disable it
+sed -i 's@./configure@./configure --disable-gssapi@g' PKGBUILD
+
+# doens't really like to be cross-compiled..
+# xdr_sizeof.c:93:13: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
+# => https://bugzilla.redhat.com/show_bug.cgi?id=1482063
+# => libtirpc-1.0.2-stdint.patch
+sed -i 's@source=(@source=(libtirpc-1.0.2-stdint.patch @' PKGBUILD
+sed -i "s@sha1sums=(@sha1sums=('0322752c231884c5434b4e56a3c376d7bfedf9d9' @" PKGBUILD
+sed -i '/build()/ i \ prepare() { \n\ cd ${pkgname}-${pkgver}\n\ patch -Np1 < ${srcdir}/libtirpc-1.0.2-stdint.patch \n }' PKGBUILD