SHA256
1
0
forked from pool/sccache

Accepting request 980015 from devel:languages:rust

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/980015
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sccache?expand=0&rev=19
This commit is contained in:
Dominique Leuenberger 2022-05-31 13:47:40 +00:00 committed by Git OBS Bridge
commit ec5102ed9a
8 changed files with 32 additions and 50 deletions

View File

@ -1,37 +0,0 @@
From b1af4f10aa3ec94b2f16d092cfd9f0025a1c5f58 Mon Sep 17 00:00:00 2001
From: William Brown <william@blackhats.net.au>
Date: Sun, 27 Mar 2022 11:19:09 +1000
Subject: [PATCH] Ignore some env vars
---
src/cmdline.rs | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/cmdline.rs b/src/cmdline.rs
index 13773c7..bd89cb3 100644
--- a/src/cmdline.rs
+++ b/src/cmdline.rs
@@ -208,7 +208,19 @@ pub fn parse() -> Result<Command> {
//
// FIXME: Maybe we should strip out `LD_PRELOAD` always?
if env::var_os("RUNNING_UNDER_RR").is_some() {
- env_vars.retain(|(k, _v)| k != "LD_PRELOAD" && k != "RUNNING_UNDER_RR");
+ env_vars.retain(|(k, _v)|
+ k != "LD_PRELOAD" &&
+ k != "RUNNING_UNDER_RR" &&
+ k != "HOSTNAME" &&
+ k != "PWD" &&
+ k != "HOST" &&
+ k != "RPM_BUILD_ROOT" &&
+ k != "SOURCE_DATE_EPOCH" &&
+ k != "RPM_PACKAGE_RELEASE" &&
+ k != "MINICOM" &&
+ k != "DESTDIR" &&
+ k != "RPM_PACKAGE_VERSION"
+ );
}
Ok(Command::Compile {
--
2.32.0 (Apple Git-132)

View File

@ -1,9 +1,11 @@
<services> <services>
<service mode="disabled" name="obs_scm"> <service mode="disabled" name="obs_scm">
<param name="url">https://github.com/mozilla/sccache.git</param> <!-- <param name="url">https://github.com/mozilla/sccache.git</param> -->
<param name="url">https://github.com/Firstyear/sccache.git</param>
<param name="versionformat">@PARENT_TAG@~git@TAG_OFFSET@.%h</param> <param name="versionformat">@PARENT_TAG@~git@TAG_OFFSET@.%h</param>
<param name="scm">git</param> <param name="scm">git</param>
<param name="revision">v0.3.0</param> <!-- <param name="revision">v0.3.0</param> -->
<param name="revision">20220520-suse-maint-1</param>
<param name="match-tag">*</param> <param name="match-tag">*</param>
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param> <param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
<param name="versionrewrite-replacement">\1</param> <param name="versionrewrite-replacement">\1</param>

View File

@ -1,5 +1,9 @@
[source.crates-io] [source.crates-io]
replace-with = "vendored-sources" replace-with = "vendored-sources"
[source."https://github.com/Firstyear/opensuse-proxy-cache.git"]
git = "https://github.com/Firstyear/opensuse-proxy-cache.git"
replace-with = "vendored-sources"
[source.vendored-sources] [source.vendored-sources]
directory = "vendor" directory = "vendor"

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d781ae4a4fc9e1bff6945711258a87b85742a0cf65f7688158ffc574c11daee4
size 208944

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cc9896f29f36e62e35d3b15f561259d9d17f8ca2094827e44824ce4149911724
size 211080

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue May 24 06:28:56 UTC 2022 - William Brown <william.brown@suse.com>
- Automatic update of vendored dependencies
-------------------------------------------------------------------
Mon May 23 02:11:35 UTC 2022 - william.brown@suse.com
- Update to version 0.3.0~git4.e5e233f:
* Force concurrent disk cache by default
* Ignore some env vars
* Add experimental concurrent cache support
* Increase the MSRV and bump dependencies (#1137)
- Remove 0001-Ignore-some-env-vars.patch as it is on the maint branch
------------------------------------------------------------------- -------------------------------------------------------------------
Wed May 04 23:39:03 UTC 2022 - william.brown@suse.com Wed May 04 23:39:03 UTC 2022 - william.brown@suse.com

View File

@ -19,7 +19,7 @@
%define configdir %{_sysconfdir}/%{name} %define configdir %{_sysconfdir}/%{name}
Name: sccache Name: sccache
Version: 0.3.0~git0.f6e36e6 Version: 0.3.0~git4.a372a20
Release: 0 Release: 0
Summary: A compiler caching tool for Rust, C and C++ with optional cloud storage Summary: A compiler caching tool for Rust, C and C++ with optional cloud storage
License: (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR CC0-1.0) AND ((Apache-2.0 AND BSD-2-Clause) OR MIT) AND (Apache-2.0 OR MIT OR BSD-2-Clause) AND (Apache-2.0 OR MIT OR Zlib) AND (Apache-2.0 OR MIT OR Zlib) AND (MIT OR Unlicense) AND (Apache-2.0 OR Zlib OR MIT) AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT License: (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR CC0-1.0) AND ((Apache-2.0 AND BSD-2-Clause) OR MIT) AND (Apache-2.0 OR MIT OR BSD-2-Clause) AND (Apache-2.0 OR MIT OR Zlib) AND (Apache-2.0 OR MIT OR Zlib) AND (MIT OR Unlicense) AND (Apache-2.0 OR Zlib OR MIT) AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT
@ -33,7 +33,6 @@ Source11: sccache-dist-scheduler.service
Source12: builder.conf Source12: builder.conf
Source13: scheduler.conf Source13: scheduler.conf
Source14: client.example Source14: client.example
Patch1: 0001-Ignore-some-env-vars.patch
BuildRequires: cargo-packaging BuildRequires: cargo-packaging
BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(openssl)
Requires: bubblewrap Requires: bubblewrap
@ -47,7 +46,6 @@ the Google Cloud Storage (GCS) API.
%prep %prep
%setup -q %setup -q
%setup -qa1 %setup -qa1
%patch1 -p1
mkdir .cargo mkdir .cargo
cp %{SOURCE2} .cargo/config cp %{SOURCE2} .cargo/config
@ -57,13 +55,13 @@ find vendor -type f -name \*.rs -exec chmod -x '{}' \;
%build %build
%ifarch x86_64 %ifarch x86_64
# 'dist-server' available only on x86_64 so far - https://github.com/mozilla/sccache/issues/656 # 'dist-server' available only on x86_64 so far - https://github.com/mozilla/sccache/issues/656
features="azure,s3,redis,dist-server,dist-client" features="azure,s3,redis,dist-server,dist-client,concurrent-cache"
%else %else
%ifarch aarch64 %ifarch aarch64
features="azure,s3,redis" features="azure,s3,redis,concurrent-cache"
%else %else
# Most other arches have issues (especially with ring). Use FS cache only # Most other arches have issues (especially with ring). Use FS cache only
features="" features="concurrent-cache"
%endif %endif
%endif %endif

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:446267888b602db9dd25425bf22d9b6f12d05b5967df5906a42c720ba807ef97 oid sha256:dddbe9ed02391a3dfc8d953b33fb3a2c50e1eda7bd2063c3033ba23521905969
size 20400416 size 25339892