FS#60681 - makepkg breaks if arch happens to be set in the callers environment;

Attached to Project: Pacman
Opened by Jay O'Neill (fishcake) - Saturday, 03 November 2018, 04:02 GMT
Last edited by Andrew Gregory (andrewgregory) - Tuesday, 25 December 2018, 18:14 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Andrew Gregory (andrewgregory)
Eli Schwartz (eschwartz)
Architecture All
Severity Low
Priority Normal
Reported Version 5.1.1
Due in Version 5.1.2
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:


Steps to Reproduce:

$ export arch=linux-x86
$ git clone https://aur.archlinux.org/package-query.git
$ cd package-query && makepkg -s
==> ERROR: arch should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: conflicts_linux-x86_64: not found
==> ERROR: conflicts_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: depends_linux-x86_64: not found
==> ERROR: depends_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: makedepends_linux-x86_64: not found
==> ERROR: makedepends_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: md5sums_linux-x86_64: not found
==> ERROR: md5sums_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: optdepends_linux-x86_64: not found
==> ERROR: optdepends_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: provides_linux-x86_64: not found
==> ERROR: provides_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: replaces_linux-x86_64: not found
==> ERROR: replaces_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: sha1sums_linux-x86_64: not found
==> ERROR: sha1sums_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: sha224sums_linux-x86_64: not found
==> ERROR: sha224sums_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: sha256sums_linux-x86_64: not found
==> ERROR: sha256sums_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: sha384sums_linux-x86_64: not found
==> ERROR: sha384sums_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: sha512sums_linux-x86_64: not found
==> ERROR: sha512sums_linux-x86_64 should be an array
/usr/share/makepkg/util/util.sh: line 45: declare: source_linux-x86_64: not found
==> ERROR: source_linux-x86_64 should be an array

$ unset arch
$ makepkg -s /* all OK */


This task depends upon

Closed by  Andrew Gregory (andrewgregory)
Tuesday, 25 December 2018, 18:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  v5.1.2
Comment by Allan McRae (Allan) - Saturday, 03 November 2018, 04:38 GMT
Works for me... what version of pacman do you have?
Comment by Eli Schwartz (eschwartz) - Sunday, 04 November 2018, 00:42 GMT
This was already discovered and fixed in git, see https://git.archlinux.org/pacman.git/commit/?id=2bec380e108536f5e5f728ef66223ed3fabf5ab1

We should cherry-pick this to release/5.1.x, pinging agregory

Loading...