commit:     b6b552eac786970d03a5d1dd019bab4fd28c2a0f
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 22 23:03:44 2023 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Apr 22 23:53:26 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6b552ea

net-ftp/pure-ftpd: Don't hardcode FORTIFY_SOURCE

Closes: https://bugs.gentoo.org/893468
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../{pure-ftpd-1.0.51.ebuild => pure-ftpd-1.0.51-r1.ebuild}          | 5 ++++-
 net-ftp/pure-ftpd/pure-ftpd-9999.ebuild                              | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.51.ebuild 
b/net-ftp/pure-ftpd/pure-ftpd-1.0.51-r1.ebuild
similarity index 97%
rename from net-ftp/pure-ftpd/pure-ftpd-1.0.51.ebuild
rename to net-ftp/pure-ftpd/pure-ftpd-1.0.51-r1.ebuild
index a01e48fe71f1..223cdb2a5ea7 100644
--- a/net-ftp/pure-ftpd/pure-ftpd-1.0.51.ebuild
+++ b/net-ftp/pure-ftpd/pure-ftpd-1.0.51-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -53,6 +53,9 @@ PATCHES=( "${FILESDIR}/${PN}-1.0.28-pam.patch" )
 src_prepare() {
        default
 
+       # Don't hardcode FORTIFY_SOURCE
+       sed -e '/-D_FORTIFY_SOURCE=2/d' -i configure || die
+
        [[ "${PV}" == 9999 ]] && eautoreconf
 }
 

diff --git a/net-ftp/pure-ftpd/pure-ftpd-9999.ebuild 
b/net-ftp/pure-ftpd/pure-ftpd-9999.ebuild
index 712fefda22b2..2c5c51cfabc5 100644
--- a/net-ftp/pure-ftpd/pure-ftpd-9999.ebuild
+++ b/net-ftp/pure-ftpd/pure-ftpd-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -53,6 +53,9 @@ PATCHES=( "${FILESDIR}/${PN}-1.0.28-pam.patch" )
 src_prepare() {
        default
 
+       # Don't hardcode FORTIFY_SOURCE
+       sed -e '/-D_FORTIFY_SOURCE=2/d' -i configure.ac || die
+
        [[ "${PV}" == 9999 ]] && eautoreconf
 }
 

Reply via email to