Not suiteable for upstream, but get's rid of the nasty redefines for: from ./tif_config.h:10: /usr/include/sys/feature_tests.h:250: note: this is the location of the previous definition 250 | #define _FILE_OFFSET_BITS 32 If compiled for 32 bits. Trick is, not do it where it's wrong defined, because later on the configure script will bail out at some cpp test. So we do the sed right before all config files are processed. --- tiff-4.7.2/configure.orig 2026-06-27 15:59:57.000000000 +0200 +++ tiff-4.7.2/configure 2026-07-04 21:00:05.919422900 +0200 @@ -22470,6 +22470,10 @@ fi +case $CFLAGS in + *32*) /usr/gnu/bin/sed -i -e 's@_FILE_OFFSET_BITS 64@_FILE_OFFSET_BITS 32@' confdefs.h +esac + for python in python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python3 python; do for ac_prog in $python do