Dear all,
You are kindly invited to the meeting:
Go SIG on 2024-07-29 from 20:00:00 to 21:00:00 Europe/Madrid
At golang(a)fedoraproject.org
The meeting will be about:
Meeting of Go SIG at the Matrix room.
For proposed agenda see [the tagged tickets](https://pagure.io/GoSIG/go-sig/issues?status=Open&tags=meeting).
Source: https://calendar.fedoraproject.org//meeting/10699/
Dear all,
You are kindly invited to the meeting:
Go SIG on 2024-07-15 from 20:00:00 to 21:00:00 Europe/Madrid
At golang(a)fedoraproject.org
The meeting will be about:
Meeting of Go SIG at the Matrix room.
For proposed agenda see [the tagged tickets](https://pagure.io/GoSIG/go-sig/issues?status=Open&tags=meeting).
Source: https://calendar.fedoraproject.org//meeting/10699/
Dear all,
You are kindly invited to the meeting:
Go SIG on 2024-07-01 from 20:00:00 to 21:00:00 Europe/Madrid
At golang(a)fedoraproject.org
The meeting will be about:
Meeting of Go SIG at the Matrix room.
For proposed agenda see [the tagged tickets](https://pagure.io/GoSIG/go-sig/issues?status=Open&tags=meeting).
Source: https://calendar.fedoraproject.org//meeting/10699/
ansasaki reported a new issue against the project: `go-rpm-macros` that you are following:
``
When [introduced](https://pagure.io/go-rpm-macros/c/67b4fbbbfce0986ac46cd1329bf85a18ea7a43d2) the intended use of `%gobuildflags` was to make it easy to use the default build flags in packages that has small parts written in Go.
The problem is that the `LDFLAGS` and `BUILDTAGS` variables expansion outputs single quoted strings, breaking its applicability in the original intended use case.
For example:
```
%make_build GOBUILDFLAGS="%gobuildflags" all
```
will not work as it will be expanded to:
```
/usr/bin/make -O -j6 V=1 VERBOSE=1 SBINDIR=/usr/sbin CGO_REQUIRED=1 'GOBUILDFLAGS=-buildmode pie -compiler gc -tags=rpm_crashtraceback' ' -a -v -x -ldflags -Wl,-z,relro' -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -B 0x459a73285ac8d01b2a750eb13002f82302c547dd -compressdwarf=false -linkmode=external -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' all
```
Note that the single quote resulted from the expansion of `${BUILDTAGS:-}` in the `%gobuildflags` will match the single quote before `GOBUILDFLAGS` added by the `%make_build` macro
``
To reply, visit the link below or just reply to this email
https://pagure.io/go-rpm-macros/issue/70
led0nk reported a new issue against the project: `go-rpm-macros` that you are following:
``
Hey guys,
I'm new to rpm-package-building and especially with golang, so i'm sorry if i'm asking dumb questions..
At first a achieved to create a rpm-package of my GitHub-Repository providing Packit (used service) with a pre-made archive, which includes vendor-files.
Now I'd like to achieve a solution without providing vendor-files, which was just an idea since i read about the go-rpm-macros.
I'm not quite sure if I correctly understood it, but for me it seems reasonable to use `%generate_buildrequires` followed by `%go_generate_buildrequires` to list my dependencies for building the binary.
But whenever I'm running packit with my .spec-file I keep getting this error:
```
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.kZ8p2R
+ umask 022
+ cd /builddir/build/BUILD
+ cd ark-clusterinfo-0.1.0
+ GOPATH=/builddir/build/BUILD/ark-clusterinfo-0.1.0/_build:/usr/share/gocode
+ GO111MODULE=off
+ golist --imported --package-path github.com/led0nk/ark-clusterinfo --template 'golang({{.}})\n' --with-tests --skip-self
cannot find package "github.com/led0nk/ark-clusterinfo" in any of:
/usr/lib/golang/src/github.com/led0nk/ark-clusterinfo (from $GOROOT)
/builddir/build/BUILD/ark-clusterinfo-0.1.0/_build/src/github.com/led0nk/ark-clusterinfo (from $GOPATH)
/usr/share/gocode/src/github.com/led0nk/ark-clusterinfo
```
Does someone have any clue on what's going wrong here?
Here is my .spec-file:
https://github.com/led0nk/ark-clusterinfo/blob/1db8c54b5e7dee1029ba1b65a4f9…
``
To reply, visit the link below or just reply to this email
https://pagure.io/go-rpm-macros/issue/69
The go tool link command has a -X option (see go doc cmd/link):
-X importpath.name=value
Set the value of the string variable in importpath named name to value.
This is only effective if the variable is declared in the
source code either uninitialized
or initialized to a constant string expression. -X will not
work if the initializer makes
a function call or refers to other variables.
Note that before Go 1.5 this option took two separate arguments.
In a spec file using -linkmode=external is there an equivalent option
to -X above?
An upstream project uses -X in their makefile to set the Version
string to a value other than "unknown". One option that works for a
spec file is to just use sed to set the Version string to the desired
value but I was wondering if there was an equivalent linker flag that
can be used that will replicate -X above.
thanks
Brad
gotmax23 reported a new issue against the project: `go-rpm-macros` that you are following:
``
Instead of
```
%files
%license vendor/modules.txt
```
we should allow something like
```
%files
%go_vendor_file vendor/modules.txt
```
where `%go_vendor_file` just expands to `%license`. This way, if support for the go_mod_vendor generator is not available, the package build will no longer silently fail.
``
To reply, visit the link below or just reply to this email
https://pagure.io/go-rpm-macros/issue/68
Hi all,
I'm trying to package transifex-cli but I find the following error in
the %install phase:
/usr/bin/strip:
/builddir/build/BUILDROOT/transifex-client-1.6.10-1.fc41.x86_64/usr/bin/tx(__.PKGDEF):
Unable to recognise the format of file: file format not recognized
/usr/bin/strip:
/builddir/build/BUILDROOT/transifex-client-1.6.10-1.fc41.x86_64/usr/bin/tx(_go_.o):
Unable to recognise the format of file: file format not recognized
%check phase is OK and during the final phase this is reported:
Provides: transifex-client = 1.6.10-1.fc41 transifex-client(x86-64) =
1.6.10-1.fc41
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: transifex-client-debugsource-1.6.10-1.fc41.x86_64
error: Empty %files file /builddir/build/BUILD/cli-1.6.10/debugsourcefiles.list
RPM build errors:
Empty %files file /builddir/build/BUILD/cli-1.6.10/debugsourcefiles.list
Finish: rpmbuild transifex-client-1.6.10-1.fc41.src.rpm
Finish: build phase for transifex-client-1.6.10-1.fc41.src.rpm
Spec[1] doesn't have anything special and build logs are available[2].
It fails for all current Fedora versions.
Any idea what could be happening?
Regards,
Mikel
[1] https://github.com/mikelolasagasti/transifex-client-specs
[2] https://copr.fedorainfracloud.org/coprs/mikelo2/transifex-client/build/7232…