Merge pull request #4170 from lazka/runtime-new-cross-remove-hack

msys2-runtime: remove workaround for too old cross compiler
This commit is contained in:
Christoph Reiter 2023-11-14 08:28:04 +01:00 committed by GitHub
commit f575803747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 30 deletions

View File

@ -1,18 +0,0 @@
--- msys2-runtime/winsup/cygwin/nlsfuncs.cc.orig 2023-09-14 22:15:33.262109300 +0200
+++ msys2-runtime/winsup/cygwin/nlsfuncs.cc 2023-09-14 22:07:27.497844600 +0200
@@ -19,6 +19,8 @@
#include "lc_msg.h"
#include "lc_era.h"
+#pragma GCC diagnostic ignored "-Wuse-after-free"
+
#define _LC(x) &lc_##x##_ptr,lc_##x##_end-lc_##x##_ptr
#define getlocaleinfo(category,type) \
@@ -1613,3 +1615,5 @@
if (ret)
internal_setlocale ();
}
+
+#pragma GCC diagnostic pop
\ No newline at end of file

View File

@ -65,8 +65,7 @@ source=('msys2-runtime'::git://sourceware.org/git/newlib-cygwin.git#tag=cygwin-$
0035-When-converting-to-a-Unix-path-avoid-double-trailing.patch 0035-When-converting-to-a-Unix-path-avoid-double-trailing.patch
0036-msys2_path_conv-pass-PC_NOFULL-to-path_conv.patch 0036-msys2_path_conv-pass-PC_NOFULL-to-path_conv.patch
0037-Revert-Cygwin-Enable-dynamicbase-on-the-Cygwin-DLL-b.patch 0037-Revert-Cygwin-Enable-dynamicbase-on-the-Cygwin-DLL-b.patch
0038-dumper-avoid-linker-problem-when-libbfd-depends-on-l.patch 0038-dumper-avoid-linker-problem-when-libbfd-depends-on-l.patch)
1000-pragma-disable-gcc-error.patch)
sha256sums=('SKIP' sha256sums=('SKIP'
'021fd67841a12ef09dd72d08e3ed4a1ccc58d38dc475bdf79ecff3a90c7d6197' '021fd67841a12ef09dd72d08e3ed4a1ccc58d38dc475bdf79ecff3a90c7d6197'
'6b6187c8e9343cf2875fe8d622762892bfb2d8087f1e510882928ec63584e4bc' '6b6187c8e9343cf2875fe8d622762892bfb2d8087f1e510882928ec63584e4bc'
@ -105,8 +104,7 @@ sha256sums=('SKIP'
'f9cf227e20e491a823d1bd8fac12f0be9d371e21239368e8b30f203a48b18995' 'f9cf227e20e491a823d1bd8fac12f0be9d371e21239368e8b30f203a48b18995'
'6defe4f95bda4ba9ec52c6aab4bb6f61e51aad5e2b5aef25dc277e108bdef553' '6defe4f95bda4ba9ec52c6aab4bb6f61e51aad5e2b5aef25dc277e108bdef553'
'9226d25556c04de2506ee6d9d8ebc1e369d456fe5ca8d335705c2dd090b3cb64' '9226d25556c04de2506ee6d9d8ebc1e369d456fe5ca8d335705c2dd090b3cb64'
'54b45f5a0b86057bdd7225d9d1d69674dfd93e923ce3b053d7129f43700b1aeb' '54b45f5a0b86057bdd7225d9d1d69674dfd93e923ce3b053d7129f43700b1aeb')
'2d9a18586e14a78d2ac52e6534f95779136452aad7dfe44b81413de942070cb4')
# Helper macros to help make tasks easier # # Helper macros to help make tasks easier #
apply_patch_with_msg() { apply_patch_with_msg() {
@ -182,13 +180,6 @@ prepare() {
0036-msys2_path_conv-pass-PC_NOFULL-to-path_conv.patch \ 0036-msys2_path_conv-pass-PC_NOFULL-to-path_conv.patch \
0037-Revert-Cygwin-Enable-dynamicbase-on-the-Cygwin-DLL-b.patch \ 0037-Revert-Cygwin-Enable-dynamicbase-on-the-Cygwin-DLL-b.patch \
0038-dumper-avoid-linker-problem-when-libbfd-depends-on-l.patch 0038-dumper-avoid-linker-problem-when-libbfd-depends-on-l.patch
# We can't use -Wno-error=use-after-free because our cross compiler
# is still gcc v10 and that doesn't know about that warning and will
# error out if we pass it as CXXFLAGS.
# TODO: remove once cross-gcc is updated
apply_git_am_with_msg \
1000-pragma-disable-gcc-error.patch
} }
build() { build() {
@ -206,7 +197,7 @@ build() {
fi fi
CFLAGS="$OPTIM -pipe -ggdb" CFLAGS="$OPTIM -pipe -ggdb"
CXXFLAGS="$OPTIM -pipe -ggdb -Wno-error=stringop-truncation -Wno-error=array-bounds -Wno-error=overloaded-virtual -Wno-narrowing" CXXFLAGS="$OPTIM -pipe -ggdb -Wno-error=stringop-truncation -Wno-error=array-bounds -Wno-error=overloaded-virtual -Wno-narrowing -Wno-use-after-free"
# otherwise it asks git which appends "-dirty" because of our uncommited patches # otherwise it asks git which appends "-dirty" because of our uncommited patches
CFLAGS+=" -DCYGPORT_RELEASE_INFO=${pkgver}" CFLAGS+=" -DCYGPORT_RELEASE_INFO=${pkgver}"