nim reported a new issue against the project: `go-rpm-macros` that you are following:
``
The macro code needs massaging to also work on EPEL.
Most of the work is spec side since some of the macros are going to collide with the ones provided by previous iterations of Go macro packages
``
To reply, visit the link below or just reply to this email
https://pagure.io/go-rpm-macros/issue/2
nim reported a new issue against the project: `go-rpm-macros` that you are following:
``
`%goprep` should apply patches automatically, so there is no convenience gap with `%autosetup`.
This is generic work that should be done *redhat-rpm-config* side in forge macros and then reused in`%goprep`. Basically:
1. define a `patch_flags<suffix>` rpm variable holding the parameters that should be passed to `%patch<suffix>`
2. define a `default_flags<suffix>` fallback
3. define a `source_patches<suffix>` holding an ordered space separated list of patch suffixes associated with a particular forge/go source.
And then write the usual lua loops to apply it all at the right moment in the spec.
``
To reply, visit the link below or just reply to this email
https://pagure.io/go-rpm-macros/issue/3
bcl opened a new pull-request against the project: `go-rpm-macros` that you are following:
``
Add BUILDTAGS to %gobuildflags
``
To reply, visit the link below or just reply to this email
https://pagure.io/go-rpm-macros/pull-request/34
Hi all,
I'm new to Go SIG. There are some Go apps that I'm interested in
packaging and I'm learning about it.
One of these packages is `doctl`, the official cli for DigitalOcean,
but I'm having problems with the result.
I'm able to build it using mock or copr, but the generated binary is
detected as `ar archive` by `file`, strip complains during %install
phase and result rpm is not usable.
- Spec file[1]: https://github.com/mikelolasagasti/doctl/blob/main/doctl.spec
Simple go2rpm with minor changes. Requires also
`golang-github-natefinch-pie` that is available in the same repo, rest
of dependencies are available in rawhide and F35.
- Copr build log[2]:
https://download.copr.fedorainfracloud.org/results/mikelo2/doctl/fedora-raw…
(...)
/usr/bin/strip:
/builddir/build/BUILDROOT/doctl-1.64.0-1.fc36.x86_64/usr/bin/doctl(__.PKGDEF):
Unable to recognise the format of file: file format not recognized
/usr/bin/strip:
/builddir/build/BUILDROOT/doctl-1.64.0-1.fc36.x86_64/usr/bin/doctl(_go_.o):
Unable to recognise the format of file: file format not recognized
(...)
- rpmlint:
$ rpmlint result/doctl-1.64.0-1.fc36.x86_64.rpm
doctl.x86_64: E: script-without-shebang /usr/bin/doctl
doctl.x86_64: E: wrong-script-end-of-line-encoding /usr/bin/doctl
doctl.x86_64: W: no-manual-page-for-binary doctl
- file:
<mock-chroot> sh-5.1# cd
/builddir/build/BUILDROOT/doctl-1.64.0-1.fc36.x86_64/usr/bin/
<mock-chroot> sh-5.1# file doctl
doctl:
I was able to find another spec[3]
https://bugzilla.redhat.com/show_bug.cgi?id=1821902 that is having the
same issue, but not a solution.
Any idea on how to troubleshoot this?
Kind regards,
Mikel
[1] https://github.com/mikelolasagasti/doctl/blob/main/doctl.spec
[2] https://download.copr.fedorainfracloud.org/results/mikelo2/doctl/fedora-raw…
[3] https://bugzilla.redhat.com/show_bug.cgi?id=1821902
eclipseo reported a new issue against the project: `go-rpm-macros` that you are following:
``
When packaging: `code.gitea.io/tea`
The goname is reduced to `golang-codeea-tea`
Also the download link is wrong: it is resolved to
`https://gitea.com/gitea/tea/archive/0.7.0.tar.gz`
whereas it should be
`https://gitea.com/gitea/tea/archive/v0.7.0.tar.gz`
Can someone with knowledge of Lua regex fix this?
``
To reply, visit the link below or just reply to this email
https://pagure.io/go-rpm-macros/issue/32
qulogic opened a new pull-request against the project: `go-rpm-macros` that you are following:
``
Use --with-tests when running checks also.
``
To reply, visit the link below or just reply to this email
https://pagure.io/go-rpm-macros/pull-request/20