FS#48340 - [makepkg] no longer allows packages with only architecture-dependent sources

Attached to Project: Pacman
Opened by (Det) - Thursday, 25 February 2016, 21:24 GMT
Last edited by Allan McRae (Allan) - Wednesday, 02 March 2016, 03:47 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 5.0.1
Due in Version 5.0.2
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Since makepkg 5.0.1, PKGBUILDs with only architecture-dependent sources are considered invalid (https://projects.archlinux.org/pacman.git/commit/?id=3cb1669e07106e9108976a76b7d2f37e659bce6c).

E.g.:

source=()
source_i686=('https://sources.archlinux.org/other/pacman/sha1sums')
source_x86_64=('https://sources.archlinux.org/other/pacman/sha1sums')
md5sums=()
md5sums_i686=('SKIP')
md5sums_x86_64=('SKIP')

..will work, but:

source_i686=('https://sources.archlinux.org/other/pacman/sha1sums')
source_x86_64=('https://sources.archlinux.org/other/pacman/sha1sums')
md5sums_i686=('SKIP')
md5sums_x86_64=('SKIP')

..produces:

/usr/share/makepkg/util/util.sh: line 49: declare: md5sums: not found
==> ERROR: md5sums_i686 should be an array
/usr/share/makepkg/util/util.sh: line 49: declare: source: not found
==> ERROR: source_i686 should be an array
/usr/share/makepkg/util/util.sh: line 49: declare: md5sums: not found
==> ERROR: md5sums_x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 49: d
This task depends upon

Closed by  Allan McRae (Allan)
Wednesday, 02 March 2016, 03:47 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit d4f499f5
Comment by Allan McRae (Allan) - Friday, 26 February 2016, 05:04 GMT Comment by Allan McRae (Allan) - Friday, 26 February 2016, 05:17 GMT
I also pushed pacman-5.0.1-2 to the Arch repos including this patch.
Comment by (Det) - Friday, 26 February 2016, 09:50 GMT
Nice! >:)

I'm confirming, it works.

Loading...