Source: libselinux
Version: 3.7-3
Tags: ftbfs
User: helm...@debian.org
Usertags: rebootstrap

libselinux fails to build from source on musl-linux-any, because lstat64
is undeclared. For using this symbol one has to export a feature test
macro such as -D_LARGEFILE64_SOURCE. It happens to work on glibc by
accident. I'm attaching a patch for your convenience.

Helmut
--- a/debian/rules
+++ b/debian/rules
@@ -28,6 +28,11 @@

 BUILT_USING=$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W "libsepol-dev")

+ifeq ($(DEB_HOST_ARCH_BITS),32)
+# Use of lstat64 requires this macro.
+export DEB_CPPFLAGS_MAINT_APPEND += -D_LARGEFILE64_SOURCE
+endif
+
 # Upstream recommends using this flag
 export DEB_CFLAGS_MAINT_APPEND = -fno-semantic-interposition
 ## The build system doesn't use CPPFLAGS, pass them to CFLAGS to enable the

Reply via email to