From 1df09b1f0586b6303da07075352a79118675b693 Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 29 Dec 2025 09:50:37 -0300 Subject: [PATCH] mlibc: bump --- patches/mlibc/jinx-working-patch.patch | 20 ++++++++++++++++++++ recipes/libsmarter | 18 ++++++++++++++++++ recipes/mlibc | 2 +- source-recipes/frigg | 4 ++-- source-recipes/libsmarter | 9 +++++++++ source-recipes/mlibc | 4 ++-- 6 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 recipes/libsmarter create mode 100644 source-recipes/libsmarter diff --git a/patches/mlibc/jinx-working-patch.patch b/patches/mlibc/jinx-working-patch.patch index 355a8676..94a0e24a 100644 --- a/patches/mlibc/jinx-working-patch.patch +++ b/patches/mlibc/jinx-working-patch.patch @@ -1,3 +1,23 @@ +diff --git mlibc-clean/options/ansi/generic/wchar.cpp mlibc-workdir/options/ansi/generic/wchar.cpp +index b44ebc2..9339316 100644 +--- mlibc-clean/options/ansi/generic/wchar.cpp ++++ mlibc-workdir/options/ansi/generic/wchar.cpp +@@ -54,8 +54,13 @@ size_t mbrlen(const char *__restrict mbs, size_t mb_limit, mbstate_t *__restrict + + mlibc::code_seq nseq{mbs, mbs + mb_limit}; + mlibc::code_seq wseq{&wc, &wc + 1}; +- if(auto e = cc->decode_wtranscode(nseq, wseq, *stp); e != mlibc::charcode_error::null) +- __ensure(!"decode_wtranscode() errors are not handled"); ++ if(auto e = cc->decode_wtranscode(nseq, wseq, *stp); e != mlibc::charcode_error::null) { ++ if(e == mlibc::charcode_error::input_underflow) ++ return static_cast(-1); ++ __ensure(e == mlibc::charcode_error::illegal_input); ++ errno = EILSEQ; ++ return static_cast(-1); ++ } + return nseq.it - mbs; + } + diff --git mlibc-clean/options/glibc/generic/execinfo.cpp mlibc-workdir/options/glibc/generic/execinfo.cpp index 1ed110d..ded9114 100644 --- mlibc-clean/options/glibc/generic/execinfo.cpp diff --git a/recipes/libsmarter b/recipes/libsmarter new file mode 100644 index 00000000..6d81617a --- /dev/null +++ b/recipes/libsmarter @@ -0,0 +1,18 @@ +name=libsmarter +from_source=libsmarter +revision=1 +hostdeps="xgcc xbinutils pkgconfig" +imagedeps="meson ninja-build build-essential" + +configure() { + meson --cross-file ${base_dir}/util/crossfile --prefix=${prefix} ${source_dir} --includedir="share/mlibc-build/libsmarter/include" +} + +build() { + ninja +} + +package() { + DESTDIR=${dest_dir} ninja install +} + diff --git a/recipes/mlibc b/recipes/mlibc index a357b2c3..f94c6015 100644 --- a/recipes/mlibc +++ b/recipes/mlibc @@ -2,7 +2,7 @@ name=mlibc from_source=mlibc revision=1 hostdeps="xgcc xbinutils pkgconfig" -builddeps="freestnd-c-hdrs freestnd-cxx-hdrs frigg" +builddeps="freestnd-c-hdrs freestnd-cxx-hdrs frigg libsmarter" imagedeps="meson ninja-build git build-essential binutils" deps="mlibc-headers" diff --git a/source-recipes/frigg b/source-recipes/frigg index c9f667b7..dea8018f 100644 --- a/source-recipes/frigg +++ b/source-recipes/frigg @@ -1,8 +1,8 @@ name=frigg -version=a07d90225def2c6177f0cc271bfff62e466b04eb +version=6355f7677fa39156aeb77603d246d977531e28ee source_method=tarball tarball_url="https://github.com/managarm/frigg/archive/${version}.tar.gz" -tarball_sha512=c4bf752a26233bd4b57a8bf4abe3d78c9dd5193d8dc2f9d86ea5f9c9f0f9220eccf73b95016cd22b807501ad46c9cfd0e22e86b157f5bf64c1a8e158dd2c6b53 +tarball_sha512=48bba34936929886bb240758bcd8b8bf2408152a56172a1cbbcca05ee76bc55f04b3c8cb7a11cdb1e5f1017fd4557ca8e23585b3735182796935f78c3aa7f13f prepare() { true diff --git a/source-recipes/libsmarter b/source-recipes/libsmarter new file mode 100644 index 00000000..f75dfea4 --- /dev/null +++ b/source-recipes/libsmarter @@ -0,0 +1,9 @@ +name=libsmarter +version=338cce63b22c85557c9274ad8ecfc8423a14024d +source_method=tarball +tarball_url="https://github.com/managarm/libsmarter/archive/${version}.tar.gz" +tarball_sha512=1e890b46ede79f7b6ca765925173795a6e9d18f01337422b12a754db4c646856eb9ab6b0944d149a697cace0f5877d6d65eb6f904c2a619981226591241e5ae6 + +prepare() { + true +} diff --git a/source-recipes/mlibc b/source-recipes/mlibc index 4fb4d533..ea929e88 100644 --- a/source-recipes/mlibc +++ b/source-recipes/mlibc @@ -1,8 +1,8 @@ name=mlibc -version=774251b74b11a7fe4d3fce9ea45d2e9c56e1f478 +version=d6a7ab7b9a17e3b8e40ba32dd41a9dc7c394434e source_method=tarball tarball_url="https://github.com/managarm/mlibc/archive/${version}.tar.gz" -tarball_sha512="0373862e379c4eff992a77ba2b12fe74840c210318045b1f3bbfe061b33a3a873630cc2bac5692f00ff7e111505fc7e310beb02664ae6038418469e3461f7c02" +tarball_sha512="6f96f66a3840e70c24a68f39fe438ba12ee64120921278572579958b34e37398872a049acaf0385907c33441c105b2cb2b7664bfbb5b7529a750bff892787ee9" prepare() { true