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 758EE13988F for ; Sat, 22 Aug 2015 17:16:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82161E0875; Sat, 22 Aug 2015 17:16:41 +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 19FE5E0875 for ; Sat, 22 Aug 2015 17:16:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F241634072E for ; Sat, 22 Aug 2015 17:16:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9A13413F for ; Sat, 22 Aug 2015 17:16:37 +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: <1440263784.1dbc772ea5dbbac9a8f910033d0fb5abd7b45459.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd/, sys-apps/systemd/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/systemd/files/224-0002-Use-getxpid-syscall-on-alpha-for-raw_getpid.patch sys-apps/systemd/systemd-224-r1.ebuild X-VCS-Directories: sys-apps/systemd/ sys-apps/systemd/files/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 1dbc772ea5dbbac9a8f910033d0fb5abd7b45459 X-VCS-Branch: master Date: Sat, 22 Aug 2015 17:16:37 +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: cac584b7-eff6-47c7-9451-3311a7a874c7 X-Archives-Hash: 6086fa9808d8768669e2a6efe25e2ba4 commit: 1dbc772ea5dbbac9a8f910033d0fb5abd7b45459 Author: Mike Gilbert gentoo org> AuthorDate: Sat Aug 22 17:09:48 2015 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sat Aug 22 17:16:24 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dbc772e sys-apps/systemd: Backport build fix for alpha Bug: https://bugs.gentoo.org/543900 Package-Manager: portage-2.2.20_p134 ...e-getxpid-syscall-on-alpha-for-raw_getpid.patch | 30 ++++++++++++++++++++++ sys-apps/systemd/systemd-224-r1.ebuild | 1 + 2 files changed, 31 insertions(+) diff --git a/sys-apps/systemd/files/224-0002-Use-getxpid-syscall-on-alpha-for-raw_getpid.patch b/sys-apps/systemd/files/224-0002-Use-getxpid-syscall-on-alpha-for-raw_getpid.patch new file mode 100644 index 0000000..40e2d1c --- /dev/null +++ b/sys-apps/systemd/files/224-0002-Use-getxpid-syscall-on-alpha-for-raw_getpid.patch @@ -0,0 +1,30 @@ +From a242a99d42276b6b764f80bd0de70c26e5c5f1d4 Mon Sep 17 00:00:00 2001 +From: Matt Turner +Date: Tue, 4 Aug 2015 14:47:01 -0700 +Subject: [PATCH] Use getxpid syscall on alpha for raw_getpid() + +Alpha does not have a getpid syscall, but rather has getxpid to match +OSF/1. +--- + src/basic/missing.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/basic/missing.h b/src/basic/missing.h +index ed6cd80..34ab025 100644 +--- a/src/basic/missing.h ++++ b/src/basic/missing.h +@@ -977,7 +977,11 @@ static inline int raw_clone(unsigned long flags, void *child_stack) { + } + + static inline pid_t raw_getpid(void) { ++#if defined(__alpha__) ++ return (pid_t) syscall(__NR_getxpid); ++#else + return (pid_t) syscall(__NR_getpid); ++#endif + } + + #if !HAVE_DECL_RENAMEAT2 +-- +2.5.0 + diff --git a/sys-apps/systemd/systemd-224-r1.ebuild b/sys-apps/systemd/systemd-224-r1.ebuild index 7d4b2b7..521109e 100644 --- a/sys-apps/systemd/systemd-224-r1.ebuild +++ b/sys-apps/systemd/systemd-224-r1.ebuild @@ -105,6 +105,7 @@ fi PATCHES=( "${FILESDIR}/218-Dont-enable-audit-by-default.patch" "${FILESDIR}/224-0001-networkd-fix-neworkd-crash.patch" + "${FILESDIR}/224-0002-Use-getxpid-syscall-on-alpha-for-raw_getpid.patch" ) pkg_pretend() {