From 76f1a2cd1a585f4f89867925b448b9e055573dec Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Sun, 22 Oct 2023 11:01:21 +0100 Subject: [PATCH] app-misc/mc: skip problematic iconv-related test on musl Obviously not a proper solution but I really need upstream feedback on this, and they have yet to even acknowledge the relevant bug on their tracker. Url: https://midnight-commander.org/ticket/4495 Signed-off-by: Marek Szuba --- app-misc/mc/files/mc-4.8.30-musl-tests.patch | 15 +++++++++++++++ app-misc/mc/mc-4.8.30-r1.ebuild | 5 ++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 app-misc/mc/files/mc-4.8.30-musl-tests.patch diff --git a/app-misc/mc/files/mc-4.8.30-musl-tests.patch b/app-misc/mc/files/mc-4.8.30-musl-tests.patch new file mode 100644 index 0000000000000..0e8ea32e29904 --- /dev/null +++ b/app-misc/mc/files/mc-4.8.30-musl-tests.patch @@ -0,0 +1,15 @@ +--- a/tests/lib/vfs/path_len.c ++++ b/tests/lib/vfs/path_len.c +@@ -89,12 +89,6 @@ + "/тестовый/путь", + 26 + }, +-#ifdef HAVE_CHARSET +- { /* 3. */ +- "/#enc:KOI8-R/тестовый/путь", +- 38 +- }, +-#endif /* HAVE_CHARSET */ + }; + /* *INDENT-ON* */ + diff --git a/app-misc/mc/mc-4.8.30-r1.ebuild b/app-misc/mc/mc-4.8.30-r1.ebuild index 8bd59fa87beb1..170bcb1bb4dd0 100644 --- a/app-misc/mc/mc-4.8.30-r1.ebuild +++ b/app-misc/mc/mc-4.8.30-r1.ebuild @@ -55,7 +55,10 @@ PATCHES=( src_prepare() { default - # patch touches configure.ac + + # Bug #906194 + use elibc_musl && eapply "${FILESDIR}"/${PN}-4.8.30-musl-tests.patch + eautoreconf }