#998080 libglib2.0-doc: package is marked 'Arch: all' but has different contents if built on 32-bit or 64-bit host

#998080#5
Date:
2021-10-29 20:53:29 UTC
From:
To:
Dear Maintainer,

While re-building glib2.0 I noticed that the generated libglib2.0-doc was
different depending on whether it was built on a 32-bit system or a 64-bit one.

This is due to the documentation quoting C code relying on different base types
('long' vs. 'int', or 'long long' vs. 'long') or macros ('GUINT64_TO_BE' vs.
'GUINT32_TO_BE') depending on the target arch's register width.

As a result, libglib2.0-doc contains erroneous information on 32-bit
architectures, and might benefit from being marked 'Arch: any'.

Attached is a diff showing the differences between a package generated on arm64
and one generated on armhf. I assume other differences would result from a
build performed on a big-endian machine but didn't had the opportunity to
verify this assumption so far.

Best regards,
Arnaud