Bug 2033978

Summary: F36FailsToInstall: golang-github-mozillazg-pinyin-devel
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: go-rpm-macrosAssignee: Nicolas Mailhot <nicolas.mailhot>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: asm, deepinde-sig, go-sig, jcajka, maxwell, nicolas.mailhot, quantum.analyst, robinlee.sysu, tommi.t.rantala, zebob.m
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-20 21:24:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1992487    

Description Miro Hrončok 2021-12-19 11:13:08 UTC
Hello,

Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok).

Your package (golang-github-mozillazg-pinyin) Fails To Install in Fedora 36:

can't install golang-github-mozillazg-pinyin-devel:
  - nothing provides golang(os) needed by golang-github-mozillazg-pinyin-devel-0.19.0-1.fc36.noarch
  
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.

P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors.

P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Robin Lee 2021-12-19 11:59:53 UTC
A dependency of 'golang(os)' is generated when built with golang 1.18 but nothing provides it.

Comment 2 Maxwell G 2021-12-19 18:35:04 UTC
(In reply to Robin Lee from comment #1)
> A dependency of 'golang(os)' is generated when built with golang 1.18 but
> nothing provides it.

Yes, the `%__go_requires` macro [1,2] seems to be broken.

On Rawhide:

```
$ go version
go version go1.18beta1 linux/amd64

$ GO111MODULE=off GOPATH=$(pwd)/build/BUILDROOT/golang-github-mozillazg-pinyin-0.19.0-2.fc36.x86_64/usr/share/gocode/ golist --imported --package-path github.com/mozillazg/go-pinyin --skip-self --template 'golang({{.}})\n'
golang(github.com/mattn/go-isatty)
golang(os)
```

On F35:

```
$ go version
go version go1.16.11 linux/amd64

GO111MODULE=off GOPATH=$(pwd)/build/BUILDROOT/golang-github-mozillazg-pinyin-0.19.0-3.fc35.x86_64/usr/share/gocode/ golist --imported --package-path github.com/mozillazg/go-pinyin --skip-self --template 'golang({{.}})\n'
golang(github.com/mattn/go-isatty)
```

[1]: https://pagure.io/go-rpm-macros/blob/master/f/rpm/fileattrs/go.attr#_6
[2]: https://pagure.io/go-rpm-macros/blob/master/f/bin/go-rpm-integration#_423

Comment 3 Fedora Update System 2021-12-20 21:23:10 UTC
FEDORA-2021-1ac811c678 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-1ac811c678

Comment 4 Fedora Update System 2021-12-20 21:24:23 UTC
FEDORA-2021-1ac811c678 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.