Since socket_wrapper is a low level library which
wraps some syscalls, it should not be part of the time64
transition which we did for some 32-bit architectures
in debian.
The patch below fixes the build and runtime issues by
simply disabling the transition. It simply prevents that
"-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64"
gets added.
I've tested this patch on an armhf debian porterbox and on
a hppa 32-bit porterbox. Both machines were able to build
the package including successful testcase.
Please install.
Helge
diff -up ./debian/control.bak ./debian/control
--- ./debian/control.bak 2024-11-05 18:12:48.896672644 +0000
+++ ./debian/control 2024-11-05 18:12:59.640705493 +0000
@@ -12,8 +12,7 @@ Build-Depends:
cmake (>= 2.8.8-3~),
debhelper-compat (= 13),
dh-buildinfo,
- libcmocka-dev,
- not-supported-on [armel armhf],
+ libcmocka-dev
Standards-Version: 4.7.0
Vcs-Git: https://salsa.debian.org/sssd-team/socket-wrapper.git
Vcs-Browser: https://salsa.debian.org/sssd-team/socket-wrapper
diff -up ./debian/rules.bak ./debian/rules
--- ./debian/rules.bak 2024-11-05 18:13:09.856736732 +0000
+++ ./debian/rules 2024-11-05 18:13:22.880776562 +0000
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all abi=-time64
override_dh_auto_configure:
dh_auto_configure -- -DUNIT_TESTING=1