Hello,

I am trying to build a golang package in COPR, before opening the BZ for
inclusion into fedora.

go2rpm does almost everything, expect setting a LDFLAG needed for the
binary to display the appropriate binary version [1].

When I build locally using mock (with a default config), the binary within
the RPM generated is displaying the appropriate version.

When I install the package from the COPR repository (built using the same
SRPM), the binary is different and prints a version "dev build", like if
the LDFLAG was ignored.

Looking at the build.log [2], we can see the LDFLAG is set during the
gobuild command.

I suspected some cache at the COPR repository level, so I tried to clean
everything and rebuild it. Same result.

At this point I am a bit lost. Anybody to give some hint?

My spec file and my SRPM can be found here. [3]

Thanks in advance for your help.

Jérémy

[1] https://github.com/ivaaaan/smug/blob/v0.2.2/Makefile
[2]
https://download.copr.fedorainfracloud.org/results/jbertozzi/smug/fedora-34-x86_64/02166586-golang-github-ivaaaan-smug/builder-live.log.gz
[3] https://github.com/jbertozzi/copr-build-smug
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-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/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to