FS#12286 - makepkg with mercurial style "compact"

Attached to Project: Pacman
Opened by Roman Timushev (rtimush) - Sunday, 30 November 2008, 12:50 GMT
Last edited by Dan McGee (toofishes) - Sunday, 30 November 2008, 22:14 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Dan McGee (toofishes)
Allan McRae (Allan)
Architecture All
Severity Medium
Priority Normal
Reported Version 3.2.1
Due in Version 3.2.2
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

makepkg refuses to build a package with _hgroot and _hgrepo variables set when mercurial is configured to be "compact".
In this case, latest version is detected incorrectly.
Actually, version detection shouldn't depend on mercurial configuration.

Additional info:
pacman 3.2.1-1

Steps to reproduce:

Edit your ~/.hgrc and add the following lines:
[ui]
style = compact

Download any package with _hgroot and _hgrepo variables set (I downloaded qct from AUR). Try to run makepkg.
Package wouldn't be build. If you look at PKGBUILD, the pkgver field will look like
pkgver=552[tip] 04028f280580 2008-11-13 11
This task depends upon

Closed by  Dan McGee (toofishes)
Sunday, 30 November 2008, 22:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  Commit 346139298bc547d1cbeb5d41f2067577b96ff1fa
Comment by Roman Timushev (rtimush) - Sunday, 30 November 2008, 17:31 GMT
Attached patch file fixes the problem — it makes makepkg execute «hg tip --template "{rev}"» to get tip revision instead of complex «hg tip | sed ...»
   patch (0.5 KiB)
Comment by Dan McGee (toofishes) - Sunday, 30 November 2008, 22:05 GMT
Wow, this is a bit simpler and works well. I'll pull this into my working branch.

Loading...