mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-crypt/mit-krb5: fix clang build due to ttyname redecl
This commit is contained in:
committed by
Mike Frysinger
parent
253b1d93e3
commit
e506143656
@@ -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 <zentaro@google.com>
|
||||
|
||||
--- 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;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user