[pacman-dev] [Proposal] make "makepkg --holdver" preserve the $pkgver, too
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, I'd like to propose to let makepkg not only hold the version of the VCS sources, but also the $pkgver itself, when --holdver is given (that is: call pkgver() only, whenn --holdver is not given). In case, there is genuine need for keeping VCS versions, but still updating $pkgver via pkgver(), a different option name could be chosen (--holdpkgver ?). Motivation: This would be useful for building older packages (e.g. from git checkouts) which offer a pkgver() function. ("older" can simply mean, that the source is updated faster than the package is being checked into git) Is anyone else finding this useful? Opinions? If we settle on something, I can look into how to implement it, myself (but I don't want to line up at the front :-D). regards, Erich -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAmBi1JgACgkQCu7JB1Xa e1qIkxAAnLoodUckvSYOaA9fouDO2ZjfhztixUfRAvELT5Refpn8Frh0PAEQNAt1 4JUUEPqL89nSd0CQe03IOEr1SQ6+8xYPaRhJLTG37rxcP+uZbE3gokz/Jin0jUn5 3L6uXQzqnaJWstg7Wz17/SSjhwIpxSDj5iYAV34IoasFSg+sLSFyRYiJ3399aFyc MvDrTqI1GjRvCoa6a/PYG4h+9YmQJfIr7vTZ19ZPpZKrz/HilwowPRNcvqFyj6si A4yuMLjxWFOyo3ry+FngTTzE0tIYpp1FoQJKg1iR7Ll8rbz4SZnModCmojIsmkqs eog3PKil1V25OYjingIge4Fz8B+qPJcA8Fne/JNGNjEo8vqI/JnD4FsZ/JwS1ajg A4BJs/3xWJPQ7eg2LLfD8PKQ6wrmExhaG96iv9Q/zonvuFBU7sen8aVuFWsC30vp 8kJcWvBTTQoB+L6Q8VUng8zFf42UGxSPugtCzyrvKHA3onHfnwH06mEOpI4P4gCs NpI9cpbGoSAny24qU8pxknKOSSvdGX1xBojMLeHgVhaTEY3Oonht16QrP+t4IOVc vDTI97A/qOqQK/kmCBEFPvk0+Tfk1W2e6/BEE9lDiMC7EKEWGyFmalGJIIUIEKeH tsywoa8VNDR2j1jr6X2wT1G7uAko8kJW6cK+WkZ/wS9EEQ9DnEA= =6sJj -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, scratch that - it appears, I have understood something wrong :-) (I assumed, pkgver() would give the *latest* available version and then the VCS should be checked out accordingly - but it's the other way round: pkgver() should report, what version is already being checked out) regards, Erich On Tue, 30 Mar 2021, Erich Eckner wrote:
Hi,
I'd like to propose to let makepkg not only hold the version of the VCS sources, but also the $pkgver itself, when --holdver is given (that is: call pkgver() only, whenn --holdver is not given). In case, there is genuine need for keeping VCS versions, but still updating $pkgver via pkgver(), a different option name could be chosen (--holdpkgver ?).
Motivation:
This would be useful for building older packages (e.g. from git checkouts) which offer a pkgver() function. ("older" can simply mean, that the source is updated faster than the package is being checked into git)
Is anyone else finding this useful? Opinions? If we settle on something, I can look into how to implement it, myself (but I don't want to line up at the front :-D).
regards, Erich -----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAmBjJ/YACgkQCu7JB1Xa e1qnlA/+PaGtH6nL8yZyo+xaxiYgDr2KWlKi1hHkMIWinCUcC+owrIde+98x4Rdg 6HeLs06Z3/sYLa2350BCaCQXd8Vh2ty71w9FV5pMS+uzHgZp0Kas+FiEstYos6BQ bhhcyEDliUKCf0pYVcO0hvQyyz9rxu4o3YC24NtB0SrXO7AEL+GrkSAb/AYZfF2k XHWmz9+xyY6CBQJZlIuOzZJvMFClh9190hvZ+m2R52bjqaIaP5nvGuswnJ1yXStb VgKJ3pMpWBAw+gpZ+myld7m3C0xtptO159sYAaVU5Sg1hz186VnkLHxAwbfxPvZc 9aPXA5E/JbHkLp2I2CyWtwj2DvJhc9fVrbv3udxBPeJY0GhuVZh/QwkR1bUhnZj6 TStaAhGN1Au58ikPoodHn+TmPXqAG6A3IsiWBAppvEpGx06vjKpLj5+AbNJcSbX9 ml0jb73QMtM2aShhjo7RoRkQnMaA8laOzD53NYgpV7T4YCcbHYXiW/dcESU7HesX 24W+VsmqD8m77oFF39FrfVP+qrOcPHx3oGln92JAKSjwBFxSGYd4sOzIuJGB0EWw nTEDbYNb5+B4fzb3VzPYtZp3u7fXfQ/Qbc2kgd2djpk9RlX0LXD0zZVmofLp+hW6 PHew7Wxd76HpKeZnSHBjzYP27sUnO7O1c8SAFmaC1428cjtG/DQ= =c5gr -----END PGP SIGNATURE-----
participants (1)
-
Erich Eckner