Thanks for working on this!  It is a bit delicate issue, and I've been
unable to find the right spell to fix things.  Could you propose this as
a Salsa merge request, or at least a concrete patch?  It would indeed be
nice to get this fixed and uploaded.

/Simon

Chen Shengqi <ha...@debian.org> writes:

> (Resend to BTS only, since my last mail got rejected.)
>
> -----Original Message-----
> To: 1069...@bugs.debian.org; Andrew Bartlett <abart...@samba.org>; Lucas 
> Nussbaum <lu...@debian.org>; Luca Boccassi <bl...@debian.org>; Simon 
> Josefsson <si...@josefsson.org>; Helge Deller <del...@gmx.de>
>
> Hi all,
>
> socket-wrapper still fails its tests on armel and armhf, also blocking its
> (and all dependencies') migration to testing. Since trixie freeze is coming
> soon, I think we should try to fix this soon.
>
> The failed autopkgtest [1] (take test_swrap_unit as example) actually passes 
> on
> build [2]. The offending -D_FILE_OFFSET_BITS=64 (and friends) in the command 
> line
> comes from upstream tests/CMakeLists.txt:
>
> if (CMAKE_SIZEOF_VOID_P EQUAL 4)
>     execute_process(
>         COMMAND getconf LFS_CFLAGS
>         OUTPUT_VARIABLE GETCONF_LFS_CFLAGS
>         OUTPUT_STRIP_TRAILING_WHITESPACE)
>     # Create a list from the string
>     set(LFS_CFLAGS)
>     if (GETCONF_LFS_CFLAGS)
>         string(REPLACE " " ";" LFS_CFLAGS ${GETCONF_LFS_CFLAGS})
>     endif()
>     message(STATUS "Enabling large file support for tests: ${LFS_CFLAGS}")
> endif()
>
> And it is inverted (to be confirmed) by -U_FILE_OFFSET_BITS set by 
> dpkg-buildflags
> when abi=-time64 is specified when building. They are not set any more when
> running autopkgtest, so things would go south.
>
> I would recommend using consistent build flags in autopkgtest script, i.e., 
> adding
> something looking like in d/tests/tests:
>
> export DEB_BUILD_MAINT_OPTIONS=abi=-time64
> export CFLAGS=$(dpkg-buildflags --get CFLAGS)
> export CPPFLAGS=$(dpkg-buildflags --get CPPFLAGS)
>
> [1]: https://ci.debian.net/packages/s/socket-wrapper/testing/armhf/57471265/
> [2]: 
> https://buildd.debian.org/status/fetch.php?pkg=socket-wrapper&arch=armhf&ver=1.4.3-2&stamp=1730834460&raw=0

Attachment: signature.asc
Description: PGP signature

Reply via email to