Bug 1762730 - https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/ provides invalid example
Summary: https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/ provides in...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora Documentation
Classification: Fedora
Component: fedora-websites
Version: devel
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Bokoc
QA Contact: Fedora Websites Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-17 10:41 UTC by W. Michael Petullo
Modified: 2019-11-08 07:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-08 07:38:10 UTC
Embargoed:


Attachments (Terms of Use)

Description W. Michael Petullo 2019-10-17 10:41:23 UTC
Description of problem:
The documentation at https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/ seems to provide an invalid example in its "Simple binary package" section. Following the example there results in a package specification that produces the following when processed with rpmbuild:

RPM build errors:
    -u use in %forgemeta is deprecated, use -z instead to select a separate set of rpm variables!
    Bad exit status from /tmp/rpm-tmp.rP7edU (%prep)

Indeed, the actual golang-github-boltdb-bolt package has diverged from the example at https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/.

Version-Release number of selected component (if applicable):
Webpage: Last build: Thu Oct 17 10:00:11 UTC 2019
Build host: Fedora 31

How reproducible:
Every time

Steps to Reproduce:
1. Write an RPM specification based on the "Simple binary package" example at https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/
2. Run "rpmbuild -ba foo.spec"

Actual results:
-u use in %forgemeta is deprecated, use -z instead to select a separate set of rpm variables!

Expected results:
The package should build.

Comment 1 Petr Bokoc 2019-11-08 07:38:10 UTC
Hi, thank you for your report. 

I'm currently cleaning up the Fedora Documentation product in Bugzilla because we prefer to use issues directly in docs source repositories on pagure.io for tracking bug reports. Therefore I copied your report into the tracker at https://pagure.io/packaging-committee/issue/933, and I'll close this bug.


Note You need to log in before you can comment on or make changes to this bug.