On Wed, 28 Jul 2021 at 12:56, Link Dupont <l...@sub-pop.net> wrote: > > I noticed that a package I recently submitted (golang-sr-spc-log) has some > odd Provides: values. I can't figure out how they're getting generated this > way, or why. From the build log[1]: > > Provides: golang(git.sr.ht/~spc/go-log/go-log-0.1.0) = 0.1.0-1.fc34 [...] > > Why is the package version (0.1.0) appended to the import path name? I looked > at the only other package hosted on git.sr.ht (golang-sr-sircmpwn-getopt), > and it does not have the versioned provides. From the build log[2]: > > Provides: golang(git.sr.ht/~sircmpwn/getopt) = 0-0.1.20210615git23622cc.fc34 > [...] > > Investigating the go-rpm-macros some, I found that the go-rpm-integration > script claims[3] that it will "tag" the provides with a version if called > with the "-v" flag. I discovered that go-rpm-integration is used in the > %__go_provides macro in fileattrs/go.attr[4]. However, now I'm stuck. What > expands the macro (if it is even a macro) in go.attr and invokes it? Where in > all these layers of macros, Lua scripts and bash scripts is the "-v" flag > getting appended to the call to go-rpm-integration? >
It seems you've figured out what you needed, but for clarity, those files are parsed and called from RPM directly: http://rpm.org/user_doc/dependency_generators.html > ~link > > 1: > https://kojipkgs.fedoraproject.org//packages/golang-sr-spc-log/0.1.0/1.fc34/data/logs/x86_64/build.log > 2: > https://kojipkgs.fedoraproject.org//packages/golang-sr-sircmpwn-getopt/0/0.1.20210615git23622cc.fc34/data/logs/x86_64/build.log > 3: https://pagure.io/go-rpm-macros/blob/master/f/bin/go-rpm-integration#_64 > 4: https://pagure.io/go-rpm-macros/blob/master/f/rpm/fileattrs/go.attr#_5 -- Elliott _______________________________________________ golang mailing list -- golang@lists.fedoraproject.org To unsubscribe send an email to golang-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure