Your message dated Tue, 19 Mar 2024 11:28:35 +0100
with message-id <b5992c9f-5ea7-4066-84dc-75074c5e4...@sfritsch.de>
and subject line Re: Bug#1031034: apr: Missing LFS support triggers FTBFS on 
other packages
has caused the Debian Bug report #1031034,
regarding apr: Missing LFS support triggers FTBFS on other packages
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1031034: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031034
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: apr
Tags: ftbfs, hppa, lfs
Version: 1.7.2-2

On 32-bit platforms it's necessary to compile programs and libraries
with Large File Support (LFS) in order to allow them to function correctly on
filesystems with > 2GB or 4GB size.
This can be solved by adding "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" to
the CFLAGS variable when compiling.

apr is currently missing this LFS support and as such it triggers
build-from-source errors in other packages like "subversion" or "devscripts"
on such 32-bit platforms.

There are various possibilities how to add those two defines,
e.g. adding
DEB_BUILD_MAINT_OPTIONS = future=+lfs

or by manually adding the output of
        getconf LFS_CFLAGS
to the CFLAGS variable. Please note, on 64-bit platforms the return value
will be empty which is correct as those flags are not needed on 64-bit arches.

Here is one suggested patch for apr from me:

diff -up ./debian/rules.org ./debian/rules
--- ./debian/rules.org  2023-02-10 16:20:07.911340588 +0000
+++ ./debian/rules      2023-02-10 15:54:17.992511554 +0000
@@ -11,6 +11,9 @@ DEB_HOST_ARCH_OS    ?= $(shell dpkg-arch
 DEB_HOST_ARCH_BITS  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)
 DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

+# Enable Large File Support (LFS) if necessary:  -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64
+CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell getconf LFS_CFLAGS)
+
 # The 'build' target needs special handling because there there is a directory
 # named 'build'.
 .PHONY: build

Please apply this (or another patch) to allow apr to build with LFS support.

Thanks,
Helge

--- End Message ---
--- Begin Message ---
version: 1.7.2-3.2

Am 20.06.23 um 20:27 schrieb Stefan Fritsch:
It seems a large transition will be needed for 64bit time_t, anyway. And glibc enforces _FILE_OFFSET_BITS=64 if _TIME_BITS=64 is set. apr should do both transitions at the same time.

It seems there won't be a transition for i386 but the whole point of i386 is running old binaries.

https://wiki.debian.org/ReleaseGoals/64bit-time


This is fixed now as apr has been rebuilt with 64bit time_t, which implies 64 bit ino_t.
--- End Message ---

Reply via email to