* [gentoo-commits] repo/proj/guru:master commit in: net-news/newsraft/files/, net-news/newsraft/
@ 2024-02-17 12:11 Rui Huang
0 siblings, 0 replies; 2+ messages in thread
From: Rui Huang @ 2024-02-17 12:11 UTC (permalink / raw
To: gentoo-commits
commit: 528ea8992ac1f2322daf9c1689e465e45ee8c8b5
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Sat Feb 17 10:46:34 2024 +0000
Commit: Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Sat Feb 17 10:46:34 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=528ea899
net-news/newsraft: add 0.23, drop 0.19
Closes: https://bugs.gentoo.org/922032
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
net-news/newsraft/Manifest | 2 +-
.../files/newsraft-0.23-hardcoded-CC.patch | 25 ++++++++++++++++++++++
.../{newsraft-0.19.ebuild => newsraft-0.23.ebuild} | 8 +++++++
3 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/net-news/newsraft/Manifest b/net-news/newsraft/Manifest
index 12e2284641..0c66e2a827 100644
--- a/net-news/newsraft/Manifest
+++ b/net-news/newsraft/Manifest
@@ -1 +1 @@
-DIST newsraft-0.19.tar.gz 175794 BLAKE2B 6d665c0bf56da68e123e4662cbdc857599206f9a90e753c7d0f16ffdea2b0f67d4a338f7954eb5f5f2426e1ae7238f64623939f11e5a07e37846e7c11d76c293 SHA512 d9f59f500891b37ef15796a8ec66a5249c3ef3cc5112d2230bf1f606d78f7332ccc17d5846bf9c30a268951059d3a805de651c2b8c3a607572f59126b3d308f0
+DIST newsraft-0.23.tar.gz 139740 BLAKE2B 5a98c25b120f79d7ccf518545146ab8ec4e2c86772cc0fb9723b225ff15a8e86761f4d79ce25bdf5182a5fbf282b0ffa9b618e9265e589fc9fcbeac8fb75c325 SHA512 e55acd637d55dc5566fa5aed1b7c74b8f7f1b61b8ad4de0db08d0ab32a99d68bbbce2f5f47fdc0c43d7601cc1221fe7ae5ca41b1c3d2d7e44a3621d577dc4edc
diff --git a/net-news/newsraft/files/newsraft-0.23-hardcoded-CC.patch b/net-news/newsraft/files/newsraft-0.23-hardcoded-CC.patch
new file mode 100644
index 0000000000..5b04de4c99
--- /dev/null
+++ b/net-news/newsraft/files/newsraft-0.23-hardcoded-CC.patch
@@ -0,0 +1,25 @@
+From 5484f2df40aa362f01859049782a467439325c20 Mon Sep 17 00:00:00 2001
+From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
+Date: Sat, 17 Feb 2024 11:11:48 +0100
+Subject: [PATCH] run-check.sh: Don't hardcode cc, don't assume a.out output
+
+---
+ tests/run-check.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/run-check.sh b/tests/run-check.sh
+index c152289..c24973b 100755
+--- a/tests/run-check.sh
++++ b/tests/run-check.sh
+@@ -12,7 +12,7 @@
+ for test_file in *.c
+ do
+ tests_count="$((tests_count + 1))"
+- if cc -Isrc -L. "$test_file" -l:libnewsraft.so && env LD_LIBRARY_PATH=. ./a.out; then
++ if ${CC:-cc} -Isrc -o ./a.out "$test_file" -L. -l:libnewsraft.so && env LD_LIBRARY_PATH=. ./a.out; then
+ echo "[OKAY] $test_file"
+ okays_count="$((okays_count + 1))"
+ else
+--
+2.43.0
+
diff --git a/net-news/newsraft/newsraft-0.19.ebuild b/net-news/newsraft/newsraft-0.23.ebuild
similarity index 86%
rename from net-news/newsraft/newsraft-0.19.ebuild
rename to net-news/newsraft/newsraft-0.23.ebuild
index 462c5323d8..baeac03acc 100644
--- a/net-news/newsraft/newsraft-0.19.ebuild
+++ b/net-news/newsraft/newsraft-0.23.ebuild
@@ -34,11 +34,19 @@ BDEPEND="
virtual/pkgconfig
"
+PATCHES=(
+ "${FILESDIR}/newsraft-0.23-hardcoded-CC.patch"
+)
+
src_compile() {
tc-getCC
emake CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
+src_test() {
+ emake CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" check
+}
+
src_install() {
emake PREFIX="/usr" DESTDIR="${D}" install
einstalldocs
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: net-news/newsraft/files/, net-news/newsraft/
@ 2024-06-25 9:10 David Roman
0 siblings, 0 replies; 2+ messages in thread
From: David Roman @ 2024-06-25 9:10 UTC (permalink / raw
To: gentoo-commits
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-25 9:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-25 9:10 [gentoo-commits] repo/proj/guru:master commit in: net-news/newsraft/files/, net-news/newsraft/ David Roman
-- strict thread matches above, loose matches on Subject: below --
2024-02-17 12:11 Rui Huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox