summaryrefslogtreecommitdiff
path: root/package/systemd
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-02-09 02:47:11 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-02-09 02:49:18 +0100
commitfdfd165799d762acd6cf5871bfcb1493da1359e9 (patch)
treec359e2327241dce4c6a237ff4b61f89b1907a2b0 /package/systemd
parent68a2f573ea13d6e028c5eba43bde813c6994f080 (diff)
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.
Diffstat (limited to 'package/systemd')
-rw-r--r--package/systemd/Makefile2
-rw-r--r--package/systemd/patches/patch-src_basic_socket-util_c12
2 files changed, 13 insertions, 1 deletions
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;
+