Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/s-nail/
Date: Thu, 29 Dec 2022 15:34:19
Message-Id: 1672327999.87007380eafc9e42710c4c7b8bad2236285ac4be.grknight@gentoo
1 commit: 87007380eafc9e42710c4c7b8bad2236285ac4be
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 29 15:33:19 2022 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 15:33:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87007380
7
8 mail-client/s-nail: Ensure a -O value exists in CFLAGS
9
10 Bug: https://bugs.gentoo.org/888613
11 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
12
13 mail-client/s-nail/s-nail-14.9.24.ebuild | 10 ++++++++++
14 1 file changed, 10 insertions(+)
15
16 diff --git a/mail-client/s-nail/s-nail-14.9.24.ebuild b/mail-client/s-nail/s-nail-14.9.24.ebuild
17 index 34059f4f450e..58bc90639ae8 100644
18 --- a/mail-client/s-nail/s-nail-14.9.24.ebuild
19 +++ b/mail-client/s-nail/s-nail-14.9.24.ebuild
20 @@ -33,8 +33,18 @@ BDEPEND="
21 "
22
23 src_configure() {
24 + has_cflag() {
25 + local x var="CFLAGS[*]"
26 + for x in ${!var} ; do
27 + [[ ${x} == $1 ]] && return 0
28 + done
29 + return 1
30 + }
31 +
32 # Fails to build without replace Bug 860357
33 replace-flags -O[0gs] -O1
34 + # A valid -O option is necessary Bug 888613
35 + has_cflag -O* || append-cflags -O1
36 append-cflags -std=c99
37 local confopts=(
38 CC="$(tc-getCC)"