Hello community, here is the log from the commit of package sccache for openSUSE:Factory checked in at 2020-11-29 12:28:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sccache (Old) and /work/SRC/openSUSE:Factory/.sccache.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sccache" Sun Nov 29 12:28:59 2020 rev:2 rq:851176 version:0.2.13~git474.6628e1f Changes: -------- --- /work/SRC/openSUSE:Factory/sccache/sccache.changes 2020-11-23 19:04:29.786203773 +0100 +++ /work/SRC/openSUSE:Factory/.sccache.new.5913/sccache.changes 2020-11-29 12:29:02.510039412 +0100 @@ -1,0 +2,5 @@ +Wed Nov 25 14:25:45 UTC 2020 - Guillaume GARDET <[email protected]> + +- Fix build on non-x86_64 archs + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sccache.spec ++++++ --- /var/tmp/diff_new_pack.IsUogD/_old 2020-11-29 12:29:03.102040011 +0100 +++ /var/tmp/diff_new_pack.IsUogD/_new 2020-11-29 12:29:03.106040016 +0100 @@ -12,9 +12,10 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %global rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2 %define configdir %{_sysconfdir}/%{name} @@ -24,7 +25,7 @@ Summary: A compiler caching tool for Rust, C and C++ with optional cloud storage License: Apache-2.0 Group: Development/Languages/Rust -Url: https://github.com/mozilla/%{name} +URL: https://github.com/mozilla/%{name} Source0: %{name}-%{version}.tar.xz Source1: vendor.tar.xz Source2: cargo_config @@ -54,7 +55,12 @@ %build export RUSTFLAGS="%{rustflags}" -cargo build --offline --release --features=all,dist-server,dist-client +# 'dist-server' available only on x86_64 so far - https://github.com/mozilla/sccache/issues/656 +features="all,dist-client" +%ifarch x86_64 +features="$features,dist-server" +%endif +cargo build --offline --release --features=$features %install install -D -d -m 0755 %{buildroot}%{_bindir} @@ -62,14 +68,19 @@ install -D -d -m 0755 %{buildroot}%{configdir} install -m 0755 %{_builddir}/%{name}-%{version}/target/release/sccache %{buildroot}%{_bindir}/sccache +%ifarch x86_64 install -m 0755 %{_builddir}/%{name}-%{version}/target/release/sccache-dist %{buildroot}%{_bindir}/sccache-dist +%endif +%ifarch x86_64 install -m 0644 %{SOURCE10} %{buildroot}%{_unitdir}/sccache-dist-builder.service install -m 0644 %{SOURCE11} %{buildroot}%{_unitdir}/sccache-dist-scheduler.service +%endif install -m 0644 %{SOURCE12} %{buildroot}%{configdir}/builder.conf install -m 0644 %{SOURCE13} %{buildroot}%{configdir}/scheduler.conf install -m 0644 %{SOURCE14} %{buildroot}%{configdir}/client.example +%ifarch x86_64 %pre %service_add_pre sccache-dist-builder.service %service_add_pre sccache-dist-scheduler.service @@ -85,15 +96,18 @@ %postun %service_del_postun sccache-dist-builder.service %service_del_postun sccache-dist-scheduler.service +%endif %files %license LICENSE %doc README.md %{_bindir}/sccache +%ifarch x86_64 %{_bindir}/sccache-dist %{_unitdir}/sccache-dist-builder.service %{_unitdir}/sccache-dist-scheduler.service +%endif %dir %{configdir} %config(noreplace) %{configdir}/scheduler.conf _______________________________________________ openSUSE Commits mailing list -- [email protected] To unsubscribe, email [email protected] List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/[email protected]
