You are not logged in.
Hey guys,
For some time now (a few months for sure, I hoped some update would repair it), my makepkg won't work. When I run it on any PKGBUILD it says:
==> ERROR: arch should be an array I didn't change any of the PKGBUILDs. And today I downloaded fresh arch install and made live usb to reinstall base and base-devel packages just to be sure. Didn't work.
This is currently running on my laptop:
Linux alek 4.18.5-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 24 12:48:58 UTC 2018 x86_64 GNU/Linux This is makepkg.conf https://pastebin.com/2XhzQaAC/
Btw, pacman works correctly.
Thanks
Last edited by aleksandar2810 (2018-09-04 19:34:38)
Offline
Please post a PKGBUILD you have the issue with and the full output of makepkg.
Offline
Moving to AUR Issues...
Offline
The error is pretty clear. The "arch" variable in the PKGBUILD has to be a bash array.
Offline
Yes, sorry...
It's aurman's PKGBUILD https://pastebin.com/9Ews0zPi. (Also yay and proton)
Whole output I get in console is what I posted, and it's:
==> ERROR: arch should be an array Offline
In that directory what is the output of the following?
type makepkg
which makepkg
cat PKGBUILD
bash -x /usr/bin/makepkgOffline
type makepkg:
makepkg is hashed (/usr/bin/makepkg) which makepkg:
/usr/bin/makepkg cat PKGBUILD:
https://pastebin.com/3hEamhMG
bash -x /usr/bin/makepkg:
https://pastebin.com/kXPzBVFD
Offline
Well, for some reason bash -x makepkg claims that the `arch=('any')` is not what it's seeing, instead it sees `export arch='x86_64'`
+ [[ declare -x arch="x86_64" == declare\ -*([[:alnum:]])a*([[:alnum:]])\ * ]]
+ return 1
++ gettext '%s should be an array'
+ error '%s should be an array' archSooooo.
Where is that getting set? I'm guessing in your bashrc or something.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Also, this error is technically because of a bug in makepkg, see https://lists.archlinux.org/pipermail/p … 22807.html
That being said, it's wrong to export such generic variables.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Thank you!
Yeah, I know I shouldn't do that, but who knows what was in my mind back then...
Offline