From fdfd165799d762acd6cf5871bfcb1493da1359e9 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 9 Feb 2017 02:47:11 +0100 Subject: systemd: enable for uClibc-ng Patch out IDN usage. libidn will be removed from GNU C library in the future, so we don't add it to uClibc-ng getnameinfo(). libkmod can't be activated when PKG_BB is 1 for kmod package. --- package/kmod/Makefile | 1 - package/systemd/Makefile | 2 +- package/systemd/patches/patch-src_basic_socket-util_c | 12 ++++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 package/systemd/patches/patch-src_basic_socket-util_c (limited to 'package') diff --git a/package/kmod/Makefile b/package/kmod/Makefile index 495a7f9fb..4ef5623dc 100644 --- a/package/kmod/Makefile +++ b/package/kmod/Makefile @@ -14,7 +14,6 @@ PKG_URL:= http://profusion.mobi/index.php PKG_SITES:= https://www.kernel.org/pub/linux/utils/kernel/kmod/ PKG_LIBNAME:= libkmod PKG_OPTS:= dev -PKG_BB:= 1 PKG_SUBPKGS:= KMOD LIBKMOD PKGSD_LIBKMOD:= kernel module library diff --git a/package/systemd/Makefile b/package/systemd/Makefile index e1074f731..bf1aadef5 100644 --- a/package/systemd/Makefile +++ b/package/systemd/Makefile @@ -9,7 +9,7 @@ PKG_RELEASE:= 2 PKG_HASH:= 1172c7c7d5d72fbded53186e7599d5272231f04cc8b72f9a0fb2c5c20dfc4880 PKG_DESCR:= system and service manager PKG_SECTION:= base/init -PKG_DEPENDS:= libcap libmount libuuid libblkid libncurses kmod +PKG_DEPENDS:= libcap libmount libuuid libblkid libncurses libkmod PKG_BUILDDEP:= intltool-host gperf-host libcap util-linux gettext-host kmod PKG_KDEPENDS:= cgroups namespaces fhandle tmpfs-posix-acl tmpfs-xattr PKG_URL:= https://wiki.freedesktop.org/www/Software/systemd/ diff --git a/package/systemd/patches/patch-src_basic_socket-util_c b/package/systemd/patches/patch-src_basic_socket-util_c new file mode 100644 index 000000000..78d871695 --- /dev/null +++ b/package/systemd/patches/patch-src_basic_socket-util_c @@ -0,0 +1,12 @@ +--- systemd-232.orig/src/basic/socket-util.c 2016-11-03 18:16:42.000000000 +0100 ++++ systemd-232/src/basic/socket-util.c 2017-02-07 04:55:53.976146036 +0100 +@@ -657,8 +657,7 @@ int socknameinfo_pretty(union sockaddr_u + + assert(_ret); + +- r = getnameinfo(&sa->sa, salen, host, sizeof(host), NULL, 0, +- NI_IDN|NI_IDN_USE_STD3_ASCII_RULES); ++ r = getnameinfo(&sa->sa, salen, host, sizeof(host), NULL, 0, 0); + if (r != 0) { + int saved_errno = errno; + -- cgit v1.2.3