#72 "grep: warning: stray \ before :"
Opened by scfc. Modified

On building Go packages, often multiple warnings grep: warning: stray \ before : are emitted (cf. https://kojipkgs.fedoraproject.org/packages/golang-github-d2g-dhcp4client/1.0.0/13.fc40/data/logs/aarch64/build.log):

[…]
+ RPM_EC=0
++ jobs -p
+ exit 0
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
Provides: golang(github.com/d2g/dhcp4client) = 1.0.0-13.fc40 golang-github-d2g-dhcp4client-devel = 1.0.0-13.fc40 golang-ipath(github.com/d2g/dhcp4client) = 1.0.0-13.fc40
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: go-filesystem golang(github.com/d2g/dhcp4) golang(golang.org/x/sys/unix)
[…]

Unfortunately, even with --verbose and --debug, edpkg mockbuild cannot be persuaded to reveal which program it is calling that is producing such warnings, but I assume that it is /usr/bin/go-rpm-integration's:

[…]
for m in version tag commit branch ; do
  v=$(grep "^${m}\:" "${medadatafile}" | head -1)
  v="${v#${m}:}"
  [[ -n "${v}" ]] && metadata["${m}"]="${v}"
done
[…]

where the backslash in front of the colon should probably be removed.


Metadata Update from @alexsaezm:
- Issue assigned to alexsaezm

Metadata