Re: Help with LDFLAGS for a golang package
Same result as you after re-install a few days later, looks like some cache issue... Sorry for the noise, and thanks for your time! On Tue, May 11, 2021 at 11:41 AM Alejandro Saez Morollon wrote: > Did you figure it out? > I installed the package from your COPR build and I can see the correct > version: > > ``` > Smug - tmux session manager. Version 0.2.2 > ``` > ___ > 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 > ___ 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
Re: Help with LDFLAGS for a golang package
Did you figure it out? I installed the package from your COPR build and I can see the correct version: ``` Smug - tmux session manager. Version 0.2.2 ``` ___ 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
Help with LDFLAGS for a golang package
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/ivn/smug/blob/v0.2.2/Makefile [2] https://download.copr.fedorainfracloud.org/results/jbertozzi/smug/fedora-34-x86_64/02166586-golang-github-ivn-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