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 BEA20158086 for ; Fri, 22 Oct 2021 03:48:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0DFB8E083D; Fri, 22 Oct 2021 03:48:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 128D3E083D for ; Fri, 22 Oct 2021 03:48:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2A3C3434F7 for ; Fri, 22 Oct 2021 03:48:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 68F1F151 for ; Fri, 22 Oct 2021 03:48:08 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1634874460.0a6dddca771421a50134b6a27ba0122f3fe25d83.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/hydra/, net-analyzer/hydra/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/hydra/files/hydra-9999999-respect-cflags-more.patch net-analyzer/hydra/hydra-9999999.ebuild X-VCS-Directories: net-analyzer/hydra/ net-analyzer/hydra/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0a6dddca771421a50134b6a27ba0122f3fe25d83 X-VCS-Branch: master Date: Fri, 22 Oct 2021 03:48:08 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e23845fd-2cad-4b6e-9d95-0084df81a919 X-Archives-Hash: 69f9d1be6d2bb3dce92240908842119c commit: 0a6dddca771421a50134b6a27ba0122f3fe25d83 Author: EmilienMottet grenoble-inp org> AuthorDate: Thu Oct 21 08:11:25 2021 +0000 Commit: Sam James gentoo org> CommitDate: Fri Oct 22 03:47:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a6dddca net-analyzer/hydra: update live ebuild - Use README instead of README.md in dodoc - Update patch for matching new configure Closes: https://bugs.gentoo.org/818988 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Emilien Mottet grenoble-inp.org> Closes: https://github.com/gentoo/gentoo/pull/22653 Signed-off-by: Sam James gentoo.org> .../files/hydra-9999999-respect-cflags-more.patch | 31 ++++++++++++++++++++++ net-analyzer/hydra/hydra-9999999.ebuild | 4 +-- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/net-analyzer/hydra/files/hydra-9999999-respect-cflags-more.patch b/net-analyzer/hydra/files/hydra-9999999-respect-cflags-more.patch new file mode 100644 index 00000000000..0fe5753ec8a --- /dev/null +++ b/net-analyzer/hydra/files/hydra-9999999-respect-cflags-more.patch @@ -0,0 +1,31 @@ +Don't inject hardening CFLAGS. We already have these by default in Gentoo. +--- a/configure ++++ b/configure +@@ -1380,27 +1380,6 @@ if [ -n "$CRYPTO_PATH" ]; then + echo " ... RSA_generate_key()$RSA found" + fi + +-echo "Checking for secure compile option support in $CC ..." +-GCCSEC="no" +-LDSEC="no" +-GCCSECOPT="-fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" +-echo '#include ' > $TMPC.c +-echo 'int main() { printf(""); return 0; }' >> $TMPC.c +-$CC -pie -fPIE $GCCSEPOPT -o $TMPC $TMPC.c > /dev/null 2> $TMPC.c.err +-test -x $TMPC && GCCSEC="yes" +-grep -q fPI $TMPC.c.err || GCCSECOPT="-pie -fPIE $GCCSECOPT" +-rm -f "$TMPC" +-$CC $GCCSECOPT -Wl,-z,now -Wl,-z,relro -o $TMPC $TMPC.c > /dev/null 2> $TMPC.c.err +-test -x $TMPC && { LDSEC="yes" ; GCCSECOPT="$GCCSECOPT -Wl,-z,now -Wl,-z,relro" ; } +-rm -f $TMPC $TMPC.c $TMPC.c.err +-echo " Compiling... $GCCSEC" +-echo " Linking... $LDSEC" +- +-echo "Checking for --allow-multiple-definition linker option ... $WALLOW" +-if [ "$WALLOW" = "yes" ]; then +- GCCSECOPT="$GCCSECOPT -Wl,--allow-multiple-definition" +-fi +- + echo + XDEFINES="" + XLIBS="" \ No newline at end of file diff --git a/net-analyzer/hydra/hydra-9999999.ebuild b/net-analyzer/hydra/hydra-9999999.ebuild index 170b7b81086..4597ee4cb58 100644 --- a/net-analyzer/hydra/hydra-9999999.ebuild +++ b/net-analyzer/hydra/hydra-9999999.ebuild @@ -43,7 +43,7 @@ DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" PATCHES=( - "${FILESDIR}"/${PN}-9.2-respect-cflags-more.patch + "${FILESDIR}"/${PN}-9999999-respect-cflags-more.patch ) src_prepare() { @@ -117,5 +117,5 @@ src_compile() { src_install() { dobin hydra pw-inspector use gtk && dobin hydra-gtk/src/xhydra - dodoc CHANGES README.md + dodoc CHANGES README }