[pacman-dev] package versions with vcs packages
Allan McRae
allan at archlinux.org
Tue Jul 17 06:00:05 EDT 2012
On 17/07/12 19:41, Christian Hesse wrote:
> Hello everybody,
>
> hg and svn packages do set vcs revision infos for package versions. Any
> reason this does not apply to git, cvs and darcs?
>
> Using a date string has the drawback that two revisions compiled the same day
> result in packages with the same version...
>
> A patch for git is attached. Any chance to get this merged? I could take a
> look at darcs and cvs as well.
>
The VCS PKGBUILD system has been completely overhauled - see
https://projects.archlinux.org/users/allan/pacman.git/log/?h=vcs .
This will be merged into the main repo soon. It has the facility to
specify a pkgver() function that provides the updated version.
Note your git version setting code gives
"glibc_2.16_ports_merge_37_gb637d46" for the pkgver for glibc-git...
Just a sed to get rid of a "v" is not enough as any tag can be used.
Allan
More information about the pacman-dev
mailing list