Ports: Update libunistring to 1.4.2

This commit is contained in:
Linus Groh authored and Lucas Chollet committed 2026-09-20 22:00:14 +02:00
1 parent 20b5b28c44
commit b5734222ef
4 files changed
+34 -3

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`libtheora`](libtheora/) | libtheora | 1.2.0 | https://www.theora.org/ |
| [`libtiff`](libtiff/) | libtiff | 4.7.2 | http://www.libtiff.org/ |
| [`libtool`](libtool/) | libtool | 2.6.2 | https://www.gnu.org/software/libtool/ |
| [`libunistring`](libunistring/) | libunistring | 1.4.1 | https://www.gnu.org/software/libunistring/ |
| [`libunistring`](libunistring/) | libunistring | 1.4.2 | https://www.gnu.org/software/libunistring/ |
| [`libuuid`](libuuid/) | libuuid (from util-linux) | 2.42.3 | https://github.com/karelzak/util-linux/tree/master/libuuid |
| [`libuv`](libuv/) | libuv | 1.51.0 | https://github.com/libuv/libuv |
| [`libvorbis`](libvorbis/) | libvorbis | 1.3.7 | https://github.com/xiph/vorbis |
+2 -2
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='libunistring'
version='1.4.1'
version='1.4.2'
files=(
"mirror://gnu/libunistring/libunistring-${version}.tar.gz#12542ad7619470efd95a623174dcd4b364f2483caf708c6bee837cb53a54cb9d"
"mirror://gnu/libunistring/libunistring-${version}.tar.gz#e82664b170064e62331962126b259d452d53b227bb4a93ab20040d846fec01d8"
)
useconfigure='true'
configopts=(
@@ -0,0 +1,24 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Eduardo Casadei <[email protected]>
Date: Thu, 10 Sep 2026 17:51:48 -0400
Subject: [PATCH] gnulib: Port getlocalename_l_unsafe to SerenityOS
---
lib/getlocalename_l-unsafe.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/getlocalename_l-unsafe.c b/lib/getlocalename_l-unsafe.c
index 665e6d62fa82c1a361c8c2933f6dc549f82affe0..5950d5bba11a5c746a860175bca5213804d567a1 100644
--- a/lib/getlocalename_l-unsafe.c
+++ b/lib/getlocalename_l-unsafe.c
@@ -658,6 +658,10 @@ getlocalename_l_unsafe (int category, locale_t locale)
};
const char *name = ((struct __locale_t *) locale)->mb_cur_max == 4 ? "C.UTF-8" : "C";
return (struct string_with_storage) { name, STORAGE_INDEFINITE };
+#elif defined __serenity__
+# undef getlocalename_l
+ const char *name = getlocalename_l (category, locale);
+ return (struct string_with_storage) { name, STORAGE_OBJECT };
#else
#error "Please port gnulib getlocalename_l-unsafe.c to your platform! Report this to bug-gnulib."
#endif
+7
View File
@@ -0,0 +1,7 @@
# Patches for libunistring on SerenityOS
## `0001-gnulib-Port-getlocalename_l_unsafe-to-SerenityOS.patch`
gnulib: Port getlocalename_l_unsafe to SerenityOS