Better fix for the symbol conflict that affects our libtool
Allows us to run the testsuite again.
This commit is contained in:
parent
bbd9c09255
commit
2ad0aee032
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.21 2017/11/20 14:25:30 jca Exp $
|
||||
# $OpenBSD: Makefile,v 1.22 2017/11/20 14:27:32 jca Exp $
|
||||
|
||||
COMMENT = authoritative DNS server
|
||||
|
||||
DISTNAME = knot-2.4.5
|
||||
REVISION = 1
|
||||
REVISION = 2
|
||||
|
||||
SHARED_LIBS += zscanner 1.0 # .1.0
|
||||
SHARED_LIBS += knot 1.1 # .5.0
|
||||
@ -51,6 +51,11 @@ CONFIGURE_ENV = ac_cv_path_PDFLATEX="false" \
|
||||
CFLAGS += -march=i586
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
# Workaround symbol conflict somehow avoided by GNU libtool
|
||||
sed -i 's/net_send/contrib_&/g' ${WRKSRC}/tests/contrib/test_net.c
|
||||
sed -i 's/net_send/contrib_&/g' ${WRKSRC}/src/contrib/net.[ch]
|
||||
|
||||
post-install:
|
||||
mv ${WRKINST}/etc/knot/ ${PREFIX}/share/examples/knot/
|
||||
|
||||
|
@ -1,14 +0,0 @@
|
||||
$OpenBSD: patch-src_contrib_net_c,v 1.1 2017/07/23 12:39:37 zhuk Exp $
|
||||
make net_send static, avoids conflict with net_send in libknot.
|
||||
|
||||
Index: src/contrib/net.c
|
||||
--- src/contrib/net.c.orig
|
||||
+++ src/contrib/net.c
|
||||
@@ -467,6 +467,7 @@ static ssize_t send_data(int sock, struct msghdr *msg,
|
||||
|
||||
/* -- generic stream and datagram I/O -------------------------------------- */
|
||||
|
||||
+static
|
||||
ssize_t net_send(int sock, const uint8_t *buffer, size_t size,
|
||||
const struct sockaddr *addr, int timeout_ms)
|
||||
{
|
@ -1,22 +0,0 @@
|
||||
$OpenBSD: patch-src_contrib_net_h,v 1.1 2017/07/23 12:39:37 zhuk Exp $
|
||||
make net_send static, avoids conflict with net_send in libknot.
|
||||
|
||||
Index: src/contrib/net.h
|
||||
--- src/contrib/net.h.orig
|
||||
+++ src/contrib/net.h
|
||||
@@ -100,6 +100,7 @@ bool net_is_stream(int sock);
|
||||
*/
|
||||
int net_accept(int sock, struct sockaddr_storage *addr);
|
||||
|
||||
+#if 0
|
||||
/*!
|
||||
* \brief Send a message on a socket.
|
||||
*
|
||||
@@ -118,6 +119,7 @@ int net_accept(int sock, struct sockaddr_storage *addr
|
||||
*/
|
||||
ssize_t net_send(int sock, const uint8_t *buffer, size_t size,
|
||||
const struct sockaddr *addr, int timeout_ms);
|
||||
+#endif
|
||||
|
||||
/*!
|
||||
* \brief Receive a message from a socket.
|
Loading…
Reference in New Issue
Block a user