Hi David & Andreas,

On 1/28/23 12:10, David Prévot wrote:
Le Wed, Jan 18, 2023 at 01:24:37AM +0100, Helge Deller a écrit :
On Sat, 14 Jan 2023 20:38:38 +0100 Andreas Henriksson <andr...@fatal.se> wrote:
Here's a slightly different patch to implement basically the same thing

Unfortunately, even if both patches allow me to build tar on i386, they
also both lead to an FTBFS on amd64.

That's right. glibc headers used by configure complains then that _TIME_BITS=64 
can only be
used if FILE_OFFSET_BITS=64 is defined too (which isn't the case on amd64
as it's not needed there).

So, please use this hunk instead. It compiles for me on amd64 and 32-bit hppa.
------------
export DEB_BUILD_MAINT_OPTIONS = future=+lfs
export DEB_CFLAGS_MAINT_APPEND = -Wall -Wno-analyzer-null-argument
ifneq ($(shell dpkg-architecture -qDEB_TARGET_ARCH_BITS),64)
export DEB_CPPFLAGS_MAINT_APPEND = -D_TIME_BITS=64
endif

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
-----------
Helge

Reply via email to