redhat-et / sigstore-rpms

Sigstore RPMs
2 stars 0 forks source link

result when trying to rpmbuild #13

Open lukehinds opened 2 years ago

lukehinds commented 2 years ago
$ rpmbuild -bb rekor.spec                                                                                                                       
]setting SOURCE_DATE_EPOCH=1650931200
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.uWvzeE
+ umask 022
+ cd /home/luke/rpmbuild/BUILD
+ cd /home/luke/rpmbuild/BUILD
+ rm -rf rekor-0.6.0
+ /usr/bin/gzip -dc /home/luke/rpmbuild/SOURCES/rekor-0.6.0.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd rekor-0.6.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ rm -fr /home/luke/rpmbuild/BUILD/rekor-0.6.0/vendor
+ [[ ! -e /home/luke/rpmbuild/BUILD/rekor-0.6.0/_build/bin ]]
+ install -m 0755 -vd /home/luke/rpmbuild/BUILD/rekor-0.6.0/_build/bin
install: creating directory '/home/luke/rpmbuild/BUILD/rekor-0.6.0/_build'
install: creating directory '/home/luke/rpmbuild/BUILD/rekor-0.6.0/_build/bin'
+ export GOPATH=/home/luke/rpmbuild/BUILD/rekor-0.6.0/_build:/usr/share/gocode
+ GOPATH=/home/luke/rpmbuild/BUILD/rekor-0.6.0/_build:/usr/share/gocode
+ [[ ! -e /home/luke/rpmbuild/BUILD/rekor-0.6.0/_build/src/github.com/sigstore/rekor ]]
++ dirname /home/luke/rpmbuild/BUILD/rekor-0.6.0/_build/src/github.com/sigstore/rekor
+ install -m 0755 -vd /home/luke/rpmbuild/BUILD/rekor-0.6.0/_build/src/github.com/sigstore
install: creating directory '/home/luke/rpmbuild/BUILD/rekor-0.6.0/_build/src'
install: creating directory '/home/luke/rpmbuild/BUILD/rekor-0.6.0/_build/src/github.com'
install: creating directory '/home/luke/rpmbuild/BUILD/rekor-0.6.0/_build/src/github.com/sigstore'
+ ln -fs /home/luke/rpmbuild/BUILD/rekor-0.6.0 /home/luke/rpmbuild/BUILD/rekor-0.6.0/_build/src/github.com/sigstore/rekor
+ cd /home/luke/rpmbuild/BUILD/rekor-0.6.0/_build/src/github.com/sigstore/rekor
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.4ANnrx
+ umask 022
+ cd /home/luke/rpmbuild/BUILD
+ cd rekor-0.6.0
+ GOPATH=/home/luke/rpmbuild/BUILD/rekor-0.6.0/_build:/usr/share/gocode
+ GO111MODULE=off
+ golist --imported --package-path github.com/sigstore/rekor --template 'golang({{.}})\n' --with-tests --skip-self
+ RPM_EC=0
++ jobs -p
+ exit 0
error: Failed build dependencies:
    golang(github.com/asaskevich/govalidator) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/blang/semver) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/cavaliercoder/go-rpm) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/cyberphone/json-canonicalization/go/src/webpki.org/jsoncanonicalizer) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/ghodss/yaml) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-chi/chi/middleware) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/errors) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/loads) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/runtime) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/runtime/client) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/runtime/flagext) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/runtime/middleware) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/runtime/security) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/runtime/yamlpc) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/spec) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/strfmt) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/swag) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-openapi/validate) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/go-playground/validator/v10) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/google/go-cmp/cmp) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/google/trillian) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/google/trillian/client) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/google/trillian/merkle/logverifier) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/google/trillian/merkle/rfc6962) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/google/trillian/types) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/in-toto/in-toto-golang/in_toto) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/jedisct1/go-minisign) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/mediocregopher/radix/v4) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/mitchellh/go-homedir) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/mitchellh/mapstructure) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/pkg/errors) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/prometheus/client_golang/prometheus) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/prometheus/client_golang/prometheus/promauto) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/prometheus/client_golang/prometheus/promhttp) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/rs/cors) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/sassoftware/relic/lib/pkcs7) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/sassoftware/relic/lib/pkcs9) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/sassoftware/relic/lib/signjar) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/sassoftware/relic/lib/x509tools) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/secure-systems-lab/go-securesystemslib/dsse) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/sigstore/sigstore/pkg/cryptoutils) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/sigstore/sigstore/pkg/signature) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/sigstore/sigstore/pkg/signature/kms/gcp) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/sigstore/sigstore/pkg/signature/options) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/spf13/cobra) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/spf13/pflag) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/spf13/viper) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/tent/canonical-json-go) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/theupdateframework/go-tuf/data) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/theupdateframework/go-tuf/verify) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(github.com/urfave/negroni) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(go.uber.org/goleak) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(go.uber.org/zap) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(go.uber.org/zap/zapcore) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(gocloud.dev/blob) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(gocloud.dev/blob/fileblob) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(gocloud.dev/blob/gcsblob) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(gocloud.dev/blob/memblob) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(golang.org/x/crypto/blake2b) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(golang.org/x/crypto/openpgp) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(golang.org/x/crypto/openpgp/armor) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(golang.org/x/crypto/openpgp/clearsign) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(golang.org/x/crypto/openpgp/packet) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(golang.org/x/crypto/ssh) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(golang.org/x/mod/sumdb/note) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(golang.org/x/net/netutil) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(golang.org/x/sync/errgroup) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(google.golang.org/genproto/googleapis/rpc/code) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(google.golang.org/grpc) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(google.golang.org/grpc/codes) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(google.golang.org/grpc/credentials/insecure) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(google.golang.org/grpc/status) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(google.golang.org/protobuf/types/known/durationpb) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(gopkg.in/ini.v1) is needed by rekor-0.6.0-1.fc34.x86_64
    golang(sigs.k8s.io/release-utils/version) is needed by rekor-0.6.0-1.fc34.x86_64
Wrote: /home/luke/rpmbuild/SRPMS/rekor-0.6.0-1.fc34.buildreqs.nosrc.rpm
font commented 2 years ago

@lukehinds The rekor.spec file is not complete, or at least I have not tested it yet, so it may not fully build successfully.

Nonetheless, also worth mentioning is that the rpmbuild -bb command does not handle installing build dependencies, of which there are many, and are the cause of the errors you are hitting. I have not personally used the rpmbuild command, but from the man page, I believe you'd have to repeatedly run rpmbuild -br and install the buildreqs.nosrc.rpm package that is produced as it states: The easiest way to ensure that all dynamic build dependencies are satisfied is to run the -br command, install the new dependencies of the buildreqs.nosrc.rpm package and repeat the whole procedure until rpmbuild no longer exits with code 11.

Otherwise, I'd suggest trying the following commands (in Fedora) as is done for trillian :

spectool -g ./rekor.spec
fedpkg -v -d --release f$(lsb_release -s -r) mockbuild