Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#57719 - [publicsuffix-list] pkgver is not based on the source code version
Attached to Project:
Arch Linux
Opened by Erich Eckner (deepthought) - Monday, 05 March 2018, 11:05 GMT
Last edited by Levente Polyak (anthraxx) - Wednesday, 21 March 2018, 00:55 GMT
Opened by Erich Eckner (deepthought) - Monday, 05 March 2018, 11:05 GMT
Last edited by Levente Polyak (anthraxx) - Wednesday, 21 March 2018, 00:55 GMT
|
DetailsSummary and Info:
During the execution of archbuild, makepkg is called at least once w/o the arguments passed by the user via the command line. This makes "--holdver" ineffective. Steps to Reproduce: > asp export publicsuffix-list > cd publicsuffix-list > grep 'pkgver=' PKGBUILD > extra-x86_64-build -- -- --holdver > grep 'pkgver=' PKGBUILD The log of the above commands is attached. |
This task depends upon
Closed by Levente Polyak (anthraxx)
Wednesday, 21 March 2018, 00:55 GMT
Reason for closing: Implemented
Additional comments about closing: 20180320.657.a39f111
Wednesday, 21 March 2018, 00:55 GMT
Reason for closing: Implemented
Additional comments about closing: 20180320.657.a39f111
log
printf "%s.%s.%s" "$(date +%Y%m%d --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}")"
holdver does not prevent the pkgver() from running, it just prevents downloading new source commits, so if you checkout git master and use holdver, then you don't download new versions (but if you had them already then you *do* get an updated PKGBUILD).
date +%Y%m%d --date="@$(git log -1 --format=%ct)"
Which will create a version based on the date for the built commit, which is far more interesting to users than the date that the package was built with potentially a really old version. I'm not really sure what the motivation for this pkgver() function is but it seems quite unfortunate.
date +%Y%m%d --date="@$(git log -1 --format=%ct)"
over
TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD
as used by linux-firmware?