From bb7aec55f091bc17e89b4458a37b1da2aee3ba0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 17 May 2024 12:10:15 +0200 Subject: [PATCH] rebase patches MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit and drop the one that is no longer needed, since those macros/constants are no longer defined anyway. Gbp-Dch: Ignore Signed-off-by: Fabian Grünbichler --- debian/patches/debian-flags.patch | 47 ----------------------- debian/patches/disable-warning.patch | 2 +- debian/patches/dont-rebuild-install.patch | 16 ++++---- debian/patches/series | 1 - 4 files changed, 9 insertions(+), 57 deletions(-) delete mode 100644 debian/patches/debian-flags.patch diff --git a/debian/patches/debian-flags.patch b/debian/patches/debian-flags.patch deleted file mode 100644 index b173f84..0000000 --- a/debian/patches/debian-flags.patch +++ /dev/null @@ -1,47 +0,0 @@ -Author: Ximin Luo -Description: patch aligning expected definitions to Debian -peculiarities/toolchain versions. -Forwarded: not-needed - -Index: wasi-libc/expected/wasm32-wasi-threads/predefined-macros.txt -=================================================================== ---- wasi-libc.orig/expected/wasm32-wasi-threads/predefined-macros.txt -+++ wasi-libc/expected/wasm32-wasi-threads/predefined-macros.txt -@@ -1119,7 +1119,6 @@ - #define NAN (0.0f/0.0f) - #define NBBY 8 - #define NCARGS 131072 --#define NDEBUG 1 - #define ND_NA_FLAG_OVERRIDE 0x00000020 - #define ND_NA_FLAG_ROUTER 0x00000080 - #define ND_NA_FLAG_SOLICITED 0x00000040 -@@ -3112,7 +3111,7 @@ - #define and_eq &= - #define asin(x) __tg_real_complex(asin, (x)) - #define asinh(x) __tg_real_complex(asinh, (x)) --#define assert(x) (void)0 -+#define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0))) - #define atan(x) __tg_real_complex(atan, (x)) - #define atan2(x,y) __tg_real_2(atan2, (x), (y)) - #define atanh(x) __tg_real_complex(atanh, (x)) -Index: wasi-libc/expected/wasm32-wasi/predefined-macros.txt -=================================================================== ---- wasi-libc.orig/expected/wasm32-wasi/predefined-macros.txt -+++ wasi-libc/expected/wasm32-wasi/predefined-macros.txt -@@ -1119,7 +1119,6 @@ - #define NAN (0.0f/0.0f) - #define NBBY 8 - #define NCARGS 131072 --#define NDEBUG 1 - #define ND_NA_FLAG_OVERRIDE 0x00000020 - #define ND_NA_FLAG_ROUTER 0x00000080 - #define ND_NA_FLAG_SOLICITED 0x00000040 -@@ -3073,7 +3072,7 @@ - #define and_eq &= - #define asin(x) __tg_real_complex(asin, (x)) - #define asinh(x) __tg_real_complex(asinh, (x)) --#define assert(x) (void)0 -+#define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0))) - #define atan(x) __tg_real_complex(atan, (x)) - #define atan2(x,y) __tg_real_2(atan2, (x), (y)) - #define atanh(x) __tg_real_complex(atanh, (x)) diff --git a/debian/patches/disable-warning.patch b/debian/patches/disable-warning.patch index c6256b5..f38b07d 100644 --- a/debian/patches/disable-warning.patch +++ b/debian/patches/disable-warning.patch @@ -6,7 +6,7 @@ Index: wasi-libc/Makefile =================================================================== --- wasi-libc.orig/Makefile +++ wasi-libc/Makefile -@@ -310,6 +310,7 @@ CFLAGS += -Wall -Wextra -Werror \ +@@ -315,6 +315,7 @@ CFLAGS += -Wall -Wextra -Werror \ -Wno-missing-braces \ -Wno-ignored-pragmas \ -Wno-unused-but-set-variable \ diff --git a/debian/patches/dont-rebuild-install.patch b/debian/patches/dont-rebuild-install.patch index a9cf7f7..d69946d 100644 --- a/debian/patches/dont-rebuild-install.patch +++ b/debian/patches/dont-rebuild-install.patch @@ -6,25 +6,25 @@ Index: wasi-libc/Makefile =================================================================== --- wasi-libc.orig/Makefile +++ wasi-libc/Makefile -@@ -577,6 +577,8 @@ include_dirs: +@@ -584,6 +584,8 @@ include_dirs: # Remove selected header files. $(RM) $(patsubst %,$(SYSROOT_INC)/%,$(MUSL_OMIT_HEADERS)) + touch $@ + - startup_files: include_dirs + startup_files: include_dirs $(LIBC_BOTTOM_HALF_CRT_OBJS) # - # Build the startup files. -@@ -587,6 +589,8 @@ startup_files: include_dirs + # Install the startup files (crt1.o etc). +@@ -591,6 +593,8 @@ startup_files: include_dirs $(LIBC_BOTTO mkdir -p "$(SYSROOT_LIB)" && \ - mv *.o "$(SYSROOT_LIB)" + cp $(LIBC_BOTTOM_HALF_CRT_OBJS) "$(SYSROOT_LIB)" + touch $@ + libc: include_dirs \ $(SYSROOT_LIB)/libc.a \ $(SYSROOT_LIB)/libc-printscan-long-double.a \ -@@ -596,6 +600,8 @@ libc: include_dirs \ +@@ -600,6 +604,8 @@ libc: include_dirs \ $(SYSROOT_LIB)/libwasi-emulated-getpid.a \ $(SYSROOT_LIB)/libwasi-emulated-signal.a @@ -33,7 +33,7 @@ Index: wasi-libc/Makefile finish: startup_files libc # # Create empty placeholder libraries. -@@ -607,6 +613,7 @@ finish: startup_files libc +@@ -611,6 +617,7 @@ finish: startup_files libc # # The build succeeded! The generated sysroot is in $(SYSROOT). # @@ -41,7 +41,7 @@ Index: wasi-libc/Makefile # The check for defined and undefined symbols expects there to be a heap # alloctor (providing malloc, calloc, free, etc). Skip this step if the build -@@ -712,5 +719,6 @@ install: finish +@@ -722,5 +729,6 @@ install: finish clean: $(RM) -r "$(OBJDIR)" $(RM) -r "$(SYSROOT)" diff --git a/debian/patches/series b/debian/patches/series index cf9c25b..bedf490 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,2 @@ dont-rebuild-install.patch -debian-flags.patch disable-warning.patch -- 2.39.5