]> git.proxmox.com Git - wasi-libc.git/commitdiff
rebase patches
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 17 May 2024 10:10:15 +0000 (12:10 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 17 May 2024 10:10:15 +0000 (12:10 +0200)
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 <f.gruenbichler@proxmox.com>
debian/patches/debian-flags.patch [deleted file]
debian/patches/disable-warning.patch
debian/patches/dont-rebuild-install.patch
debian/patches/series

diff --git a/debian/patches/debian-flags.patch b/debian/patches/debian-flags.patch
deleted file mode 100644 (file)
index b173f84..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-Author: Ximin Luo <infinity0@debian.org>
-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))
index c6256b55259c4a72f77d693fef8e970c92920e09..f38b07dbf5d76373d98c00eaf62d0bd9ed12c689 100644 (file)
@@ -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 \
index a9cf7f78d0b7587dadfcda4dabe6dd4f45f4d0f5..d69946dc103bb8f98889d8d438dacb350e6a65e1 100644 (file)
@@ -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)"
index cf9c25b94b208e0dfb4a517807d5fa3d46258b3d..bedf4900bf5bb6fae0d84399c2c6827042ad2aee 100644 (file)
@@ -1,3 +1,2 @@
 dont-rebuild-install.patch
-debian-flags.patch
 disable-warning.patch