From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 00F051384B4 for ; Sat, 12 Dec 2015 15:17:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9F99821C0FB; Sat, 12 Dec 2015 15:17:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 449C621C0FB for ; Sat, 12 Dec 2015 15:17:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BBE49340662 for ; Sat, 12 Dec 2015 15:17:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AE619AF9 for ; Sat, 12 Dec 2015 15:17:06 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1449933397.ab855566294f01bf4fedf03d1cf12035c5c4b923.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd/files/, sys-apps/systemd/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/systemd/files/226-kcmp.patch sys-apps/systemd/systemd-226-r2.ebuild X-VCS-Directories: sys-apps/systemd/files/ sys-apps/systemd/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: ab855566294f01bf4fedf03d1cf12035c5c4b923 X-VCS-Branch: master Date: Sat, 12 Dec 2015 15:17:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1dbdeae2-b2ca-4da8-a263-24f154269cea X-Archives-Hash: 1bf893e4c70a6707520db5f62443778d commit: ab855566294f01bf4fedf03d1cf12035c5c4b923 Author: Mike Gilbert gentoo org> AuthorDate: Sat Dec 12 15:16:23 2015 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sat Dec 12 15:16:37 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab855566 sys-apps/systemd: Backport build fix for IA64 Bug: https://bugs.gentoo.org/560492 Package-Manager: portage-2.2.26_p25 sys-apps/systemd/files/226-kcmp.patch | 31 +++++++++++++++++++++++++++++++ sys-apps/systemd/systemd-226-r2.ebuild | 1 + 2 files changed, 32 insertions(+) diff --git a/sys-apps/systemd/files/226-kcmp.patch b/sys-apps/systemd/files/226-kcmp.patch new file mode 100644 index 0000000..a91f49f --- /dev/null +++ b/sys-apps/systemd/files/226-kcmp.patch @@ -0,0 +1,31 @@ +From 75b554579b4e962e2c02053129a37611a2dc9133 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert +Date: Mon, 14 Sep 2015 18:55:09 -0400 +Subject: [PATCH] Add fallback for kcmp() in case __NR_kcmp is undefined + +IA64 is missing this syscall as of linux-4.2. +This works around it until the necessary kernel patch gets merged. +--- + src/basic/missing.h | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/basic/missing.h b/src/basic/missing.h +index dc1f244..371ef8a 100644 +--- a/src/basic/missing.h ++++ b/src/basic/missing.h +@@ -1028,7 +1028,12 @@ static inline int renameat2(int oldfd, const char *oldname, int newfd, const cha + + #if !HAVE_DECL_KCMP + static inline int kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2) { ++#if defined(__NR_kcmp) + return syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); ++#else ++ errno = ENOSYS; ++ return -1; ++#endif + } + #endif + +-- +2.6.4 + diff --git a/sys-apps/systemd/systemd-226-r2.ebuild b/sys-apps/systemd/systemd-226-r2.ebuild index 10471ac..44742e8 100644 --- a/sys-apps/systemd/systemd-226-r2.ebuild +++ b/sys-apps/systemd/systemd-226-r2.ebuild @@ -147,6 +147,7 @@ src_prepare() { epatch "${FILESDIR}/218-Dont-enable-audit-by-default.patch" epatch "${FILESDIR}/226-noclean-tmp.patch" epatch "${FILESDIR}/CVE-2015-7510.patch" + epatch "${FILESDIR}/226-kcmp.patch" epatch_user eautoreconf }