* [gentoo-commits] repo/gentoo:master commit in: net-misc/spiped/files/, net-misc/spiped/
@ 2020-06-11 11:12 Patrice Clement
0 siblings, 0 replies; only message in thread
From: Patrice Clement @ 2020-06-11 11:12 UTC (permalink / raw
To: gentoo-commits
commit: 99d6110fc6b30c51fabef6d171dd08cf81ff9b1e
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 11 11:07:58 2020 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Thu Jun 11 11:07:58 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99d6110f
net-misc/spiped: patch Makefile to honor LDFLAGS.
Closes: https://bugs.gentoo.org/725230
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
.../files/spiped-1.6.0-ldflags-support.patch | 22 ++++++++++++++++++++++
net-misc/spiped/spiped-1.6.0-r1.ebuild | 4 ++++
2 files changed, 26 insertions(+)
diff --git a/net-misc/spiped/files/spiped-1.6.0-ldflags-support.patch b/net-misc/spiped/files/spiped-1.6.0-ldflags-support.patch
new file mode 100644
index 00000000000..e7502d539c9
--- /dev/null
+++ b/net-misc/spiped/files/spiped-1.6.0-ldflags-support.patch
@@ -0,0 +1,22 @@
+--- a/spiped/Makefile 2020-06-11 10:21:27.592104792 -0000
++++ b/spiped/Makefile 2020-06-11 10:21:55.028522571 -0000
+@@ -27,7 +27,7 @@
+ rm -f ${PROG} ${SRCS:.c=.o}
+
+ ${PROG}:${SRCS:.c=.o}
+- ${CC} -o ${PROG} ${SRCS:.c=.o} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
++ ${CC} -o ${PROG} ${SRCS:.c=.o} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX} ${LDFLAGS}
+
+ main.o: main.c ../libcperciva/util/asprintf.h ../libcperciva/util/daemonize.h ../libcperciva/events/events.h ../libcperciva/util/getopt.h ../lib/util/graceful_shutdown.h ../libcperciva/util/parsenum.h ../libcperciva/util/sock.h ../libcperciva/util/warnp.h dispatch.h ../proto/proto_crypt.h ../libcperciva/crypto/crypto_dh.h
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I.. ${IDIRS} -c main.c -o main.o
+--- a/spipe/Makefile 2020-06-11 10:21:19.025515816 -0000
++++ b/spipe/Makefile 2020-06-11 10:22:17.924981556 -0000
+@@ -27,7 +27,7 @@
+ rm -f ${PROG} ${SRCS:.c=.o}
+
+ ${PROG}:${SRCS:.c=.o}
+- ${CC} -o ${PROG} ${SRCS:.c=.o} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
++ ${CC} -o ${PROG} ${SRCS:.c=.o} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX} ${LDFLAGS}
+
+ main.o: main.c ../libcperciva/events/events.h ../libcperciva/util/getopt.h ../libcperciva/util/parsenum.h ../libcperciva/util/sock.h ../libcperciva/util/warnp.h ../proto/proto_conn.h ../proto/proto_crypt.h ../libcperciva/crypto/crypto_dh.h pushbits.h
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I.. ${IDIRS} -c main.c -o main.o
diff --git a/net-misc/spiped/spiped-1.6.0-r1.ebuild b/net-misc/spiped/spiped-1.6.0-r1.ebuild
index 7820531c9cd..ca4826de3c1 100644
--- a/net-misc/spiped/spiped-1.6.0-r1.ebuild
+++ b/net-misc/spiped/spiped-1.6.0-r1.ebuild
@@ -25,6 +25,10 @@ RDEPEND="
${DEPEND}
!net-mail/qlogtools"
+PATCHES=(
+ "${FILESDIR}/${P}-ldflags-support.patch"
+)
+
src_compile() {
emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-11 11:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-11 11:12 [gentoo-commits] repo/gentoo:master commit in: net-misc/spiped/files/, net-misc/spiped/ Patrice Clement
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox