Skip to content

Commit 706daae

Browse files
committed
Rust: disable mingw packaging via configuration option
1 parent 1cf6b85 commit 706daae

File tree

3 files changed

+7
-74
lines changed

3 files changed

+7
-74
lines changed

mingw-w64-rust/0004-unbundle-gcc.patch

Lines changed: 0 additions & 46 deletions
This file was deleted.

mingw-w64-rust/0008-disable-self-contained.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

mingw-w64-rust/PKGBUILD

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pkgbase=mingw-w64-${_realname}
1212
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
1313
"${MINGW_PACKAGE_PREFIX}-rust-docs")
1414
pkgver=1.71.0
15-
pkgrel=1
15+
pkgrel=2
1616
pkgdesc="Systems programming language focused on safety, speed and concurrency (mingw-w64)"
1717
arch=('any')
1818
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32')
@@ -35,19 +35,17 @@ options=('staticlibs' 'strip')
3535
noextract=(${_realname}c-${pkgver}-src.tar.gz)
3636
source=("https://static.rust-lang.org/dist/${_realname}c-${pkgver}-src.tar.gz"{,.asc}
3737
"0001-rustc-llvm-fix-libs.patch"
38-
"0004-unbundle-gcc.patch"
3938
"0005-win32-config.patch"
4039
"0007-clang-subsystem.patch"
41-
"0008-disable-self-contained.patch"
42-
"0011-disable-uac-for-installer.patch")
40+
"0011-disable-uac-for-installer.patch"
41+
"https://github.com/rust-lang/rust/commit/cf4fcf82e17987949f422b8a26ae8425f87f4022.patch")
4342
sha256sums=('a667e4abdc5588ebfea35c381e319d840ffbf8d2dbfb79771730573642034c96'
4443
'SKIP'
4544
'7cb1773c288ffb1c1e751edc49b1890c84bf9c362742bc5225d19d474edb73a0'
46-
'15d897850d474afd004b071926a81f1f72b13330d0b56d565090b10f868cc766'
4745
'7d1c4e49524b835a8eadc961b39f5594b12a522a1e24368999be2c7e85399e4e'
4846
'3388c413fffeeaa84f775a176b1653b360ffba7b0c0a6f5baa0c3a95aec8827a'
49-
'a214cd8394ab7416fd170c7fa05daf701a5357d38e4e54149370e6efff208e50'
50-
'951f6278ce661136912be343ef50047ef46c409313050c711978651b301e80dd')
47+
'951f6278ce661136912be343ef50047ef46c409313050c711978651b301e80dd'
48+
'b93c75580caadee58ff28601d8ed4aa83e9ba37f3aa2dd7215e09f71cdee3fe6')
5149
validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE' # Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
5250
'474E22316ABF4785A88C6E8EA2C794A986419D8A' # Tom Stellard <tstellar@redhat.com>
5351
'B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
@@ -59,9 +57,6 @@ if [[ $_bootstrapping != "no" && $MINGW_PACKAGE_PREFIX == *-clang-aarch64 ]]; th
5957
source+=("https://github.com/mati865/rust-gnullvm-builds/releases/download/${_stage0version}-v2/cargo-${_stage0version}-dev-aarch64-pc-windows-gnullvm.tar.xz"
6058
"https://github.com/mati865/rust-gnullvm-builds/releases/download/${_stage0version}-v2/rust-std-${_stage0version}-dev-aarch64-pc-windows-gnullvm.tar.xz"
6159
"https://github.com/mati865/rust-gnullvm-builds/releases/download/${_stage0version}-v2/rustc-${_stage0version}-dev-aarch64-pc-windows-gnullvm.tar.xz")
62-
sha256sums+=('5a72ff6d89277c96f72cb7de7f35c4a3b4686b3dc6ea0d4966883e83179db0a8'
63-
'0a5087acf06faa2a02ff7f41afb7be42b22575a2ff0b3f790b6bb64418f3ea5d'
64-
'96c7877b4821fe7bb4aaa35aa8f2056d19d622902d6583d0aef8a35f3fef8dbb')
6560
noextract+=("cargo-${_stage0version}-dev-aarch64-pc-windows-gnullvm.tar.xz"
6661
"rust-std-${_stage0version}-dev-aarch64-pc-windows-gnullvm.tar.xz"
6762
"rustc-${_stage0version}-dev-aarch64-pc-windows-gnullvm.tar.xz")
@@ -85,9 +80,8 @@ prepare() {
8580
cd ${srcdir}/${_realname}c-${pkgver}-src
8681
apply_patch_with_msg \
8782
0001-rustc-llvm-fix-libs.patch \
88-
0004-unbundle-gcc.patch \
8983
0005-win32-config.patch \
90-
0008-disable-self-contained.patch
84+
cf4fcf82e17987949f422b8a26ae8425f87f4022.patch
9185

9286
if [[ $MINGW_PACKAGE_PREFIX == *-clang-i686 || $MINGW_PACKAGE_PREFIX == *-clang-x86_64 ]]; then
9387
apply_patch_with_msg \
@@ -171,6 +165,7 @@ build() {
171165
--enable-extended \
172166
--disable-llvm-static-stdcpp \
173167
--disable-codegen-tests \
168+
--set='dist.include-mingw-linker=false' \
174169
--llvm-root=${MINGW_PREFIX} \
175170
--python=${MINGW_PREFIX}/bin/python \
176171
"${_rust_conf[@]}"
@@ -190,9 +185,6 @@ build() {
190185
# move docs out of the way for splitting
191186
mv dest-rust/${MINGW_PREFIX}/share/doc dest-doc
192187

193-
rm -f dest-rust/${MINGW_PREFIX}/bin/libgcc*.dll
194-
rm -f dest-rust/${MINGW_PREFIX}/bin/libstd*.dll
195-
rm -f dest-rust/${MINGW_PREFIX}/bin/libwinpthread*.dll
196188
rm -f dest-rust/${MINGW_PREFIX}/lib/rustlib/$OSTYPE/lib/self-contained/*
197189
}
198190

0 commit comments

Comments
 (0)