Re: [aur-general] Automatic package version
Message: 1 Date: Fri, 26 Oct 2018 18:29:59 +0200 From: Michael Kogan <michael.kogan@gmx.net> To: "Discussion about the Arch User Repository (AUR)" <aur-general@archlinux.org> Subject: Re: [aur-general] Automatic package version Message-ID: < CALsOv+Bp9EZ_v_wfsv5mz9muariNgNCZXWYYx_1EndOfkJ_BBg@mail.gmail.com> Content-Type: text/plain; charset="UTF-8"
First thing coming to mind: Did you possibly forget to update the .SRCINFO file?
Hoe do I update it from the PKGBUILD itself?
Message: 3 Date: Fri, 26 Oct 2018 12:34:44 -0400 From: Eli Schwartz <eschwartz@archlinux.org> To: aur-general@archlinux.org Subject: Re: [aur-general] Automatic package version Message-ID: <6bbd283a-3587-d9f9-3dcc-3ba8e9f0739b@archlinux.org> Content-Type: text/plain; charset="utf-8"
On 10/26/18 12:26 PM, Shay Gover via aur-general wrote:
Hi,
I have a pakage in AUR that uses an automatic package versioning. I use a pkgver() and pkgrel(). However I just noticed that the package version in AUR is old. I checked the functions and everything is OK. Running makepkg gives the correct version.
The package is:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=virtualbox-ck-modules
Are you Tharbad on the AUR? If so, you're using multiple email addresses...
As for the package itself, fake news! The package is not *supposed* to
show an updated version in the AUR, that's the whole point of a pkgver() function.
So how does the automatic versioning suppose to work?
P.S. There's no such thing as a pkgrel() function.
Good to know. Since I need it, What can I do?
-- Eli Schwartz Bug Wrangler and Trusted User
On 26/10/2018 19:07, Shay Gover via aur-general wrote:
Message: 1 Date: Fri, 26 Oct 2018 18:29:59 +0200 From: Michael Kogan <michael.kogan@gmx.net> To: "Discussion about the Arch User Repository (AUR)" <aur-general@archlinux.org> Subject: Re: [aur-general] Automatic package version Message-ID: < CALsOv+Bp9EZ_v_wfsv5mz9muariNgNCZXWYYx_1EndOfkJ_BBg@mail.gmail.com> Content-Type: text/plain; charset="UTF-8"
First thing coming to mind: Did you possibly forget to update the .SRCINFO file?
Hoe do I update it from the PKGBUILD itself?
I normally have an alias like this: $ which updpkgs updpkgs: aliased to 'updpkgsums && makepkg --printsrcinfo > .SRCINFO'
Message: 3 Date: Fri, 26 Oct 2018 12:34:44 -0400 From: Eli Schwartz <eschwartz@archlinux.org> To: aur-general@archlinux.org Subject: Re: [aur-general] Automatic package version Message-ID: <6bbd283a-3587-d9f9-3dcc-3ba8e9f0739b@archlinux.org> Content-Type: text/plain; charset="utf-8"
On 10/26/18 12:26 PM, Shay Gover via aur-general wrote:
Hi,
I have a pakage in AUR that uses an automatic package versioning. I use a pkgver() and pkgrel(). However I just noticed that the package version in AUR is old. I checked the functions and everything is OK. Running makepkg gives the correct version.
The package is:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=virtualbox-ck-modules
Are you Tharbad on the AUR? If so, you're using multiple email addresses...
As for the package itself, fake news! The package is not *supposed* to
show an updated version in the AUR, that's the whole point of a pkgver() function.
So how does the automatic versioning suppose to work?
P.S. There's no such thing as a pkgrel() function.
Good to know. Since I need it, What can I do?
-- Eli Schwartz Bug Wrangler and Trusted User
On 10/26/18 2:07 PM, Shay Gover via aur-general wrote:
First thing coming to mind: Did you possibly forget to update the .SRCINFO file?
Hoe do I update it from the PKGBUILD itself?
The PKGBUILD format is by definition separate from the .SRCINFO, you don't update it automatically by the PKGBUILD. You update it separately. The general process is described here: https://wiki.archlinux.org/index.php/Arch_User_Repository#Uploading_packages The "aurpublish" package available in the community repositories can do this for you.
The package is not *supposed* to show an updated version in the AUR, that's the whole point of a pkgver() function.
So how does the automatic versioning suppose to work?
It already does work. You download the PKGBUILD from the AUR, and use it to build a package. A pkgver() function *allows* the package to be newer than advertised in the AUR. It's okay for a package to be newer than advertised. That's how all *-git packages work, by design.
P.S. There's no such thing as a pkgrel() function.
Good to know. Since I need it, What can I do?
I assert that you do not need it. The pkgver is supposed to be set by the version of the software itself. The pkgrel is supposed to be the version of the PKGBUILD, and every time the pkgver gets updated, the pkgrel resets back to "1". See https://wiki.archlinux.org/index.php/PKGBUILD#pkgrel An "automatic" pkgrel violates the fundamental purpose of having a pkgrel in the first place. -- Eli Schwartz Bug Wrangler and Trusted User
participants (3)
-
Eli Schwartz
-
Konstantin Gizdov
-
Shay Gover