From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9A2D6139085 for ; Thu, 19 Jan 2017 16:52:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EEFBC234033; Thu, 19 Jan 2017 16:52:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7E14234033 for ; Thu, 19 Jan 2017 16:52:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2392734108B for ; Thu, 19 Jan 2017 16:52:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 458BB2942 for ; Thu, 19 Jan 2017 16:52:00 +0000 (UTC) From: "Mike Frysinger" 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 Frysinger" Message-ID: <1484844687.547bf7fbf276a24d17cfa2a21248cf7670e939f9.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/keyutils/, sys-apps/keyutils/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/keyutils/files/keyutils-1.5.9-endian-check-1.patch sys-apps/keyutils/files/keyutils-1.5.9-endian-check-2.patch sys-apps/keyutils/keyutils-1.5.9-r2.ebuild X-VCS-Directories: sys-apps/keyutils/files/ sys-apps/keyutils/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 547bf7fbf276a24d17cfa2a21248cf7670e939f9 X-VCS-Branch: master Date: Thu, 19 Jan 2017 16:52:00 +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: e3516810-166d-4ab2-9663-ca68a8329cfe X-Archives-Hash: e71af7618f2b3b1f4b03ea182d8f3cc7 commit: 547bf7fbf276a24d17cfa2a21248cf7670e939f9 Author: Mike Frysinger gentoo org> AuthorDate: Thu Jan 19 16:48:31 2017 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Jan 19 16:51:27 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=547bf7fb sys-apps/keyutils: add upstream fix for tests endian checking #426424 .../files/keyutils-1.5.9-endian-check-1.patch | 43 ++++++++++++++++++++++ .../files/keyutils-1.5.9-endian-check-2.patch | 38 +++++++++++++++++++ sys-apps/keyutils/keyutils-1.5.9-r2.ebuild | 1 + 3 files changed, 82 insertions(+) diff --git a/sys-apps/keyutils/files/keyutils-1.5.9-endian-check-1.patch b/sys-apps/keyutils/files/keyutils-1.5.9-endian-check-1.patch new file mode 100644 index 00000000..18344b9 --- /dev/null +++ b/sys-apps/keyutils/files/keyutils-1.5.9-endian-check-1.patch @@ -0,0 +1,43 @@ +patch from upstream + +https://bugs.gentoo.org/426424 + +From f0d9a8c15f1525d0404077f32fddccb606a61bac Mon Sep 17 00:00:00 2001 +From: Tyler Hicks +Date: Mon, 24 Feb 2014 18:52:41 -0600 +Subject: [PATCH] TEST: Make endianness detection work with file 5.14 + +The 5.14 release of file outputs an extra space after [LM]SB: + +$ ./src/file -m magic/magic.mgc -L /proc/$$/exe +/proc/12755/exe: ELF 64-bit LSB executable, ... + +This was due to the elf magic file containing some trailing spaces in +the 5.14 release. + +Signed-off-by: Tyler Hicks +Signed-off-by: David Howells +--- + tests/toolbox.inc.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/toolbox.inc.sh b/tests/toolbox.inc.sh +index cbc49e0fce23..fe3c7f71299a 100644 +--- a/tests/toolbox.inc.sh ++++ b/tests/toolbox.inc.sh +@@ -17,10 +17,10 @@ includes=${includes%/*}/ + echo === $OUTPUTFILE === + + endian=`file -L /proc/$$/exe` +-if expr "$endian" : '.* MSB executable.*' >&/dev/null ++if expr "$endian" : '.* MSB \+executable.*' >&/dev/null + then + endian=BE +-elif expr "$endian" : '.* LSB executable.*' >&/dev/null ++elif expr "$endian" : '.* LSB \+executable.*' >&/dev/null + then + endian=LE + else +-- +2.11.0 + diff --git a/sys-apps/keyutils/files/keyutils-1.5.9-endian-check-2.patch b/sys-apps/keyutils/files/keyutils-1.5.9-endian-check-2.patch new file mode 100644 index 00000000..a4558d8 --- /dev/null +++ b/sys-apps/keyutils/files/keyutils-1.5.9-endian-check-2.patch @@ -0,0 +1,38 @@ +patch from upstream + +https://bugs.gentoo.org/426424 + +From ce92e974b8ecff19cf430b7b58a09b8190645b5c Mon Sep 17 00:00:00 2001 +From: David Howells +Date: Fri, 26 Feb 2016 10:07:00 +0000 +Subject: [PATCH] TEST: Fix endianness determination + +Endianness determination was broken sometime after Fedora 20 when +executables switched to being DYN objects rather than EXEC objects. This +caused the output of file to change. + +Signed-off-by: David Howells +--- + tests/toolbox.inc.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/toolbox.inc.sh b/tests/toolbox.inc.sh +index f2463c57b40e..5ac23ffc04fb 100644 +--- a/tests/toolbox.inc.sh ++++ b/tests/toolbox.inc.sh +@@ -13,10 +13,10 @@ + echo === $OUTPUTFILE === + + endian=`file -L /proc/$$/exe` +-if expr "$endian" : '.* MSB \+executable.*' >&/dev/null ++if expr "$endian" : '.* MSB \+\(executable\|shared object).*' >&/dev/null + then + endian=BE +-elif expr "$endian" : '.* LSB \+executable.*' >&/dev/null ++elif expr "$endian" : '.* LSB \+\(executable\|shared object\).*' >&/dev/null + then + endian=LE + else +-- +2.11.0 + diff --git a/sys-apps/keyutils/keyutils-1.5.9-r2.ebuild b/sys-apps/keyutils/keyutils-1.5.9-r2.ebuild index 0a46055..572489e 100644 --- a/sys-apps/keyutils/keyutils-1.5.9-r2.ebuild +++ b/sys-apps/keyutils/keyutils-1.5.9-r2.ebuild @@ -27,6 +27,7 @@ pkg_setup() { src_prepare() { epatch "${FILESDIR}"/${PN}-1.5.5-makefile-fixup.patch + epatch "${FILESDIR}"/${PN}-1.5.9-endian-check-{1,2}.patch #426424 # The lsb check is useless, so avoid spurious command not found messages. sed -i -e 's,lsb_release,:,' tests/prepare.inc.sh || die