Package: dnsdist
Version: 1.8.2-3
Severity: wishlist
X-Debbugs-Cc: mnalis-debian...@voyager.hr

Dear Maintainer,

dnsdist has been available until Bullseye in Debian on 32-bit arhitectures, 
when support was removed and package was modified to depend on 
"architecture-is-64-bit".

That seems to be prompted by this upstream change (quoting from
https://blog.powerdns.com/2021/05/11/dnsdist-1-6-0-released):

"We would also like to take this opportunity to announce that we will stop
supporting systems using 32-bit time.  This includes 32-bit Linux platforms
like arm and i386 before kernel version 5.1."

and confirmed in Debian changelog
https://sources.debian.org/src/dnsdist/1.8.2-3/debian/changelog/#L97 
"* Note: upstream dropped support for archs with 32bit time_t values in 1.6.0."

And indeed, trying to compile Debian package on 32-bit armhf Debian Bookworm, 
it fails in configure step due to 32-bit time_t.

However, Debian Bookworm (and newer) include new glibc and kernel > 5.1
which allow for 64-bit time_t on 32-bit system like armhf, as documented
here:

https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html#index-_005fTIME_005fBITS

So, all that is needed for dnsdist on 32-bit platform (like my Rasperry Pi
armhf, where I tested that solution, and it compiles and runs just fine, 
both versions 1.7.3-2 and 1.8.2-3) is:

export DEB_CXXFLAGS_APPEND="-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64"
(and skipping dependency on architecture-is-64-bit, of course).

So, can we fix the build on 32-bit architectures that support 64-bit time_t? 
I'd love to see dnsdist back on armhf in Trixie!

Thank you for your consideration.

Reply via email to