From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/toxic/
Date: Mon, 10 Apr 2023 08:10:08 +0000 (UTC) [thread overview]
Message-ID: <1681114202.f0540c6ca7d2220a420537c68666e6dde3621585.juippis@gentoo> (raw)
commit: f0540c6ca7d2220a420537c68666e6dde3621585
Author: Josiah Mullins <JoMull01 <AT> protonmail <DOT> com>
AuthorDate: Wed Mar 29 15:35:49 2023 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Apr 10 08:10:02 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0540c6c
net-im/toxic: Fixes implicit function declaration
This commit adds an include statement and a macro
declaration to the USER_CFLAGS variable. The include
statement includes strings.h for strcasecmp (see man
strcasecmp). The macro declaration causes strcasestr
to be included (see man strcasestr).
Closes: https://bugs.gentoo.org/897856
Signed-off-by: Josiah Mullins <JoMull01 <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/30400
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
net-im/toxic/{toxic-0.11.1.ebuild => toxic-0.11.1-r1.ebuild} | 4 +++-
net-im/toxic/{toxic-0.11.3.ebuild => toxic-0.11.3-r1.ebuild} | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/net-im/toxic/toxic-0.11.1.ebuild b/net-im/toxic/toxic-0.11.1-r1.ebuild
similarity index 93%
rename from net-im/toxic/toxic-0.11.1.ebuild
rename to net-im/toxic/toxic-0.11.1-r1.ebuild
index fead2de553a3..1a535eb7fcaa 100644
--- a/net-im/toxic/toxic-0.11.1.ebuild
+++ b/net-im/toxic/toxic-0.11.1-r1.ebuild
@@ -101,7 +101,9 @@ src_configure() {
if ! use X; then
export DISABLE_X11=1
fi
- export USER_CFLAGS="${CFLAGS}"
+ #include strings.h fixes undefined reference to strcasecmp()
+ #defining _GNU_SOURCE fixes undefined reference to strcasestr()
+ export USER_CFLAGS="${CFLAGS} -include strings.h -D _GNU_SOURCE"
export USER_LDFLAGS="${LDFLAGS}"
#set install directory to /usr.
sed -i -e "s,/usr/local,${EPREFIX}/usr,g" cfg/global_vars.mk || die "Failed to set install directory!"
diff --git a/net-im/toxic/toxic-0.11.3.ebuild b/net-im/toxic/toxic-0.11.3-r1.ebuild
similarity index 93%
rename from net-im/toxic/toxic-0.11.3.ebuild
rename to net-im/toxic/toxic-0.11.3-r1.ebuild
index a436039ffa9e..4a42d75791c5 100644
--- a/net-im/toxic/toxic-0.11.3.ebuild
+++ b/net-im/toxic/toxic-0.11.3-r1.ebuild
@@ -101,7 +101,9 @@ src_configure() {
if ! use X; then
export DISABLE_X11=1
fi
- export USER_CFLAGS="${CFLAGS}"
+ #Including strings.h fixes undefined reference to strcasecmp()
+ #Defining _GNU_SOURCE fixes undefined reference to strcasestr()
+ export USER_CFLAGS="${CFLAGS} -include strings.h -D _GNU_SOURCE"
export USER_LDFLAGS="${LDFLAGS}"
#set install directory to /usr.
sed -i -e "s,/usr/local,${EPREFIX}/usr,g" cfg/global_vars.mk || die "Failed to set install directory!"
next reply other threads:[~2023-04-10 8:10 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-10 8:10 Joonas Niilola [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-25 20:47 [gentoo-commits] repo/gentoo:master commit in: net-im/toxic/ Jimi Huotari
2025-01-25 20:47 Jimi Huotari
2024-11-22 15:43 Joonas Niilola
2024-11-21 6:45 Sam James
2024-07-30 19:09 Pacho Ramos
2024-07-30 19:09 Pacho Ramos
2024-07-30 19:09 Pacho Ramos
2024-07-30 19:09 Pacho Ramos
2023-12-18 7:13 Joonas Niilola
2023-12-18 4:51 Sam James
2023-04-10 8:10 Joonas Niilola
2021-12-10 22:17 Jakov Smolić
2021-12-10 16:26 Jakov Smolić
2021-08-24 8:50 Joonas Niilola
2021-08-24 8:50 Joonas Niilola
2021-06-10 8:13 Joonas Niilola
2021-01-02 0:49 Sam James
2021-01-02 0:49 Sam James
2020-12-16 8:29 Joonas Niilola
2020-12-16 8:29 Joonas Niilola
2020-12-16 8:29 Joonas Niilola
2020-09-04 20:53 Sam James
2020-07-17 15:17 Agostino Sarubbo
2020-07-17 15:05 Agostino Sarubbo
2020-06-08 7:46 Joonas Niilola
2020-06-08 7:46 Joonas Niilola
2018-12-09 8:43 Michał Górny
2018-11-12 23:00 Andreas Sturmlechner
2018-08-12 16:58 Michał Górny
2017-12-13 9:03 Michael Palimaka
2017-12-12 21:46 Daniel Campbell
2017-09-28 22:11 Daniel Campbell
2017-08-30 17:19 Daniel Campbell
2017-02-24 1:06 Daniel Campbell
2017-02-22 9:21 Daniel Campbell
2016-12-19 20:17 Michał Górny
2016-10-28 8:00 Daniel Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1681114202.f0540c6ca7d2220a420537c68666e6dde3621585.juippis@gentoo \
--to=juippis@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox