summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-03-08 11:11:37 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-03-08 11:11:37 +0100
commita1b70efd48ce85dbd65388fa7c397b5380c1224f (patch)
treee0bbcf1bb6fad1c5a9c22bce60c3f79b4010f6aa
parentbea8a613f584c6d460103775c2752941e811459f (diff)
downloadbootstrap32-a1b70efd48ce85dbd65388fa7c397b5380c1224f.tar.xz
openldap in stage3 works
-rwxr-xr-xbuild_stage3.sh6
-rw-r--r--i486-stage3/openldap/DESCR6
2 files changed, 8 insertions, 4 deletions
diff --git a/build_stage3.sh b/build_stage3.sh
index 7e45b65..7107510 100755
--- a/build_stage3.sh
+++ b/build_stage3.sh
@@ -52,6 +52,7 @@ sysfsutils iputils
vi
which
xfsprogs
+openldap
"
#~ <net-tools> <libmnl> <libnfnetlink> iptables iproute2
@@ -69,11 +70,8 @@ xfsprogs
#~ gdb: python guile2.0
# wait for posix threads, gcc toolchain rebuild
+# HERE TODO: libraries must be installed before the server overlays, why are they not?
# openldap:
-#/usr/lib/gcc/i486-pc-linux-gnu/7.3.0/ld: cannot find -lldap_r
-#collect2: error: ld returned 1 exit status
-#libtool: install: error: relink `accesslog.la' with the above command before installing it
-#make[2]: Leaving directory '/build/openldap/src/openldap-2.4.45/servers/slapd/overlays'
# building toolchain (gcc): again, lobtool problems
#/usr/lib/gcc/i486-pc-linux-gnu/7.3.0/ld: cannot find -lquadmath
diff --git a/i486-stage3/openldap/DESCR b/i486-stage3/openldap/DESCR
new file mode 100644
index 0000000..bbf06e2
--- /dev/null
+++ b/i486-stage3/openldap/DESCR
@@ -0,0 +1,6 @@
+# FS#57749: relink against missing libraries in split package
+sed -i 's/for dir in clients servers/for dir in libraries clients servers/' PKGBUILD
+sed -i '/usr\/share\/man\/man5\/slapo-lastbind.5/ a rm -rf ${pkgdir}/usr/{lib,include,man3}' PKGBUILD
+
+# we actually need only libldap, but installing openldap doesn't harm us
+ADDITIONAL_INSTALL_PACKAGE=libldap