lz4 rebootstrap fix for hurd-any
Hello,
lz4 currently FTBFS in the hurd-any rebootstraps.
Here is a fix, also available in my tree
git@salsa.debian.org:sthibault/rebootstrap.git
as 53c22baa416701a0384ea2a3e225d2740f57af1c
Samuel
commit 53c22baa416701a0384ea2a3e225d2740f57af1c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Wed Jul 9 10:41:33 2025 +0200
hurd: Fix lz4 build
diff --git a/bootstrap.sh b/bootstrap.sh
index 8b305d1..467f3cd 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -3027,6 +3027,23 @@ EOF
add_automatic lmdb
add_automatic lz4
+patch_lz4() {
+ dpkg-architecture "-a$HOST_ARCH" -ihurd-any || return 0
+ echo "Fix link against libpthread #1108995"
+ drop_privs patch -p0 <<'EOF'
+--- debian/rules.original 2025-07-08 21:29:52.253436659 +0200
++++ debian/rules 2025-07-08 21:29:54.483442572 +0200
+@@ -5,7 +5,7 @@
+ CPPFLAGS:= $(shell dpkg-buildflags --get CPPFLAGS) -fvisibility=hidden -DLZ4F_PUBLISH_STATIC_FUNCTIONS -DLZ4IO_MULTITHREAD
+ CFLAGS:= $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
+ CXXFLAGS:= $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
+-LDFLAGS:= $(shell dpkg-buildflags --get LDFLAGS)
++LDFLAGS:= $(shell dpkg-buildflags --get LDFLAGS) -pthread
+ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+ PREFIX:= /usr
+EOF
+}
add_automatic man-db
add_automatic mawk
add_automatic mpclib3
Reply to: