Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rfairley
Created June 20, 2019 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rfairley/f4972f450748eb6330ef3e6c103d903b to your computer and use it in GitHub Desktop.
Save rfairley/f4972f450748eb6330ef3e6c103d903b to your computer and use it in GitHub Desktop.
rust-prometheus-0.7.0-local-build.md

From checked out branch: https://src.fedoraproject.org/fork/rfairley/rpms/rust-prometheus

In a Fedora Rawhide container, with repo https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20190620.n.0/compose/Everything/x86_64/os/ enabled.

# dnf builddep -y rust-prometheus.spec
# rpmbuild -ba     --define "_sourcedir $PWD"     --define "_specdir $PWD"     --define "_builddir $PWD/.build"     --define "_srcrpmdir $PWD/rpms"     --define "_rpmdir $PWD/rpms" --define "_buildrootdir $PWD/.buildroot" rust-prometheus.spec 
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.A6LppJ
+ umask 022
+ cd /home/rfairley/dev-rfairley/repos/src.fedoraproject.org/rpms/rust-prometheus/.build
+ cd /home/rfairley/dev-rfairley/repos/src.fedoraproject.org/rpms/rust-prometheus/.build
+ rm -rf prometheus-0.7.0
+ /usr/bin/tar -xof -
+ /usr/bin/gzip -dc /home/rfairley/dev-rfairley/repos/src.fedoraproject.org/rpms/rust-prometheus/prometheus-0.7.0.crate
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd prometheus-0.7.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ set -eu
+ /usr/bin/mkdir -p .cargo
+ cat
+ /usr/bin/rm -f Cargo.lock
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.8MTD3J
+ umask 022
+ cd /home/rfairley/dev-rfairley/repos/src.fedoraproject.org/rpms/rust-prometheus/.build
+ cd prometheus-0.7.0
+ /usr/bin/cargo-inspector -BR Cargo.toml
rust-packaging
(crate(cfg-if/default) >= 0.1.0 with crate(cfg-if/default) < 0.2.0)
(crate(fnv/default) >= 1.0.0 with crate(fnv/default) < 2.0.0)
(crate(lazy_static/default) >= 1.1.0 with crate(lazy_static/default) < 2.0.0)
(crate(protobuf/default) >= 2.0.0 with crate(protobuf/default) < 3.0.0)
(crate(quick-error/default) >= 1.2.2 with crate(quick-error/default) < 2.0.0)
(crate(spin/default) >= 0.5.0 with crate(spin/default) < 0.6.0)
+ /usr/bin/cargo-inspector -TR Cargo.toml
(crate(getopts/default) >= 0.2.0 with crate(getopts/default) < 0.3.0)
(crate(hyper/default) >= 0.12.0 with crate(hyper/default) < 0.13.0)
+ RPM_EC=0
++ jobs -p
+ exit 0
error: Failed build dependencies:
	(crate(cfg-if/default) >= 0.1.0 with crate(cfg-if/default) < 0.2.0) is needed by rust-prometheus-0.7.0-1.fc31.x86_64
	(crate(fnv/default) >= 1.0.0 with crate(fnv/default) < 2.0.0) is needed by rust-prometheus-0.7.0-1.fc31.x86_64
	(crate(getopts/default) >= 0.2.0 with crate(getopts/default) < 0.3.0) is needed by rust-prometheus-0.7.0-1.fc31.x86_64
	(crate(hyper/default) >= 0.12.0 with crate(hyper/default) < 0.13.0) is needed by rust-prometheus-0.7.0-1.fc31.x86_64
	(crate(lazy_static/default) >= 1.1.0 with crate(lazy_static/default) < 2.0.0) is needed by rust-prometheus-0.7.0-1.fc31.x86_64
	(crate(protobuf/default) >= 2.0.0 with crate(protobuf/default) < 3.0.0) is needed by rust-prometheus-0.7.0-1.fc31.x86_64
	(crate(quick-error/default) >= 1.2.2 with crate(quick-error/default) < 2.0.0) is needed by rust-prometheus-0.7.0-1.fc31.x86_64
	(crate(spin/default) >= 0.5.0 with crate(spin/default) < 0.6.0) is needed by rust-prometheus-0.7.0-1.fc31.x86_64
Wrote: /home/rfairley/dev-rfairley/repos/src.fedoraproject.org/rpms/rust-prometheus/rpms/rust-prometheus-0.7.0-1.fc31.buildreqs.nosrc.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment