From c59bd1e2afb6918269fcd18d772e0d329b7ab156 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 7 Jan 2026 21:02:34 +0000 Subject: [PATCH 1/2] sdk: Add utf8proc --- sdk/Makefile | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/sdk/Makefile b/sdk/Makefile index da53edadc1..66d5640a99 100644 --- a/sdk/Makefile +++ b/sdk/Makefile @@ -62,6 +62,11 @@ VERSION_LIBCARES := 1.34.5 # https://curl.se/ VERSION_LIBCURL := 8.17.0 +# Text processing + +# https://github.com/JuliaStrings/utf8proc +VERSION_UTF8PROC := 2.11.3 + ############################################################################ # Platforms with no native iconv (AmigaOS, Atari, Windows) @@ -176,7 +181,7 @@ REPACK := $(CURDIR)/../tools/repack # Compute the SDK components SDK_ITEMS := -COMMON_SDK_ITEMS := zlib.d openssl.d libpng.d libcares.d libcurl.d libexpat.d +COMMON_SDK_ITEMS := zlib.d openssl.d libpng.d libcares.d libcurl.d libexpat.d utf8proc.d LIBCURL_SSL := openssl LIBCURL_DISABLES := $(patsubst %,--disable-%,ftp file dict ldap ldaps mqtt rtsp telnet gopher tftp pop3 imap smb smtp manual) @@ -383,6 +388,21 @@ $(BUILDSTEPS)/libiconv-gensrc.d: $(BUILDSTEPS)/builddir.d wget -q -O $(BUILDDIR)/$(subst $(SOURCEDIR)/,,$(SOURCETARBALL_LIBICONV)) "https://ftp.gnu.org/pub/gnu/libiconv/$(subst _,-,$(subst $(SOURCEDIR)/,,$(SOURCETARBALL_LIBICONV)))" touch $@ +########### +# utf8proc +########### + +$(eval $(call patched_source_rule,utf8proc,$(VERSION_UTF8PROC))) + +$(BUILDSTEPS)/utf8proc.d: $(BUILDSTEPS)/builddir.d $(BUILDSTEP_SRC_UTF8PROC) + mkdir -p $(BUILDDIR_UTF8PROC)/ns-sdk-build + cd $(BUILDDIR_UTF8PROC)/ns-sdk-build && $(env) $(UTF8PROC_ENV) $(NS_SDK_CMAKE_CMD) -DCMAKE_BUILD_TYPE=Release .. + cd $(BUILDDIR_UTF8PROC)/ns-sdk-build && $(env) make install VERBOSE=1 + touch $@ + +$(BUILDSTEPS)/utf8proc-gensrc.d: $(BUILDSTEPS)/builddir.d + wget -q -O $(BUILDDIR)/$(subst $(SOURCEDIR)/,,$(SOURCETARBALL_UTF8PROC)) "https://github.com/JuliaStrings/utf8proc/archive/refs/tags/v$(VERSION_UTF8PROC).tar.gz" + touch $@ ########### # libgnurx From 108867c77d6aa10ca9f5f2675e66515a4961c4db Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 8 Jan 2026 19:02:46 +0000 Subject: [PATCH 2/2] sdk: utf8proc: Patch to disable -fPIC --- sdk/recipes/patches/utf8proc/disable-fPIC.p | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sdk/recipes/patches/utf8proc/disable-fPIC.p diff --git a/sdk/recipes/patches/utf8proc/disable-fPIC.p b/sdk/recipes/patches/utf8proc/disable-fPIC.p new file mode 100644 index 0000000000..bb4a68a2da --- /dev/null +++ b/sdk/recipes/patches/utf8proc/disable-fPIC.p @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -46,7 +46,7 @@ if (NOT MSVC) + endif () + + set_target_properties (utf8proc PROPERTIES +- POSITION_INDEPENDENT_CODE ON ++ POSITION_INDEPENDENT_CODE OFF + VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}" + SOVERSION ${SO_MAJOR} + )