diff options
author | Stelios Tsampas | 2023-03-19 11:40:09 +0200 |
---|---|---|
committer | Stelios Tsampas | 2023-03-19 11:40:48 +0200 |
commit | fd1281d9b2edd1f9dd0d6e3387e5567e2bfe9d4a (patch) | |
tree | a0eb7f6a2dc39feb56b82b55d3e6d9df4967ea7b | |
parent | 6868fbfff2dddc0a18048520aad3e6bbdcb8b568 (diff) | |
download | aur-fd1281d9b2edd1f9dd0d6e3387e5567e2bfe9d4a.tar.gz |
[proton] Don't update cargo crates
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | 0001-AUR-Pkgbuild-changes.patch (renamed from 0001-AUR-pkgbuild-changes.patch) | 38 | ||||
-rw-r--r-- | 0002-AUR-Do-not-update-cargo-crates.patch | 25 | ||||
-rw-r--r-- | PKGBUILD | 19 | ||||
-rw-r--r-- | PKGBUILD.testing | 18 |
5 files changed, 74 insertions, 34 deletions
@@ -1,7 +1,7 @@ pkgbase = proton pkgdesc = Compatibility tool for Steam Play based on Wine and additional components pkgver = 7.0.6.5 - pkgrel = 1 + pkgrel = 2 epoch = 1 url = https://github.com/ValveSoftware/Proton install = proton.install @@ -242,7 +242,8 @@ pkgbase = proton source = https://dl.winehq.org/wine/wine-gecko/2.47.3/wine-gecko-2.47.3-x86_64.tar.xz source = https://github.com/madewokherd/wine-mono/releases/download/wine-mono-7.4.0/wine-mono-7.4.0-x86.tar.xz source = 0001-wldap32-25946b48148784e8275c1685f6498ab88f553ca3.patch - source = 0001-AUR-pkgbuild-changes.patch + source = 0001-AUR-Pkgbuild-changes.patch + source = 0002-AUR-Do-not-update-cargo-crates.patch sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP @@ -270,6 +271,7 @@ pkgbase = proton sha256sums = 0beac419c20ee2e68a1227b6e3fa8d59fec0274ed5e82d0da38613184716ef75 sha256sums = 9249ece664bcf2fecb1308ea1d2542c72923df9fe3df891986f137b2266a9ba3 sha256sums = 11aa65bb6b8da1814557edf18a3cdada80135b021634236feabf93d2a194838b - sha256sums = 4ef6d327b35eb3e91b2060c78971fae1b1c3d25b06cf436724646213fac5bc49 + sha256sums = 6aca033616cc556d7d3c3708ccbe3438ad563c490e15e257efe6d38389dd5f91 + sha256sums = 9c107461440cb8cd7d54f994b235dc0be6a11370e0a60578523633c07024c976 pkgname = proton diff --git a/0001-AUR-pkgbuild-changes.patch b/0001-AUR-Pkgbuild-changes.patch index bc18b905bc57..ded02db06b56 100644 --- a/0001-AUR-pkgbuild-changes.patch +++ b/0001-AUR-Pkgbuild-changes.patch @@ -1,7 +1,7 @@ -From b452adc335f4542523ec151e670d4a215e68e997 Mon Sep 17 00:00:00 2001 +From fdff8b47e80a2226b989fd4b6a6892ca78b4ebf2 Mon Sep 17 00:00:00 2001 From: Stelios Tsampas <loathingkernel@gmail.com> -Date: Mon, 18 Oct 2021 21:31:31 +0300 -Subject: [PATCH] AUR pkgbuild changes +Date: Tue, 7 Feb 2023 21:58:22 +0200 +Subject: [PATCH 1/2] AUR Pkgbuild changes --- Makefile.in | 69 ++++++++++++++++++++++++++++------ @@ -18,7 +18,7 @@ Subject: [PATCH] AUR pkgbuild changes 11 files changed, 86 insertions(+), 32 deletions(-) diff --git a/Makefile.in b/Makefile.in -index 546cac8..f281d6e 100644 +index b2dad5d9..afcd655c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -63,7 +63,6 @@ ifeq ($(ENABLE_CCACHE),1) @@ -224,7 +224,7 @@ index 546cac8..f281d6e 100644 $(micross.ttf): $(noto_sans.ttf) $(noto_sans_arabic.ttf) $(noto_sans_armenian.ttf) $(noto_sans_bengali.ttf) $(noto_sans_coptic.ttf) \ $(noto_sans_georgian.ttf) $(noto_sans_gujarati.ttf) $(noto_sans_hebrew.ttf) $(noto_sans_khmer.ttf) $(noto_sans_tamil.ttf) \ diff --git a/compatibilitytool.vdf.template b/compatibilitytool.vdf.template -index 5ac60e8..e580cd2 100644 +index 5ac60e8b..e580cd20 100644 --- a/compatibilitytool.vdf.template +++ b/compatibilitytool.vdf.template @@ -14,7 +14,7 @@ @@ -237,7 +237,7 @@ index 5ac60e8..e580cd2 100644 "from_oslist" "windows" "to_oslist" "linux" diff --git a/configure.sh b/configure.sh -index d743876..90b7aae 100755 +index 34e5bb0f..66bfbb1f 100755 --- a/configure.sh +++ b/configure.sh @@ -126,6 +126,7 @@ function configure() { @@ -257,7 +257,7 @@ index d743876..90b7aae 100755 stat "Using $arg_container_engine." diff --git a/make/rules-autoconf.mk b/make/rules-autoconf.mk -index 0827caa..4e6d19f 100644 +index 0827caa9..4e6d19f2 100644 --- a/make/rules-autoconf.mk +++ b/make/rules-autoconf.mk @@ -31,9 +31,9 @@ $$(OBJ)/.$(1)-configure$(3): $$(OBJ)/.$(1)-pre-configure @@ -273,14 +273,14 @@ index 0827caa..4e6d19f 100644 endif endef diff --git a/make/rules-cargo.mk b/make/rules-cargo.mk -index b2af34c..c132fff 100644 +index b2af34ca..5ebcf009 100644 --- a/make/rules-cargo.mk +++ b/make/rules-cargo.mk @@ -14,8 +14,10 @@ $$(OBJ)/.$(1)-configure$(3): $$(OBJ)/.$(1)-build$(3): @echo ":: building $(3)bit $(1)..." >&2 cd $$($(2)_SRC) && env $$($(2)_ENV$(3)) \ -+ cargo update --offline --verbose ++ cargo update --locked --offline --verbose --workspace + cd $$($(2)_SRC) && env $$($(2)_ENV$(3)) \ cargo build \ - $$(filter -j%,$$(MAKEFLAGS)) \ @@ -289,7 +289,7 @@ index b2af34c..c132fff 100644 --target-dir $$($(2)_OBJ$(3)) \ $$(CARGO_BUILD_ARG) \ diff --git a/make/rules-cmake.mk b/make/rules-cmake.mk -index c70751a..1096dc1 100644 +index c70751a2..1096dc19 100644 --- a/make/rules-cmake.mk +++ b/make/rules-cmake.mk @@ -28,9 +28,9 @@ $$(OBJ)/.$(1)-configure$(3): $$($(2)_SRC)/CMakeLists.txt @@ -305,7 +305,7 @@ index c70751a..1096dc1 100644 endif endef diff --git a/make/rules-common.mk b/make/rules-common.mk -index 115c2b0..c6bf0ef 100644 +index 115c2b03..c6bf0ef6 100644 --- a/make/rules-common.mk +++ b/make/rules-common.mk @@ -113,7 +113,11 @@ $(2)_LIBFLAGS$(3) = $$(foreach d,$$($(2)_DEPS$(3)),-L$$($$(d)_LIBDIR$(3))) \ @@ -359,7 +359,7 @@ index 115c2b0..c6bf0ef 100644 LIBDIR_WINE_32 := wine/i386-unix diff --git a/make/rules-configure.mk b/make/rules-configure.mk -index d04a3c5..18ac684 100644 +index d04a3c53..18ac684e 100644 --- a/make/rules-configure.mk +++ b/make/rules-configure.mk @@ -26,9 +26,9 @@ $$(OBJ)/.$(1)-configure$(3): @@ -375,7 +375,7 @@ index d04a3c5..18ac684 100644 endif endef diff --git a/make/rules-meson.mk b/make/rules-meson.mk -index d603bfd..3fd3d47 100644 +index d603bfde..3fd3d47f 100644 --- a/make/rules-meson.mk +++ b/make/rules-meson.mk @@ -47,6 +47,7 @@ $$(OBJ)/.$(1)-configure$(3): $$($(2)_SRC)/meson.build @@ -396,7 +396,7 @@ index d603bfd..3fd3d47 100644 endif endef diff --git a/make/rules-winemaker.mk b/make/rules-winemaker.mk -index 69688a0..1c0d1d3 100644 +index 69688a03..1c0d1d3b 100644 --- a/make/rules-winemaker.mk +++ b/make/rules-winemaker.mk @@ -29,7 +29,7 @@ $$(OBJ)/.$(1)-build$(3): @@ -409,10 +409,10 @@ index 69688a0..1c0d1d3 100644 winebuild --$(lastword $(subst ., ,$(4))) --fake-module -E "$(basename $(4)).spec" -o "$(4).fake" mkdir -p $$($(2)_LIBDIR$(3))/$(LIBDIR_WINE_$(3)) diff --git a/proton b/proton -index 719f8e3..92662ea 100755 +index 37dbecd0..89f24228 100755 --- a/proton +++ b/proton -@@ -417,7 +417,6 @@ class Proton: +@@ -423,7 +423,6 @@ class Proton: self.wine_bin = self.bin_dir + "wine" self.wine64_bin = self.bin_dir + "wine64" self.wineserver_bin = self.bin_dir + "wineserver" @@ -420,7 +420,7 @@ index 719f8e3..92662ea 100755 def path(self, d): return self.base_dir + d -@@ -1506,8 +1505,6 @@ if __name__ == "__main__": +@@ -1518,8 +1517,6 @@ if __name__ == "__main__": g_proton = Proton(os.path.dirname(sys.argv[0])) @@ -429,7 +429,7 @@ index 719f8e3..92662ea 100755 g_compatdata = CompatData(os.environ["STEAM_COMPAT_DATA_PATH"]) -@@ -1516,7 +1513,8 @@ if __name__ == "__main__": +@@ -1528,7 +1525,8 @@ if __name__ == "__main__": g_session.init_wine() if g_proton.missing_default_prefix(): @@ -440,5 +440,5 @@ index 719f8e3..92662ea 100755 g_session.init_session(sys.argv[1] != "runinprefix") -- -2.38.1 +2.40.0 diff --git a/0002-AUR-Do-not-update-cargo-crates.patch b/0002-AUR-Do-not-update-cargo-crates.patch new file mode 100644 index 000000000000..207392221659 --- /dev/null +++ b/0002-AUR-Do-not-update-cargo-crates.patch @@ -0,0 +1,25 @@ +From 6ec4db701be89b95218be1f64a04892ed6b906bd Mon Sep 17 00:00:00 2001 +From: Stelios Tsampas <loathingkernel@gmail.com> +Date: Sun, 19 Mar 2023 10:56:59 +0200 +Subject: [PATCH 2/2] AUR Do not update cargo crates + +--- + make/rules-cargo.mk | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/make/rules-cargo.mk b/make/rules-cargo.mk +index 5ebcf009..4f5c3162 100644 +--- a/make/rules-cargo.mk ++++ b/make/rules-cargo.mk +@@ -14,8 +14,6 @@ $$(OBJ)/.$(1)-configure$(3): + $$(OBJ)/.$(1)-build$(3): + @echo ":: building $(3)bit $(1)..." >&2 + cd $$($(2)_SRC) && env $$($(2)_ENV$(3)) \ +- cargo update --locked --offline --verbose --workspace +- cd $$($(2)_SRC) && env $$($(2)_ENV$(3)) \ + cargo build \ + -j$$(SUBJOBS) --locked --offline --verbose \ + --target "$$(CARGO_TARGET_$(3))" \ +-- +2.40.0 + @@ -6,7 +6,7 @@ _commit= pkgver=7.0.6.5 # pkgver=${_srctag//-/.} _geckover=2.47.3 _monover=7.4.0 -pkgrel=1 +pkgrel=2 epoch=1 pkgdesc="Compatibility tool for Steam Play based on Wine and additional components" url="https://github.com/ValveSoftware/Proton" @@ -129,7 +129,11 @@ source=( https://dl.winehq.org/wine/wine-gecko/${_geckover}/wine-gecko-${_geckover}-x86{,_64}.tar.xz https://github.com/madewokherd/wine-mono/releases/download/wine-mono-${_monover}/wine-mono-${_monover}-x86.tar.xz 0001-wldap32-25946b48148784e8275c1685f6498ab88f553ca3.patch - 0001-AUR-pkgbuild-changes.patch + 0001-AUR-Pkgbuild-changes.patch + 0002-AUR-Do-not-update-cargo-crates.patch +) +# Optional patches +source+=( ) noextract=( wine-gecko-${_geckover}-{x86,x86_64}.tar.xz @@ -237,7 +241,6 @@ prepare() { pushd $submodule export RUSTUP_TOOLCHAIN=stable export CARGO_HOME="${SRCDEST}"/proton-cargo - cargo update cargo fetch --locked --target "i686-unknown-linux-gnu" cargo fetch --locked --target "x86_64-unknown-linux-gnu" popd @@ -252,7 +255,8 @@ prepare() { patch -p1 -i "$srcdir"/0001-wldap32-25946b48148784e8275c1685f6498ab88f553ca3.patch popd - patch -p1 -i "$srcdir"/0001-AUR-pkgbuild-changes.patch + patch -p1 -i "$srcdir"/0001-AUR-Pkgbuild-changes.patch + patch -p1 -i "$srcdir"/0002-AUR-Do-not-update-cargo-crates.patch # Remove repos from srcdir to save space for submodule in "${_submodules[@]}"; do @@ -368,4 +372,9 @@ sha256sums=('SKIP' '0beac419c20ee2e68a1227b6e3fa8d59fec0274ed5e82d0da38613184716ef75' '9249ece664bcf2fecb1308ea1d2542c72923df9fe3df891986f137b2266a9ba3' '11aa65bb6b8da1814557edf18a3cdada80135b021634236feabf93d2a194838b' - '4ef6d327b35eb3e91b2060c78971fae1b1c3d25b06cf436724646213fac5bc49') + '6aca033616cc556d7d3c3708ccbe3438ad563c490e15e257efe6d38389dd5f91' + '9c107461440cb8cd7d54f994b235dc0be6a11370e0a60578523633c07024c976') +# Optional patches +sha256sums+=( +) + diff --git a/PKGBUILD.testing b/PKGBUILD.testing index 6cc87e5dad1a..9fe65a7229e8 100644 --- a/PKGBUILD.testing +++ b/PKGBUILD.testing @@ -6,7 +6,7 @@ _commit= pkgver=7.0.6.5 # pkgver=${_srctag//-/.} _geckover=2.47.3 _monover=7.4.0 -pkgrel=1 +pkgrel=2 epoch=1 pkgdesc="Compatibility tool for Steam Play based on Wine and additional components" url="https://github.com/ValveSoftware/Proton" @@ -129,7 +129,8 @@ source=( https://dl.winehq.org/wine/wine-gecko/${_geckover}/wine-gecko-${_geckover}-x86{,_64}.tar.xz https://github.com/madewokherd/wine-mono/releases/download/wine-mono-${_monover}/wine-mono-${_monover}-x86.tar.xz 0001-wldap32-25946b48148784e8275c1685f6498ab88f553ca3.patch - 0001-AUR-pkgbuild-changes.patch + 0001-AUR-Pkgbuild-changes.patch + 0002-AUR-Do-not-update-cargo-crates.patch ) # Optional patches source+=( @@ -240,7 +241,6 @@ prepare() { pushd $submodule export RUSTUP_TOOLCHAIN=stable export CARGO_HOME="${SRCDEST}"/proton-cargo - cargo update cargo fetch --locked --target "i686-unknown-linux-gnu" cargo fetch --locked --target "x86_64-unknown-linux-gnu" popd @@ -255,7 +255,8 @@ prepare() { patch -p1 -i "$srcdir"/0001-wldap32-25946b48148784e8275c1685f6498ab88f553ca3.patch popd - patch -p1 -i "$srcdir"/0001-AUR-pkgbuild-changes.patch + patch -p1 -i "$srcdir"/0001-AUR-Pkgbuild-changes.patch + patch -p1 -i "$srcdir"/0002-AUR-Do-not-update-cargo-crates.patch # Remove repos from srcdir to save space for submodule in "${_submodules[@]}"; do @@ -282,9 +283,9 @@ build() { # This overrides FLAGS from makepkg.conf, if you comment these you are on your own # If you want the "best" possible optimizations for your system you can use # `-march=native` and remove the `-mtune=core-avx2` option. - export CFLAGS="-O2 -march=haswell -mtune=haswell -pipe -fno-semantic-interposition" - export CXXFLAGS="-O2 -march=haswell -mtune=haswell -pipe -fno-semantic-interposition" - export RUSTFLAGS="-C opt-level=2 -C target-cpu=haswell" + export CFLAGS="-O3 -march=haswell -mtune=haswell -pipe -fno-semantic-interposition" + export CXXFLAGS="-O3 -march=haswell -mtune=haswell -pipe -fno-semantic-interposition" + export RUSTFLAGS="-C opt-level=3 -C target-cpu=haswell" export LDFLAGS="-Wl,-O1,--sort-common,--as-needed" # If using -march=native and the CPU supports AVX, launching a d3d9 @@ -374,6 +375,9 @@ sha256sums=('SKIP' '0beac419c20ee2e68a1227b6e3fa8d59fec0274ed5e82d0da38613184716ef75' '9249ece664bcf2fecb1308ea1d2542c72923df9fe3df891986f137b2266a9ba3' '11aa65bb6b8da1814557edf18a3cdada80135b021634236feabf93d2a194838b' + 'SKIP' 'SKIP') +# Optional patches sha256sums+=( ) + |