On Fri, Feb 02, 2024 at 06:02:13PM -0300, Priscila Gutierres wrote:
> I'm trying to package kubectl for Fedora, but I'm having a bad time with
> some dependencies.
> I created the specfile using go2rpm, and I'm using auto dependencies:
> https://pastebin.com/fmvttDBt
> 
> %generate_buildrequires
> %go_generate_buildrequires
> 
> But it is blaming that some dependencies are missing:
> 
> Failed to resolve the transaction:
> Package "go-rpm-macros-3.3.1-3.fc40.x86_64" is already installed.
> No match for argument: golang(github.com/chai2010/gettext-go/gettext)
> No match for argument: golang(github.com/russross/blackfriday)
> No match for argument: golang(k8s.io/kubectl/pkg/generated)
> 
> I could find, for example, golang-github-chai2010-gettext:
> https://src.fedoraproject.org/rpms/golang-github-chai2010-gettext
> But it isn't found when trying to create a mock package.
> 

Looks like that package provides golang(github.com/chai2010/gettext-go),
as well as gettext-go/mo, /plural, and /po, but not gettext-go/gettext

❯ fedrq pkgs golang-github-chai2010-gettext-devel -F provides
golang(github.com/chai2010/gettext-go) = 1.0.2-12.fc40
golang(github.com/chai2010/gettext-go/mo) = 1.0.2-12.fc40
golang(github.com/chai2010/gettext-go/plural) = 1.0.2-12.fc40
golang(github.com/chai2010/gettext-go/po) = 1.0.2-12.fc40
golang-github-chai2010-gettext-devel = 1.0.2-12.fc40
golang-ipath(github.com/chai2010/gettext-go) = 1.0.2-12.fc40

Curious, given upstream's go.mod lists github.com/chai2010/gettext-go
without the additional /gettext:

https://github.com/kubernetes/kubectl/blob/b73518af09755bb9607e8755e7fc111ee1adceb5/go.mod#L9

Seems like either %go_generate_buildrequires is doing the wrong thing,
or the golang-github-chai2010-gettext package is not exporting the right
virtual provide.

Best regards,

-- 
Michel Lind (né Salim)
identities: https://keyoxide.org/5dce2e7e9c3b1cffd335c1d78b229d2f7ccc04f2

Attachment: signature.asc
Description: PGP signature

--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to