-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #490 from fosslinux/musl-fixup
Musl fixes
- Loading branch information
Showing
24 changed files
with
223 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
SPDX-FileCopyrightText: 2024 fosslinux <[email protected]> | ||
|
||
SPDX-License-Identifier: MIT | ||
|
||
diff --color -ru include/wchar.h include/wchar.h | ||
--- musl-chartable-tools-44d780e03e78efcb3168ceab068170206dc92e85/include/wchar.h 2024-12-21 11:29:46.207537390 +1100 | ||
+++ musl-chartable-tools-44d780e03e78efcb3168ceab068170206dc92e85/include/wchar.h 2024-12-21 12:03:00.494377416 +1100 | ||
@@ -175,10 +175,7 @@ | ||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
int wcwidth (wchar_t); | ||
int wcswidth (const wchar_t *, size_t); | ||
-int iswalnum(wint_t); | ||
-int iswalpha(wint_t); | ||
int iswblank(wint_t); | ||
-int iswcntrl(wint_t); | ||
int iswdigit(wint_t); | ||
int iswgraph(wint_t); | ||
int iswlower(wint_t); | ||
@@ -187,9 +184,6 @@ | ||
int iswspace(wint_t); | ||
int iswupper(wint_t); | ||
int iswxdigit(wint_t); | ||
-int iswctype(wint_t, wctype_t); | ||
-wint_t towlower(wint_t); | ||
-wint_t towupper(wint_t); | ||
wctype_t wctype(const char *); | ||
|
||
#ifndef __cplusplus | ||
diff --color -ru include/wctype.h include/wctype.h | ||
--- musl-chartable-tools-44d780e03e78efcb3168ceab068170206dc92e85/include/wctype.h 2024-12-21 11:29:46.207537390 +1100 | ||
+++ musl-chartable-tools-44d780e03e78efcb3168ceab068170206dc92e85/include/wctype.h 2024-12-21 12:07:48.030354351 +1100 | ||
@@ -24,10 +24,7 @@ | ||
|
||
#undef iswdigit | ||
|
||
-int iswalnum(wint_t); | ||
-int iswalpha(wint_t); | ||
int iswblank(wint_t); | ||
-int iswcntrl(wint_t); | ||
int iswdigit(wint_t); | ||
int iswgraph(wint_t); | ||
int iswlower(wint_t); | ||
@@ -36,10 +33,6 @@ | ||
int iswspace(wint_t); | ||
int iswupper(wint_t); | ||
int iswxdigit(wint_t); | ||
-int iswctype(wint_t, wctype_t); | ||
-wint_t towctrans(wint_t, wctrans_t); | ||
-wint_t towlower(wint_t); | ||
-wint_t towupper(wint_t); | ||
wctrans_t wctrans(const char *); | ||
wctype_t wctype(const char *); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <[email protected]> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
src_prepare() { | ||
default | ||
|
||
# tcc does not support complex types | ||
rm -rf src/complex | ||
} | ||
|
||
src_configure() { | ||
CC=tcc ./configure \ | ||
--host=i386 \ | ||
--disable-shared \ | ||
--prefix="${PREFIX}" \ | ||
--libdir="${LIBDIR}" \ | ||
--includedir="${PREFIX}/include" | ||
|
||
# configure script creates this file | ||
if test -f /dev/null; then | ||
rm /dev/null | ||
fi | ||
} | ||
|
||
src_compile() { | ||
make "${MAKEJOBS}" PREFIX="${PREFIX}" CROSS_COMPILE= CFLAGS="-DSYSCALL_NO_TLS" AS_CMD='as -o $@ $<' | ||
} | ||
|
||
src_install() { | ||
make PREFIX="${PREFIX}" DESTDIR="${DESTDIR}" install | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2023 Richard Masters <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
diff -r -u musl-1.2.3.orig/arch/i386/pthread_arch.h musl-1.2.3/arch/i386/pthread_arch.h | ||
--- musl-1.2.4/arch/i386/pthread_arch.h 2022-04-07 17:12:40.000000000 +0000 | ||
+++ musl-1.2.4/arch/i386/pthread_arch.h 2023-04-07 12:07:07.929132587 +0000 | ||
--- musl-1.2.5/arch/i386/pthread_arch.h 2022-04-07 17:12:40.000000000 +0000 | ||
+++ musl-1.2.5/arch/i386/pthread_arch.h 2023-04-07 12:07:07.929132587 +0000 | ||
@@ -1,8 +1,7 @@ | ||
+extern uintptr_t g_pthread; | ||
static inline uintptr_t __get_tp() | ||
|
@@ -15,16 +15,16 @@ diff -r -u musl-1.2.3.orig/arch/i386/pthread_arch.h musl-1.2.3/arch/i386/pthread | |
|
||
#define MC_PC gregs[REG_EIP] | ||
diff -r -u musl-1.2.3.orig/arch/i386/syscall_arch.h musl-1.2.3/arch/i386/syscall_arch.h | ||
--- musl-1.2.4/arch/i386/syscall_arch.h 2022-04-07 17:12:40.000000000 +0000 | ||
+++ musl-1.2.4/arch/i386/syscall_arch.h 2022-12-20 17:28:21.734839560 +0000 | ||
--- musl-1.2.5/arch/i386/syscall_arch.h 2022-04-07 17:12:40.000000000 +0000 | ||
+++ musl-1.2.5/arch/i386/syscall_arch.h 2022-12-20 17:28:21.734839560 +0000 | ||
@@ -1,3 +1,4 @@ | ||
+#define SYSCALL_NO_TLS 1 | ||
#define __SYSCALL_LL_E(x) \ | ||
((union { long long ll; long l[2]; }){ .ll = x }).l[0], \ | ||
((union { long long ll; long l[2]; }){ .ll = x }).l[1] | ||
diff -r -u musl-1.2.3.orig/src/env/__init_tls.c musl-1.2.3/src/env/__init_tls.c | ||
--- musl-1.2.4/src/env/__init_tls.c 2022-04-07 17:12:40.000000000 +0000 | ||
+++ musl-1.2.4/src/env/__init_tls.c 2023-04-07 12:07:38.677133193 +0000 | ||
--- musl-1.2.5/src/env/__init_tls.c 2022-04-07 17:12:40.000000000 +0000 | ||
+++ musl-1.2.5/src/env/__init_tls.c 2023-04-07 12:07:38.677133193 +0000 | ||
@@ -10,20 +10,19 @@ | ||
#include "syscall.h" | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
.../musl-1.2.4/patches/avoid_sys_clone.patch → .../musl-1.2.5/patches/avoid_sys_clone.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# SPDX-FileCopyrightText: 2023 Richard Masters <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
--- musl-1.2.4/src/process/posix_spawn.c 2022-04-07 17:12:40.000000000 +0000 | ||
+++ musl-1.2.4/src/process/posix_spawn.c 2023-04-07 12:01:57.217126467 +0000 | ||
--- musl-1.2.5/src/process/posix_spawn.c 2022-04-07 17:12:40.000000000 +0000 | ||
+++ musl-1.2.5/src/process/posix_spawn.c 2023-04-07 12:01:57.217126467 +0000 | ||
@@ -190,8 +190,11 @@ | ||
goto fail; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://musl.libc.org/releases/musl-1.2.5.tar.gz a9a118bbe84d8764da0ea0d28b3ab3fae8477fc7e4085d90102b8596fc7c75e4 |