#2541 Exposing RPM's VCS tag
Closed: Fixed 3 years ago by tkopecek. Opened 3 years ago by alexi.

The rpm spec has a largely undocumented tag, VCS, which can be used to point to the vcs repository that hosts the code. We've recently started adding this tag to RPMs automatically created from our Gitlab infrastructure to help maintain visibility into the origin of our RPMs.

I think it could be useful to expose this tag in Koji's web interface when it's available, perhaps in Extra alongside the original_url. Is there any interest in this from anyone else?


Metadata Update from @tkopecek:
- Custom field Size adjusted to None
- Issue set to the milestone: 1.24
- Issue tagged with: discussion

3 years ago

(Marking as discussion with decision to de done before 1.24)

It would probably make sense to have VCS and DistURL exposed if they're used.

I think the original intent was to use VCS for upstream version control...

That said, openSUSE uses DistURL the way you're proposing to use VCS, and it might not be a bad idea for Fedora to do the same in the near future, so we might want that...

I've created PR #2683 - it displays these tags on rpminfo page. It makes sense there as it is the only place where we display other rpm tags.

About saving this data to build.extra - I don't think it is necessarry, as it is still available via standard getRPMHeaders call. If there will be some other usecase (so this API is not sufficient, we can open new issue.

Metadata Update from @tkopecek:
- Issue untagged with: discussion
- Issue tagged with: testing-ready

3 years ago

The advantage of adding it to the extras would be that it would show up in the buildinfo page, where I think it would be more useful.

@alexi What I'm afraid here that we can open a can of worms here. If there is one rpm tag in build extras why not all of them? Adding the value to buildinfo page is still doable without moving it to extras (we can simply find the srpm and query headers).

Adding the value to buildinfo page is still doable without moving it to extras (we can simply find the srpm and query headers).

That would be better, yes, I was just unsure how to do it when I was playing around with this.

Metadata Update from @tkopecek:
- Issue untagged with: testing-ready

3 years ago

Added also to buildinfo page (updated PR)

Metadata Update from @tkopecek:
- Issue tagged with: testing-ready

3 years ago

Metadata Update from @jobrauer:
- Issue tagged with: testing-done

3 years ago

Commit 8fb0a53 relates to this ticket

Commit 9fb1a53 relates to this ticket

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #2700 Merged 3 years ago
  • #2691 Merged 3 years ago
  • #2683 Merged 3 years ago