Hi Gregor,

On Sun, 2025-10-19 at 15:29 +0200, Gregor Riepl wrote:
> > Thanks for verifying this. Looking closer at the texlive-bin package, it 
> > actually contains a
> > large patch which modifies the zziplib package, see:
> > 
> > https://sources.debian.org/src/texlive-bin/2025.20250727.75242%2Bds-4/debian/patches/zziplib.diff
> > 
> > I have extracted the zziplib-aligned-access.m4 m4 script from there and I'm 
> > attaching it.
> > 
> > Can you give it a try?
> 
> This looks more promising, but still no dice (after renaming 
> ZZIPLIB_CHECK_ALIGNED_ACCESS to AX_CHECK_ALIGNED_ACCESS_REQUIRED):
> 
> checking if pointers to integers require aligned access... no
> 
> I guess that makes sense, the fourth argument of AC_RUN_IFELSE() will only 
> execute when cross compiling[1].
> While the script is certainly cleaner this way, it will still fail for cases 
> where the test script can't
> detect the alignment behavior of the host CPU.
> 
> I really think the only fix here is to skip the AC_RUN_IFELSE for CPU types 
> that are known to always
> require aligned access (such as sparc and sparc64). Or write a better test 
> program that works on sparc.

OK, I'll have a look myself. I mean, if it works for texlive-bin, I don't see 
why it shouldn't work
for xdelta3. I want to avoid hacking a custom solution when there is a commonly 
adopted m4 script.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to