Bug#977432: kyua: reproducible builds: Embeds architecture of running kernel

Vagrant Cascadian vagrant at reproducible-builds.org
Tue Dec 15 01:56:54 GMT 2020


Source: kyua
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: cpu
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

When building for armhf and running an arm64 kernel, the configure
script uses "uname -m" to determine the architecture for KYUA_PLATFORM,
but this introduces variations depending on the kernel used to perform
the build:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/armhf/diffoscope-results/kyua.html

  632 ··0x000837d0·61726d76·376c0000·556e7375·70706f72·armv7l..Unsuppor
  632 ··0x000837d0·61617263·68363400·556e7375·70706f72·aarch64.Unsuppo


While this is often worked around in chroots by running with a "linux32"
personality, using the running kernel is not the correct way to
determine the architecture.

The attached patch fixes this by passing KYUA_PLATFORM to configure from
debian/rules.


An alternate fix might be to determine the architecture from the
compiler or other userspace utility that is independent from the kernel,
which might be more appropriate to submit upstream.


Thanks for maintaining kyua!


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Pass-KYUA_PLATFORM-to-configure.patch
Type: text/x-diff
Size: 931 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20201214/650064ba/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20201214/650064ba/attachment.sig>


More information about the Reproducible-bugs mailing list