net-libs/libssh: Set -DWITH_STACK_PROTECTOR=OFF
authorJeroen Roovers <jer@gentoo.org>
Sat, 1 Sep 2018 08:52:13 +0000 (10:52 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 1 Sep 2018 09:01:34 +0000 (11:01 +0200)
The build system injects -fstack-protector _after_ CFLAGS, which means
that when CFLAGS define a stronger SSP, this lowers its protection
instead of improving it.

Additionally, the test for the compiler flag succeeds on HPPA when it
shouldn't, causing the build to fail later on:

In file included from src/agent.c:53:0:
include/libssh/priv.h:169:4: error: #error "Your system must provide a __func__ macro"

Bug: https://bugs.gentoo.org/59506
Package-Manager: Portage-2.3.48, Repoman-2.3.10

net-libs/libssh/libssh-0.7.4.ebuild
net-libs/libssh/libssh-0.7.5-r2.ebuild
net-libs/libssh/libssh-0.8.1.ebuild
net-libs/libssh/libssh-9999.ebuild

index 3b45d1fa582c58d9d8a9aa22c939bc1e068bcab3..f33086923326101f2929a9e911091e55764c440e 100644 (file)
@@ -64,6 +64,7 @@ multilib_src_configure() {
                -DWITH_SERVER="$(usex server)"
                -DWITH_SFTP="$(usex sftp)"
                -DWITH_SSH1="$(usex ssh1)"
+               -DWITH_STACK_PROTECTOR=OFF
                -DWITH_STATIC_LIB="$(usex static-libs)"
                -DWITH_STATIC_LIB="$(usex test)"
                -DWITH_TESTING="$(usex test)"
index ea3291593f7fc510029d8a1b73573ee67350edd1..95aba9f77ea6ced88ba6cd226fc6074b6b96b73f 100644 (file)
@@ -67,6 +67,7 @@ multilib_src_configure() {
                -DWITH_SERVER="$(usex server)"
                -DWITH_SFTP="$(usex sftp)"
                -DWITH_SSH1="$(usex ssh1)"
+               -DWITH_STACK_PROTECTOR=OFF
                -DWITH_STATIC_LIB="$(usex static-libs)"
                -DWITH_STATIC_LIB="$(usex test)"
                -DWITH_TESTING="$(usex test)"
index 8aaceace64c1af793f9097f7c50192bc956218ad..641c1853e9864d3b92a1cda33569f3a9275b9775 100644 (file)
@@ -76,6 +76,7 @@ multilib_src_configure() {
                -DWITH_PCAP="$(usex pcap)"
                -DWITH_SERVER="$(usex server)"
                -DWITH_SFTP="$(usex sftp)"
+               -DWITH_STACK_PROTECTOR=OFF
                -DWITH_STATIC_LIB="$(usex static-libs)"
                -DWITH_STATIC_LIB="$(usex test)"
                -DWITH_ZLIB="$(usex zlib)"
index 8aaceace64c1af793f9097f7c50192bc956218ad..641c1853e9864d3b92a1cda33569f3a9275b9775 100644 (file)
@@ -76,6 +76,7 @@ multilib_src_configure() {
                -DWITH_PCAP="$(usex pcap)"
                -DWITH_SERVER="$(usex server)"
                -DWITH_SFTP="$(usex sftp)"
+               -DWITH_STACK_PROTECTOR=OFF
                -DWITH_STATIC_LIB="$(usex static-libs)"
                -DWITH_STATIC_LIB="$(usex test)"
                -DWITH_ZLIB="$(usex zlib)"