FS#35426 - [pacman] makepkg --holdver doesn't hold version while building a package
Attached to Project:
Pacman
Opened by Alain Kalker (ackalker) - Wednesday, 22 May 2013, 17:53 GMT
Last edited by Allan McRae (Allan) - Thursday, 23 May 2013, 00:19 GMT
Opened by Alain Kalker (ackalker) - Wednesday, 22 May 2013, 17:53 GMT
Last edited by Allan McRae (Allan) - Thursday, 23 May 2013, 00:19 GMT
|
Details
Description:
Using two consecutive runs of: $ makepkg -Lsf --holdver on a modified PKGBUILD for sdrsharp-svn (see attached taurball), the following two (related?) things go wrong: - On the first run, the correct SVN revision is fetched and a package is built, but the package's version is the latest revision, not the specified (supposed to be held) one. - On the second run, the build fails due to a change introduced in a later revision (which was the reason to use --holdver in the first place). Looking at the PKGBUILD shows that the version number was updated despite the --holdver option. Additional info: * package version(s) - pacman 4.1.1-1 * config and/or log files etc. - taurball (see attachment) - build logs (see attachment) Steps to reproduce: - Extract the taurball $ makepkg -Lsf --holdver (move log files out of the way) $ makepkg -Lsf --holdver |
This task depends upon
Closed by Allan McRae (Allan)
Thursday, 23 May 2013, 00:19 GMT
Reason for closing: Fixed
Additional comments about closing: Works in pacman 4.1.1
Thursday, 23 May 2013, 00:19 GMT
Reason for closing: Fixed
Additional comments about closing: Works in pacman 4.1.1
sdrsharp-svn-1134-1.src.tar.gz
buildlogs.tar.xz
[...]
Checked out revision 1135.
-> Found sdrsharp.desktop
==> Validating source files with md5sums...
sdrsharp ... Skipped
sdrsharp.desktop ... Passed
==> Extracting sources...
-> Creating working copy of trunk svn repo...
Updating '.':
D DNR
U SDRSharp.sln
U SDRSharp/App.config
Updated to revision 1134.
==> Starting pkgver()...
==> Updated version: sdrsharp-svn 1135-1
==> Starting build()...
[...]
Snippet from terminal output for second build:
[...]
==> Extracting sources...
-> Creating working copy of trunk svn repo...
Updating '.':
At revision 1135.
==> Starting pkgver()...
==> Removing existing pkg/ directory...
==> Starting build()...
[...]
Clearly the "Updated version: sdrsharp-svn 1135-1" shouldn't have happened when using --holdver.
It appears that for SVN, the pristine 'mirror' repo is always kept at the latest revision, while the working tree is at the PKGBUILD-specified revision.
I'm wondering: wouldn't a simple fix be to just skip the call to pkgver() and the PKGBUILD version update altogether?
(There are a boatload of PKGBUILDs in the AUR that need fixing ;-) )
Please close this bug if you want, thanks for looking into this.