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 ECC141395E2 for ; Wed, 16 Nov 2016 23:21:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C4B2E0B16; Wed, 16 Nov 2016 23:21:30 +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 1DCBCE0B16 for ; Wed, 16 Nov 2016 23:21:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 1BA953413B7 for ; Wed, 16 Nov 2016 23:21:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 74CF4308 for ; Wed, 16 Nov 2016 23:21:27 +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: <1479338473.e506143656e90f7f705f9727d128d176e1700b2a.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/mit-krb5/, app-crypt/mit-krb5/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/mit-krb5/files/mit-krb5-1.14.2-redeclared-ttyname.patch app-crypt/mit-krb5/mit-krb5-1.14.2.ebuild app-crypt/mit-krb5/mit-krb5-1.14.3.ebuild app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild X-VCS-Directories: app-crypt/mit-krb5/ app-crypt/mit-krb5/files/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: e506143656e90f7f705f9727d128d176e1700b2a X-VCS-Branch: master Date: Wed, 16 Nov 2016 23:21:27 +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: f890a563-72da-466d-8b15-ccc8f78c6680 X-Archives-Hash: 545c1db0cf94c5f77f80ab16cb5de075 commit: e506143656e90f7f705f9727d128d176e1700b2a Author: Zentaro Kavanagh google com> AuthorDate: Wed Nov 16 23:21:13 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed Nov 16 23:21:13 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5061436 app-crypt/mit-krb5: fix clang build due to ttyname redecl .../files/mit-krb5-1.14.2-redeclared-ttyname.patch | 26 ++++++++++++++++++++++ app-crypt/mit-krb5/mit-krb5-1.14.2.ebuild | 1 + app-crypt/mit-krb5/mit-krb5-1.14.3.ebuild | 1 + app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild | 1 + 4 files changed, 29 insertions(+) diff --git a/app-crypt/mit-krb5/files/mit-krb5-1.14.2-redeclared-ttyname.patch b/app-crypt/mit-krb5/files/mit-krb5-1.14.2-redeclared-ttyname.patch new file mode 100644 index 00000000..a76cd3a --- /dev/null +++ b/app-crypt/mit-krb5/files/mit-krb5-1.14.2-redeclared-ttyname.patch @@ -0,0 +1,26 @@ +Fixes the redeclaration of ttyname which was preventing +enabling clang fortify. + +The error was; + +main.c:858:15: error: redeclaration of 'ttyname' must have the 'overloadable' attribute + char *p, *ttyname(); + ^ +/build/samus/usr/include/unistd.h:784:14: note: previous overload of function is here +extern char *ttyname (int __fd) __THROW __CLANG_NO_MANGLE (ttyname); + +https://github.com/krb5/krb5/pull/568 + +Patch by Zentaro Kavanagh + +--- clients/ksu/main.c ++++ clients/ksu/main.c +@@ -855,7 +855,7 @@ + + static char * ontty() + { +- char *p, *ttyname(); ++ char *p; + static char buf[MAXPATHLEN + 5]; + int result; + diff --git a/app-crypt/mit-krb5/mit-krb5-1.14.2.ebuild b/app-crypt/mit-krb5/mit-krb5-1.14.2.ebuild index 60d7a5b..8a3c7c3 100644 --- a/app-crypt/mit-krb5/mit-krb5-1.14.2.ebuild +++ b/app-crypt/mit-krb5/mit-krb5-1.14.2.ebuild @@ -58,6 +58,7 @@ MULTILIB_CHOST_TOOLS=( src_prepare() { epatch "${FILESDIR}/${PN}-1.12_warn_cflags.patch" epatch "${FILESDIR}/${PN}-config_LDFLAGS.patch" + epatch "${FILESDIR}/${PN}-1.14.2-redeclared-ttyname.patch" eautoreconf } diff --git a/app-crypt/mit-krb5/mit-krb5-1.14.3.ebuild b/app-crypt/mit-krb5/mit-krb5-1.14.3.ebuild index 4a050dd..0a8a335 100644 --- a/app-crypt/mit-krb5/mit-krb5-1.14.3.ebuild +++ b/app-crypt/mit-krb5/mit-krb5-1.14.3.ebuild @@ -58,6 +58,7 @@ MULTILIB_CHOST_TOOLS=( src_prepare() { epatch "${FILESDIR}/${PN}-1.12_warn_cflags.patch" epatch "${FILESDIR}/${PN}-config_LDFLAGS.patch" + epatch "${FILESDIR}/${PN}-1.14.2-redeclared-ttyname.patch" eautoreconf } diff --git a/app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild b/app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild index 9e30788..0eff67b 100644 --- a/app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild +++ b/app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild @@ -58,6 +58,7 @@ MULTILIB_CHOST_TOOLS=( src_prepare() { epatch "${FILESDIR}/${PN}-1.12_warn_cflags.patch" epatch "${FILESDIR}/${PN}-config_LDFLAGS.patch" + epatch "${FILESDIR}/${PN}-1.14.2-redeclared-ttyname.patch" # Make sure we always use the system copies. rm -rf util/{et,ss,verto}