You are not logged in.

#1 2016-02-03 07:17:06

flavenstein
Member
Registered: 2016-02-03
Posts: 2

makepkg error "backup should be an array"

I've been trying to do a thing for about an hour now, and like everything I try with linux, there's a whole chain of things that need to be changed (in a way that's obvious to everyone but me). So here's where I'm at now: If I try to run makepkg, I get a sequence of mysterious errors.

==> ERROR: backup should be an array
==> ERROR: groups should be an array
==> ERROR: conflicts should be an array
==> ERROR: makedepends should be an array
==> ERROR: provides should be an array
==> ERROR: replaces should be an array

Then it does nothing. I recently updated pacman and updated some gpg keys. Google returns nothing for these errors (other than /tmp being full which I don't see anything bout in my errors). I don't see a debug switch in the man pages for makepkg. I didn't see anything on the latest news page. I'm sure it's something really trivial or it's linked somewhere really obvious so I apologize in advance.

Offline

#2 2016-02-03 07:25:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: makepkg error "backup should be an array"

Run makepkg on what? With what options? Please paste (in code tags) the full output of the command you are running and the details of the PKGBUILD you are running it on.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-02-03 07:42:48

flavenstein
Member
Registered: 2016-02-03
Posts: 2

Re: makepkg error "backup should be an array"

Here is the full output of "makepkg -i" for gtklp in the AUR. (found here https://aur.archlinux.org/cgit/aur.git/ … LD?h=gtklp)

==> ERROR: backup should be an array
==> ERROR: groups should be an array
==> ERROR: conflicts should be an array
==> ERROR: makedepends should be an array
==> ERROR: provides should be an array
==> ERROR: replaces should be an array

It does that with any options to makepkg. I assume it's because of the missing fields in the PKGBUILD? It seems to build if I just delete all of those lines with missing fields, is there any harm in doing that? The built program doesn't seem to work but that's probably because of some other new issue.

Last edited by flavenstein (2016-02-03 07:45:11)

Offline

#4 2016-02-03 07:48:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: makepkg error "backup should be an array"

That PKGBUILD is a disgrace. I wouldn't even attempt to install it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-02-03 08:37:29

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: makepkg error "backup should be an array"

flavenstein wrote:

It seems to build if I just delete all of those lines with missing fields, is there any harm in doing that? The built program doesn't seem to work but that's probably because of some other new issue.

Yes, you can delete the empty options, but as Jason said, the PKGBUILD is a mess. If the uploader didn't bother testing it, I don't know what chances you have. If you are feeling adventurous, then give it a go.

Offline

#6 2016-02-03 12:14:09

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: makepkg error "backup should be an array"

I suggest rewriting it sanely and then submitting it to the maintainer, if he totally ignores you for a few weeks then ask for the package to be orphaned and take it over. The PKGBUILD really isn't *that* bad, it is just that he just copy/pasted as a template and didn't remove the unused fields, something that makepkg did not complain about before pacman 5.

Sidenote: there are better cups UIs out there too now, depending on just what you want to do.

Last edited by Mr.Elendig (2016-02-03 12:19:25)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2016-02-03 13:26:16

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: makepkg error "backup should be an array"

Mr.Elendig wrote:

The PKGBUILD really isn't *that* bad, it is just that he just copy/pasted as a template and didn't remove the unused fields, something that makepkg did not complain about before pacman 5.

Oh, I didn't know that the warnings started appearing only with pacman 5. If that's the case, then maybe the uploader did test the script wink

Offline

Board footer

Powered by FluxBB