You are not logged in.

#1 2017-10-11 19:18:56

Equinoxx
Member
Registered: 2017-09-09
Posts: 24

[Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

Hi guys,

I am having trouble building the winusb-git package due to the following errors

 ERROR: pkgver is not allowed to contain colons, hyphens or whitespace. 
 ERROR: pkgver() generated an invalid version: r592.v2.2.2-4-gc624279 

Any help is much appreciated smile

Last edited by Equinoxx (2017-10-11 20:50:21)

Offline

#2 2017-10-11 19:21:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

Bad packaging, and it seems the maintainer no longer cares. See the VCS package guidelines page in the wiki if you want to fix it yourself.

Offline

#3 2017-10-11 19:23:14

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

Seems pretty self-explanatory... adjust the pkgver function accordingly.  See the wiki for suggestions for VCS packages.

Offline

#4 2017-10-11 19:25:13

Equinoxx
Member
Registered: 2017-09-09
Posts: 24

Re: [Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

The Admin commented on the error:

"The current Package Version is currently only the abbreviated commit name and therefore does not increase with each update. I would suggest something like the following to get a higher Version for each new commit:

pkgver() {
cd ${srcdir}/${pkgname}
echo "r$(git rev-list --count HEAD).$(git describe --always)"
}

The Version would look like "r94-72aa1d9" which contains the current number of commits and the latest abbreviated commit name."

There is a fix, but I am lost on the steps to achieving it...

Last edited by Equinoxx (2017-10-11 19:25:32)

Offline

#5 2017-10-11 19:28:35

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

Re: [Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

The "fix" is to replace the pkgver function in the PKGBUILD with the one you pasted above.


The real solution is for the maintainer to fix their broken PKGBUILD.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2017-10-11 19:30:21

Equinoxx
Member
Registered: 2017-09-09
Posts: 24

Re: [Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

After having looked at the VCS page, all I need to do is replace

 pkgname 

with the latest release of the package?

 pkgver() {
  cd "$pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
} 

Offline

#7 2017-10-11 19:51:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: [Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

No, the pkgname will not change.  Change the pkgver function.  That's it.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2017-10-11 19:55:34

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

This particular PKGBUILD has problems beyond the pkgver... you'll find that it won't build as-is.

Offline

#9 2017-10-11 20:06:38

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

Re: [Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

I've submitted a deletion request.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2017-10-11 20:49:19

Equinoxx
Member
Registered: 2017-09-09
Posts: 24

Re: [Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

Sorry - I am fairly new to Arch, and am struggling to learn the format of it all. The wiki page seems a little confusing to me still, but I will have a play with it all and see if I can get it to work out. I didn't know of the VCS page, or really about pkgver, so will mark the post as solved to help any other lost Newbie....

Offline

#11 2017-10-11 21:16:38

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

Equinoxx wrote:

Sorry - I am fairly new to Arch, and am struggling to learn the format of it all. The wiki page seems a little confusing to me still, but I will have a play with it all and see if I can get it to work out. I didn't know of the VCS page, or really about pkgver, so will mark the post as solved to help any other lost Newbie....

Simple search on the wiki VCS... https://wiki.archlinux.org/index.php/VC … guidelines

Arch isn't a distro for people who want answer spoon fed to them.  If you don't make an effort, you will be unhappy with your user experience.

Last edited by graysky (2017-10-11 21:17:21)

Offline

#12 2017-10-12 10:10:09

Equinoxx
Member
Registered: 2017-09-09
Posts: 24

Re: [Solved] pkgver is not allowed to contain colons, hyphens.. Winusb-git

graysky wrote:

Simple search on the wiki VCS... https://wiki.archlinux.org/index.php/VC … guidelines

Arch isn't a distro for people who want answer spoon fed to them.  If you don't make an effort, you will be unhappy with your user experience.

Yes, I am aware of this, but I didn't find the corresponding wiki page to solve the issue. (When "pkgver error" was googled). I now know of the wiki page and hence should be able to solve the issue.

Last edited by Equinoxx (2017-10-12 10:11:09)

Offline

Board footer

Powered by FluxBB