public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-news/newsraft/files/, net-news/newsraft/
Date: Tue, 25 Jun 2024 09:10:57 +0000 (UTC)	[thread overview]
Message-ID: <1718889484.813d39805b02a5a8bb656d6412ae3b3294e473e1.davidroman@gentoo> (raw)

commit:     813d39805b02a5a8bb656d6412ae3b3294e473e1
Author:     Eli Burch <eli.burch <AT> burchbytes <DOT> com>
AuthorDate: Thu Jun 20 13:17:12 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Jun 20 13:18:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=813d3980

net-news/newsraft: Fix hardcoded CC, CFLAGS, LDFLAGS

Closes: https://bugs.gentoo.org/show_bug.cgi?id=934555
Closes: https://bugs.gentoo.org/show_bug.cgi?id=934557
Closes: https://bugs.gentoo.org/show_bug.cgi?id=934558
Signed-off-by: Eli Burch <eli.burch <AT> burchbytes.com>

 .../files/newsraft-0.25-hardcoded-CFLAGS-LDFLAGS.patch | 18 ++++++++++++++++++
 net-news/newsraft/newsraft-0.25.ebuild                 |  4 ++++
 2 files changed, 22 insertions(+)

diff --git a/net-news/newsraft/files/newsraft-0.25-hardcoded-CFLAGS-LDFLAGS.patch b/net-news/newsraft/files/newsraft-0.25-hardcoded-CFLAGS-LDFLAGS.patch
new file mode 100644
index 000000000..e71ae62e5
--- /dev/null
+++ b/net-news/newsraft/files/newsraft-0.25-hardcoded-CFLAGS-LDFLAGS.patch
@@ -0,0 +1,18 @@
+# Fix hardcoded CC, CFLAGS and LDFLAGS
+# Bug: https://bugs.gentoo.org/show_bug.cgi?id=934555
+# Bug: https://bugs.gentoo.org/show_bug.cgi?id=934557
+# Bug: https://bugs.gentoo.org/show_bug.cgi?id=934558
+--- a/makefile
++++ b/makefile
+@@ -1,9 +1,8 @@
+ .POSIX:
+ .PHONY: all install install-newsraft install-man install-examples man html clean check cppcheck clang-tidy
+ 
+-CC            = cc
+-CFLAGS        = -O3
+-LDFLAGS       =
++CC            ?= cc
++CFLAGS        ?= -O3
+ CURL_CFLAGS   = `pkg-config --cflags libcurl  2>/dev/null`
+ CURL_LIBS     = `pkg-config --libs   libcurl  2>/dev/null || echo '-lcurl'`
+ CURSES_CFLAGS = `pkg-config --cflags ncursesw 2>/dev/null`

diff --git a/net-news/newsraft/newsraft-0.25.ebuild b/net-news/newsraft/newsraft-0.25.ebuild
index 9118c6cef..48c8f80e0 100644
--- a/net-news/newsraft/newsraft-0.25.ebuild
+++ b/net-news/newsraft/newsraft-0.25.ebuild
@@ -32,6 +32,10 @@ BDEPEND="
 	virtual/pkgconfig
 "
 
+PATCHES=(
+	"${FILESDIR}/newsraft-0.25-hardcoded-CFLAGS-LDFLAGS.patch"
+)
+
 src_install() {
 	emake PREFIX="/usr" DESTDIR="${D}" install
 	einstalldocs


             reply	other threads:[~2024-06-25  9:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-25  9:10 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-17 12:11 [gentoo-commits] repo/proj/guru:master commit in: net-news/newsraft/files/, net-news/newsraft/ Rui Huang

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=1718889484.813d39805b02a5a8bb656d6412ae3b3294e473e1.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --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