FS#42433 - [makepkg] pkgver() is run before prepare()
Attached to Project:
Pacman
Opened by Martin Lukeš (meridius) - Saturday, 18 October 2014, 14:08 GMT
Last edited by Allan McRae (Allan) - Tuesday, 29 March 2016, 04:22 GMT
Opened by Martin Lukeš (meridius) - Saturday, 18 October 2014, 14:08 GMT
Last edited by Allan McRae (Allan) - Tuesday, 29 March 2016, 04:22 GMT
|
Details
When running makepkg on any package with implemented
pkgver() function:
Because pkgver() is run before prepare() or build() it could not find git directory because it wasn't downloaded yet. Therefore it can't determine the current package version. Solution: The pkgver() function should run after prepare() when VCS files were downloaded. |
This task depends upon
Closed by Allan McRae (Allan)
Tuesday, 29 March 2016, 04:22 GMT
Reason for closing: Fixed
Additional comments about closing: commits c034a332 and 4960be77
Tuesday, 29 March 2016, 04:22 GMT
Reason for closing: Fixed
Additional comments about closing: commits c034a332 and 4960be77
Could you post a PKGBUILD that shows the issue you're describing?
The pkgver() is working after switching to use source array.
Thank you
See for example extensions for firefox <https://aur.archlinux.org/packages/fi/firefox-extension-stylish/PKGBUILD>, which download xpi archives which are then extracted with unzip manually. The version is then determined from the install.rdf description inside the archive.
The current workaround is to include the optional extraction step in both function. This would not be necessary if prepare would run before pkgver.