aboutsummaryrefslogtreecommitdiffstats
path: root/main/gettext/musl-realpath.patch
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2021-01-13 17:01:55 +0100
committerLeo <thinkabit.ukim@gmail.com>2021-01-14 22:00:31 +0000
commitf8d500fddcd7432ba711fea82ba0e55cb626592c (patch)
tree8e35cf4c2b3d8b2fdd9bf3dc8e3cf43def32aeca /main/gettext/musl-realpath.patch
parent159f660943949d618c2d0d7a4ccf7a876ee28bfe (diff)
downloadaports-f8d500fddcd7432ba711fea82ba0e55cb626592c.tar.gz
aports-f8d500fddcd7432ba711fea82ba0e55cb626592c.tar.bz2
aports-f8d500fddcd7432ba711fea82ba0e55cb626592c.tar.xz
main/gettext: upgrade to 0.21
Diffstat (limited to 'main/gettext/musl-realpath.patch')
-rw-r--r--main/gettext/musl-realpath.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/gettext/musl-realpath.patch b/main/gettext/musl-realpath.patch
index 009ebfd95f..05cb14f753 100644
--- a/main/gettext/musl-realpath.patch
+++ b/main/gettext/musl-realpath.patch
@@ -1,3 +1,11 @@
+https://gitlab.alpinelinux.org/alpine/aports/-/issues/12295
+
+----
+test-canonicalize.c:339: assertion 'strcmp (result1, "/") == 0' failed
+Aborted (core dumped)
+FAIL test-canonicalize (exit status: 134)
+----
+
diff --git a/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c b/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c
index ff82981..17842e8 100644
--- a/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c
@@ -13,3 +21,20 @@ index ff82981..17842e8 100644
}
else
#endif
+--- a/gettext-tools/gnulib-tests/test-canonicalize.c
++++ b/gettext-tools/gnulib-tests/test-canonicalize.c
+@@ -336,10 +336,10 @@
+ ASSERT (stat ("//", &st2) == 0);
+ if (SAME_INODE (st1, st2))
+ {
+- ASSERT (strcmp (result1, "/") == 0);
+- ASSERT (strcmp (result2, "/") == 0);
+- ASSERT (strcmp (result3, "/") == 0);
+- ASSERT (strcmp (result4, "/") == 0);
++ ASSERT (strcmp (result1, "/") == 0 || strcmp (result1, "//") == 0);
++ ASSERT (strcmp (result2, "/") == 0 || strcmp (result2, "//") == 0);
++ ASSERT (strcmp (result3, "/") == 0 || strcmp (result3, "//") == 0);
++ ASSERT (strcmp (result4, "/") == 0 || strcmp (result4, "//") == 0);
+ }
+ else
+ {