From d7d058fdc512bc3c09643bb3a3ad04d95aba261b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 21 Jan 2026 23:31:07 +0900 Subject: [PATCH] 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 --- internal/rosa/gnu.go | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go index 8b95c67..b509cf5 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),