On 6/10/24 23:30, Fabio Valentini wrote:
On Mon, Jun 10, 2024 at 10:25 PM Miro Hrončok
<mhroncok(a)redhat.com> wrote:
>
> Hi,
>
> I accidentally realized today (in [1]), that RPM has a VCS tag. 396 Fedora
> packages use it, yay \o/
>
> The tag is described (at [2]) as:
>
> """
> (Public) upstream source code VCS location. Format <vcs>:<address> with
<vcs>
> being the VCS command used (e.g. git, svn, hg, …) and <address> being the
> location of the repository as used by the VCS tool to clone/checkout the
> repository (e.g.
https://github.com/rpm-software-management/rpm.git).
> """
>
(snip)
> Are the 396-11 packages wrong?
I encountered this a few weeks ago too (due to
https://pagure.io/fedora-rust/rust2rpm/pull-request/274).
Short answer to your question: As far as I can tell, yes.
Apparently 396-11 packages that use this tag in Fedora do it in a way
that does *not* match what is documented in the RPM docs.
The docs were added years after the tag itself, and there's zero
enforcing on the format, so it's no wonder usage commonly doesn't match
up with the description.
Maybe there should be a discussion around deprecating the tag and
removing it from packages, similar to what happened to Group tags?
The VCS tag was one of the most popular requests at the time.
I'd maybe try pointing people to the intended format instead, now that
it's at least loosely documented.
- Panu -