diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 6dca4f742bb..acc499120cf 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -314,7 +314,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`SDL_mixer`](SDL_mixer/) | SDL_mixer (Audio mixer add-on for SDL 1.2) | 1.2.12 | https://www.libsdl.org/projects/SDL_mixer/release-1.2.html | | [`SDL_sound`](SDL_sound/) | SDL_sound (Abstract soundfile decoder add-on for SDL 1.2) | 1.0.3 | https://www.icculus.org/SDL_sound/ | | [`SDLPoP`](SDLPoP/) | Prince of Persia game | 86988c6 | https://github.com/NagyD/SDLPoP | -| [`sed`](sed/) | GNU sed | 4.9 | https://www.gnu.org/software/sed/ | +| [`sed`](sed/) | GNU sed | 4.10 | https://www.gnu.org/software/sed/ | | [`serenity-theming`](serenity-theming/) | SerenityOS theming | 955c253 | https://github.com/SerenityOS/theming | | [`serious-sam-classic`](serious-sam-classic/) | Serious Sam - The First Encounter | 1.10.4 | https://github.com/tx00100xt/SeriousSamClassic | | [`sfinx`](sfinx/) | Sfinx | 1.1 | https://www.scummvm.org/games/#games-sfinx | diff --git a/Ports/sed/package.sh b/Ports/sed/package.sh index 409535196f2..f5baf6fa1f8 100755 --- a/Ports/sed/package.sh +++ b/Ports/sed/package.sh @@ -1,9 +1,11 @@ #!/usr/bin/env -S bash ../.port_include.sh -port=sed -version=4.9 -useconfigure="true" -use_fresh_config_sub="true" -config_sub_paths=("build-aux/config.sub") +port='sed' +version='4.10' +useconfigure='true' +use_fresh_config_sub='true' +config_sub_paths=( + 'build-aux/config.sub' +) files=( - "mirror://gnu/sed/sed-${version}.tar.gz#d1478a18f033a73ac16822901f6533d30b6be561bcbce46ffd7abce93602282e" + "mirror://gnu/sed/sed-${version}.tar.gz#4d179ffaf92ec4dcec541f7c032be1c3b9a1856f4970adb95a505221702f5277" ) diff --git a/Ports/sed/patches/0001-gnulib-Port-getlocalename_l_unsafe-to-SerenityOS.patch b/Ports/sed/patches/0001-gnulib-Port-getlocalename_l_unsafe-to-SerenityOS.patch new file mode 100644 index 00000000000..a539b5a68bf --- /dev/null +++ b/Ports/sed/patches/0001-gnulib-Port-getlocalename_l_unsafe-to-SerenityOS.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Eduardo Casadei +Date: Thu, 10 Sep 2026 18:00:40 -0400 +Subject: [PATCH] gnulib: Port getlocalename_l_unsafe to SerenityOS + +--- + gnulib-tests/getlocalename_l-unsafe.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/gnulib-tests/getlocalename_l-unsafe.c b/gnulib-tests/getlocalename_l-unsafe.c +index cac2f35b62b4f7b2a3b1acdf3a287b5edf92f072..33b8e09c98b7a8dc71f5cf07c5a6d43fb0e22436 100644 +--- a/gnulib-tests/getlocalename_l-unsafe.c ++++ b/gnulib-tests/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 diff --git a/Ports/sed/patches/ReadMe.md b/Ports/sed/patches/ReadMe.md new file mode 100644 index 00000000000..3022203dc75 --- /dev/null +++ b/Ports/sed/patches/ReadMe.md @@ -0,0 +1,7 @@ +# Patches for sed on SerenityOS + +## `0001-gnulib-Port-getlocalename_l_unsafe-to-SerenityOS.patch` + +gnulib: Port getlocalename_l_unsafe to SerenityOS + +