aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-21 23:31:07 +0900
committerOphestra <cat@gensokyo.uk>2026-01-21 23:31:45 +0900
commitd7d058fdc512bc3c09643bb3a3ad04d95aba261b (patch)
treed0f69103c1c60ba830060e0096327508d6f37abe /internal
parent84795b5d9f024e7f170731dda894a9f517bc073f (diff)
internal/rosa/gnu: disable broken tests
These are documented as broken via comments yet not disabled on musl for some reason. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/gnu.go22
1 files changed, 19 insertions, 3 deletions
diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go
index 8b95c675..b509cf56 100644
--- a/internal/rosa/gnu.go
+++ b/internal/rosa/gnu.go
@@ -33,13 +33,16 @@ func (t Toolchain) NewM4() pkg.Artifact {
return t.New("m4-"+version, []pkg.Artifact{
t.NewMake(),
}, nil, nil, `
+cd /usr/src/m4
+chmod +w tests/test-c32ispunct.sh && echo '#!/bin/sh' > tests/test-c32ispunct.sh
+
cd "$(mktemp -d)"
/usr/src/m4/configure \
--prefix=/system \
--build="${ROSA_TRIPLE}"
make "-j$(nproc)" check
make DESTDIR=/work install
-`, pkg.Path(AbsUsrSrc.Append("m4"), false, pkg.NewHTTPGetTar(
+`, pkg.Path(AbsUsrSrc.Append("m4"), true, pkg.NewHTTPGetTar(
nil,
"https://ftp.gnu.org/gnu/m4/m4-"+version+".tar.bz2",
mustDecode(checksum),
@@ -82,13 +85,26 @@ func (t Toolchain) NewGettext() pkg.Artifact {
return t.New("gettext-"+version, []pkg.Artifact{
t.NewMake(),
}, nil, nil, `
+cd /usr/src/gettext
+test_disable() { chmod +w "$2" && echo "$1" > "$2"; }
+
+test_disable '#!/bin/sh' gettext-tools/tests/msgcat-22
+test_disable '#!/bin/sh' gettext-tools/tests/msgconv-2
+test_disable '#!/bin/sh' gettext-tools/tests/msgconv-8
+test_disable '#!/bin/sh' gettext-tools/tests/xgettext-python-3
+test_disable '#!/bin/sh' gettext-tools/tests/msgmerge-compendium-6
+test_disable '#!/bin/sh' gettext-tools/tests/gettextpo-1
+test_disable '#!/bin/sh' gettext-tools/tests/format-c-5
+test_disable '#!/bin/sh' gettext-tools/gnulib-tests/test-c32ispunct.sh
+test_disable 'int main(){return 0;}' gettext-tools/gnulib-tests/test-stdcountof-h.c
+
cd "$(mktemp -d)"
/usr/src/gettext/configure \
--prefix=/system \
--build="${ROSA_TRIPLE}"
-make "-j$(nproc)"
+make "-j$(nproc)" check
make DESTDIR=/work install
-`, pkg.Path(AbsUsrSrc.Append("gettext"), false, pkg.NewHTTPGetTar(
+`, pkg.Path(AbsUsrSrc.Append("gettext"), true, pkg.NewHTTPGetTar(
nil,
"https://ftp.gnu.org/pub/gnu/gettext/gettext-"+version+".tar.gz",
mustDecode(checksum),