From 73169a54f29d3e11c414ba46660707b0ad2a56aa Mon Sep 17 00:00:00 2001 From: fosslinux Date: Sat, 21 Dec 2024 16:25:11 +1100 Subject: [PATCH] Same regeneration for musl 1.2.4 --- steps/musl-1.2.4/pass1.sh | 15 +++++++++++++++ steps/musl-1.2.4/pass3.sh | 15 +++++++++++++++ .../patches-pass2/mkcodepage_return.patch | 1 + steps/musl-1.2.4/patches/mkcodepage_return.patch | 12 ++++++++++++ steps/musl-1.2.4/sources | 1 + 5 files changed, 44 insertions(+) create mode 120000 steps/musl-1.2.4/patches-pass2/mkcodepage_return.patch create mode 100644 steps/musl-1.2.4/patches/mkcodepage_return.patch diff --git a/steps/musl-1.2.4/pass1.sh b/steps/musl-1.2.4/pass1.sh index d6de474a..e8106755 100755 --- a/steps/musl-1.2.4/pass1.sh +++ b/steps/musl-1.2.4/pass1.sh @@ -13,6 +13,21 @@ src_get() { fi } +src_prepare() { + default + + # regenerate headers in src/ctype and src/iconv + cd ../musl-chartable-tools-78b213a868553b1154ee9627c96ff1f14a9a3b1b + cd ctype + CC=gcc make + cp alpha.h punct.h nonspacing.h wide.h ../../musl-1.2.4/src/ctype/ + cd ../iconv + CC=gcc make + cp legacychars.h codepages.h jis0208.h gb18030.h hkscs.h ksc.h revjis.h \ + ../../musl-1.2.4/src/locale/ + cd ../../musl-1.2.4 +} + src_configure() { CC=gcc ./configure \ --host=i386-unknown-linux-musl \ diff --git a/steps/musl-1.2.4/pass3.sh b/steps/musl-1.2.4/pass3.sh index b3e42263..31d5d981 100755 --- a/steps/musl-1.2.4/pass3.sh +++ b/steps/musl-1.2.4/pass3.sh @@ -4,6 +4,21 @@ # # SPDX-License-Identifier: GPL-3.0-or-later +src_prepare() { + default + + # regenerate headers in src/ctype and src/iconv + cd ../musl-chartable-tools-78b213a868553b1154ee9627c96ff1f14a9a3b1b + cd ctype + CC=gcc make + cp alpha.h punct.h nonspacing.h wide.h ../../musl-1.2.4/src/ctype/ + cd ../iconv + CC=gcc make + cp legacychars.h codepages.h jis0208.h gb18030.h hkscs.h ksc.h revjis.h \ + ../../musl-1.2.4/src/locale/ + cd ../../musl-1.2.4 +} + src_configure() { ./configure \ --host=i386-unknown-linux-musl \ diff --git a/steps/musl-1.2.4/patches-pass2/mkcodepage_return.patch b/steps/musl-1.2.4/patches-pass2/mkcodepage_return.patch new file mode 120000 index 00000000..79187c8d --- /dev/null +++ b/steps/musl-1.2.4/patches-pass2/mkcodepage_return.patch @@ -0,0 +1 @@ +../patches/mkcodepage_return.patch \ No newline at end of file diff --git a/steps/musl-1.2.4/patches/mkcodepage_return.patch b/steps/musl-1.2.4/patches/mkcodepage_return.patch new file mode 100644 index 00000000..03804893 --- /dev/null +++ b/steps/musl-1.2.4/patches/mkcodepage_return.patch @@ -0,0 +1,12 @@ +Inexplicable problem, where mkcodepage returns 3 instead of 0 on some inputs. +Compilation error? + +--- musl-chartable-tools-78b213a868553b1154ee9627c96ff1f14a9a3b1b/iconv/mkcodepage.c 2024-12-21 15:32:02.441185726 +1100 ++++ musl-chartable-tools-78b213a868553b1154ee9627c96ff1f14a9a3b1b/iconv/mkcodepage.c 2024-12-21 15:31:52.860186494 +1100 +@@ -63,4 +63,6 @@ + } + } + fputs("\"\n\n", f); ++ ++ return 0; + } diff --git a/steps/musl-1.2.4/sources b/steps/musl-1.2.4/sources index 3c0a41b9..cbc5e9be 100644 --- a/steps/musl-1.2.4/sources +++ b/steps/musl-1.2.4/sources @@ -1 +1,2 @@ https://musl.libc.org/releases/musl-1.2.4.tar.gz 7a35eae33d5372a7c0da1188de798726f68825513b7ae3ebe97aaaa52114f039 +https://github.com/richfelker/musl-chartable-tools/archive/78b213a868553b1154ee9627c96ff1f14a9a3b1b.tar.gz bb52d7c11b663c2d1c5957fd862758d1da7e65b53c0a8ecfb9110d02c04badb6