Unreproducible build due to embedded hostname
Task Info (Flyspray) | |
---|---|
Opened By | Iyan (iyanmv) |
Task ID | 80268 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-11-16 11:38:44 UTC |
Status | Assigned |
Assignee | Anatol Pomozov (anatolik) |
Details
Description:
apr is marked as not reproducible in the official rebuilderd instance 1. The status can be confirmed locally using archlinux-repro:
curl -OL https://archive.archlinux.org/packages/a/apr/apr-1.7.4-1-x86_64.pkg.tar.zst
repro -d apr-1.7.4-1-x86_64.pkg.tar.zst
The output of diffoscope 2 clearly shows that the unreproducibility is caused by the hostname being embedded in /usr/share/apr-1/build/libtool.
Since this information is not useful in the first place, the provided patch simply removes that line, as has been done previously in other projects to achieve r-b. After that, the package becomes reproducible.
This can be verified also with archlinux-repro passing the modified PKGBUILD, for example:
extra-x86_64-build
repro -d -f apr-1.7.4-2-x86_64.pkg.tar.zst