FS#50838 - [pacman] makepkg generates wrong checksums with per-arch sources
Attached to Project:
Arch Linux
Opened by Robin McCorkell (Xenopathic) - Monday, 19 September 2016, 19:59 GMT
Last edited by Dave Reisner (falconindy) - Monday, 19 September 2016, 20:18 GMT
Opened by Robin McCorkell (Xenopathic) - Monday, 19 September 2016, 19:59 GMT
Last edited by Dave Reisner (falconindy) - Monday, 19 September 2016, 20:18 GMT
|
Details
With a PKGBUILD that specifies sources for specific
architectures, where the source files are renamed to the
same thing (e.g.
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=cfssl), generating checksums with `makepkg -g` will print the
same checksum for different architectures, where the source
files are renamed to be the same thing. Since it's very
useful to rename per-arch sources to a common name,
generation of checksums should work correctly in this
circumstance.
Discovered with pacman 5.0.4-1. Quick reproducible PKGBUILD fragment: sources_i686=(foo::http://path/to/some/file.i686) sources_amd64=(foo::http://path/to/some/file.amd64) Notice the same hash is printed in both *sums_i686 and *sums_amd64 with `makepkg -g`, despite the actual files being different. |
This task depends upon
Closed by Dave Reisner (falconindy)
Monday, 19 September 2016, 20:18 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#43714
Monday, 19 September 2016, 20:18 GMT
Reason for closing: Duplicate
Additional comments about closing:
source_i686=(foo::http://path/to/some/file.i686)
source_x86_64=(foo::http://path/to/some/file.amd64)