svn commit: r523712 - in head/net-p2p/c-lightning: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Tue Jan 21 10:48:59 UTC 2020
Author: pkubaj
Date: Tue Jan 21 10:48:58 2020
New Revision: 523712
URL: https://svnweb.freebsd.org/changeset/ports/523712
Log:
net-p2p/c-lightning: fix build on GCC architectures
Needs C11 compiler:
cc1: error: unrecognized command line option "-std=gnu11"
Needs include sys/types.h in fdpass.c:
ccan/ccan/fdpass/fdpass.c: In function 'fdpass_send':
ccan/ccan/fdpass/fdpass.c:16:12: error: 'register_t' undeclared (first use in this function)
16 | char buf[CMSG_SPACE(sizeof(fd))];
| ^~~~~~~~~~
PR: 243481
Approved by: vd (maintainer)
MFH: 2020Q1 (fix build blanket)
Added:
head/net-p2p/c-lightning/files/patch-ccan_ccan_fdpass_fdpass.c (contents, props changed)
Modified:
head/net-p2p/c-lightning/Makefile
Modified: head/net-p2p/c-lightning/Makefile
==============================================================================
--- head/net-p2p/c-lightning/Makefile Tue Jan 21 10:01:05 2020 (r523711)
+++ head/net-p2p/c-lightning/Makefile Tue Jan 21 10:48:58 2020 (r523712)
@@ -22,7 +22,8 @@ LIB_DEPENDS= libgmp.so:math/gmp \
libsqlite3.so:databases/sqlite3
RUN_DEPENDS= bitcoin-cli:net-p2p/bitcoin-utils
-USES= autoreconf:build gettext gmake libtool python:3.5+,build
+USES= autoreconf:build compiler:c11 gettext gmake libtool \
+ python:3.5+,build
BINARY_ALIAS= python=${PYTHON_CMD} python3=${PYTHON_CMD}
ALL_TARGET= default
Added: head/net-p2p/c-lightning/files/patch-ccan_ccan_fdpass_fdpass.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-p2p/c-lightning/files/patch-ccan_ccan_fdpass_fdpass.c Tue Jan 21 10:48:58 2020 (r523712)
@@ -0,0 +1,10 @@
+--- ccan/ccan/fdpass/fdpass.c.orig 2020-01-20 22:03:36 UTC
++++ ccan/ccan/fdpass/fdpass.c
+@@ -1,6 +1,7 @@
+ /* CC0 license (public domain) - see LICENSE file for details */
+ #include <ccan/fdpass/fdpass.h>
+ #include <sys/socket.h>
++#include <sys/types.h>
+ #include <errno.h>
+ #include <string.h>
+
More information about the svn-ports-all
mailing list