Description of problem: can no longer build grafana in rawhide due to dnf builddep failure on BuildRequires: golang(...) when setting up the build root. Version-Release number of selected component (if applicable): rawhide How reproducible: always Steps to Reproduce: 1. fedpkg clone grafana 2. cd grafana; fedpkg switch-branch master 3. fedpkg scratch-build Actual results: fails to set up the buildroot. golang() macro seems to have changed or is broken in rawhide? .... DEBUG util.py:679: Executing command: ['/usr/bin/dnf', 'builddep', '--installroot', '/var/lib/mock/f31-build-16794596-1213095/root/', '--setopt=install_weak_deps=0', '--disableplugin=local', '--disableplugin=spacewalk', '/var/lib/mock/f31-build-16794596-1213095/root//builddir/build/SRPMS/grafana-6.2.4-1.fc31.src.rpm', '--setopt=tsflags=nocontexts'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'LC_MESSAGES': 'C.UTF-8', 'LD_PRELOAD': '/var/tmp/tmp.mock.zdg9r1o9/$LIB/nosync.so'} and shell False DEBUG util.py:587: Package go-srpm-macros-3.0.8-3.fc31.noarch is already installed. DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(cloud.google.com/go/compute/metadata)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/BurntSushi/toml)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/aws/aws-sdk-go)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/codegangsta/cli)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/davecgh/go-spew/spew)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/go-ini/ini)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/go-sql-driver/mysql)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/go-yaml/yaml)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/golang/protobuf/proto)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/golang/protobuf/ptypes)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/golang/protobuf/ptypes/any)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/golang/protobuf/ptypes/duration)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/golang/protobuf/ptypes/timestamp)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/jmespath/go-jmespath)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/mattn/go-colorable)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/mattn/go-isatty)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/matttproud/golang_protobuf_extensions/pbutil)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/mitchellh/go-testing-interface)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/prometheus/client_golang/api)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/prometheus/client_golang/api/prometheus/v1)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/prometheus/client_model/go)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/sergi/go-diff/diffmatchpatch)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/crypto/ed25519)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/crypto/md4)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/crypto/pbkdf2)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/oauth2)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/oauth2/google)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/oauth2/internal)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/oauth2/jws)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/oauth2/jwt)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/sys/unix)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/text/collate)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/text/collate/build)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/text/internal/colltab)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/text/internal/gen)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/text/internal/tag)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/text/internal/triegen)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(golang.org/x/text/internal/ucd)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(google.golang.org/appengine)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(google.golang.org/genproto/googleapis/rpc/status)' DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(google.golang.org/grpc)' DEBUG util.py:585: BUILDSTDERR: Not all dependencies satisfied DEBUG util.py:585: BUILDSTDERR: Error: Some packages could not be found. DEBUG util.py:734: Child return code was: 1 DEBUG util.py:323: kill orphans Expected results: grafana should build in rawhide (same as it still does in f29 and f30) Additional info:
This is most probably caused by https://pagure.io/fesco/issue/2120 on going work in Rawhide(tldr; landing breaking changes directly in rawhide). Re-assigning to more appropriate component and dependency.
@jcajka As you know perfectly well, this is due to the whole Go dependency pile being cleaned up in a side-tag to fc31, with the corresponding deps not being available outside the side tag https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/YWYKFYTSALNFUED5HMFU4CK65PUANJKM/ (do read the whole thread) Grafana is a leaf package so it can get done when all the stack below is finished
(In reply to Nicolas Mailhot from comment #2) > @jcajka > > As you know perfectly well, this is due to the whole Go dependency pile > being cleaned up in a side-tag to fc31, with the corresponding deps not > being available outside the side tag > > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ > message/YWYKFYTSALNFUED5HMFU4CK65PUANJKM/ > > (do read the whole thread) > > Grafana is a leaf package so it can get done when all the stack below is > finished I don't know. There hasn't been any information that you plan to do all the work directly in rawhide(breaking it for the time before all the work is finished, blocking any devel in it). It seems that it didn't reach out to all the package maintainers either, thus this bug report. Thanks for clarification and confirmation that this is caused by your changes.
Could you try again? We have merged f31-go, everything should work now.
Hi Zebob, I ran a new scratch build - it's now very close to building the root, but no cigar : DEBUG util.py:587: Package go-srpm-macros-3.0.8-3.fc31.noarch is already installed. DEBUG util.py:585: BUILDSTDERR: No matching package to install: 'golang(github.com/go-yaml/yaml)' DEBUG util.py:585: BUILDSTDERR: Not all dependencies satisfied DEBUG util.py:585: BUILDSTDERR: Error: Some packages could not be found. DEBUG util.py:734: Child return code was: 1 DEBUG util.py:323: kill orphans Full logs at https://kojipkgs.fedoraproject.org//work/tasks/6696/36156696/root.log Perhaps go-yaml has changed name or something?? On f29: rpm -q --whatprovides 'golang(github.com/go-yaml/yaml)' golang-gopkg-yaml-devel-v2-2.2.2-27.20190219git51d6538.fc29.noarch But I dont see golang-gopkg-yaml-devel-v2 in rawhide at https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/g/ Regards
ah - it's been renamed - $ fedpkg clone golang-gopkg-yaml Cloning into 'golang-gopkg-yaml'... remote: Counting objects: 115, done. remote: Compressing objects: 100% (111/111), done. remote: Total 115 (delta 36), reused 8 (delta 0) Receiving objects: 100% (115/115), 21.17 KiB | 4.23 MiB/s, done. Resolving deltas: 100% (36/36), done. $ cd !$ cd golang-gopkg-yaml $ ls dead.package shack:mgoodwin@~/src/fedora/golang-gopkg-yaml[master]$ cat dead.package Renamed to golang-gopkg-yaml-1
What version does Grafana needs? github.com/go-yaml/yaml a 3 different versions, so you shouldn't use that import path directly. It seems from the go.mod, that it needs the v2, so use gopkg.in/yaml.v2 as the import path.
(In reply to Robert-André Mauchin from comment #7) > What version does Grafana needs? github.com/go-yaml/yaml a 3 different > versions, so you shouldn't use that import path directly. It seems from the > go.mod, that it needs the v2, so use gopkg.in/yaml.v2 as the import path. thanks, gopkg.in/yaml.v2 seems to be fine and the build root is successfully built in rawhide now (but then the build phase fails for an unrelated reason involving prometheus/tsdb). I'll work on updating grafana to v6.2.5 to fix that. Regards