Notice: Undefined variable: name in /srv/http/vhosts/ on line 248

Package Details: libarchive-git v3.1.2.r1001.8c0c4fd7-1

Git Clone URL: (read-only)
Package Base: libarchive-git
Description: library that can create and read several streaming archive formats - git version
Upstream URL:
Licenses: BSD
Conflicts: libarchive
Provides: libarchive=v3.1.2.r1001.8c0c4fd7
Submitter: J5lx
Maintainer: J5lx
Last Packager: J5lx
Votes: 0
Popularity: 0.000000
First Submitted: 2016-12-26 14:38
Last Updated: 2016-12-26 14:38

Required by (151)

Sources (1)

Latest Comments

J5lx commented on 2017-01-12 23:15

I got that git line from /usr/share/pacman/PKGBUILD-vcs.proto. That file is part of the official pacman distribution and I suppose that the authors put some thought into it. If you think the line could be improved, you should first contact the pacman devs about it (I guess FS or ML would be good options). Depending on what they think about it, I might change this package as well.

As for my own two cents: I guess --always wouldn't exactly hurt here, but I'm pretty sure allowing lightweight tags in pkgver via --tags would be a bad idea. From git-tag(1): "Annotated tags are meant for release while lightweight tags are meant for private or temporary object labels." I have never seen any project that didn't adhere to that "rule", and putting private or temporary stuff of any kind into packages that other people might install simply doesn't sound right to me.

MRWITEK commented on 2017-01-12 22:08

I think, you should replace this line in pkgver():
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
git describe --long --tags --always | sed 's/-/.r/;s/-g/./;s/-/./g'
Or, at least, add --tags --always options to the git command.