You are not logged in.
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 ![]()
Last edited by Equinoxx (2017-10-11 20:50:21)
Offline
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
Seems pretty self-explanatory... adjust the pkgver function accordingly. See the wiki for suggestions for VCS packages.
Offline
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
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.
Offline
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
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
This particular PKGBUILD has problems beyond the pkgver... you'll find that it won't build as-is.
Offline
I've submitted a deletion request.
Offline
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
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
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