Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2019 19:26:14 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r515818 - in head/net/openvswitch: . files
Message-ID:  <201910271926.x9RJQEhB078058@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sun Oct 27 19:26:14 2019
New Revision: 515818
URL: https://svnweb.freebsd.org/changeset/ports/515818

Log:
  net/openvswitch: fix build on GCC architectures
  
  Use C11 compiler:
  ./include/openvswitch/ofp-actions.h:1302: error: bit-field 'build_assert_failed' width not an integer constant
  ./include/openvswitch/ofp-actions.h:1302: error: bit-field 'build_assert_failed' width not an integer constant
  ./include/openvswitch/ofp-actions.h:1302: error: bit-field 'build_assert_failed' width not an integer constant
  
  Include sys/socket.h in lib/dns-resolve.c to make AF_INET available.
  
  PR:		241329
  Approved by:	koue@chaosophia.net (maintainer), linimon (mentor)

Added:
  head/net/openvswitch/files/patch-lib_dns-resolve.c   (contents, props changed)
Modified:
  head/net/openvswitch/Makefile

Modified: head/net/openvswitch/Makefile
==============================================================================
--- head/net/openvswitch/Makefile	Sun Oct 27 19:23:50 2019	(r515817)
+++ head/net/openvswitch/Makefile	Sun Oct 27 19:26:14 2019	(r515818)
@@ -15,7 +15,8 @@ BROKEN_mips64=		fails to compile: ofp-actions.h:486: f
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
 
-USES=		cpe gmake libtool perl5 pkgconfig python:2.7 shebangfix ssl
+USES=		compiler:c11 cpe gmake libtool perl5 pkgconfig python:2.7 \
+		shebangfix ssl
 SHEBANG_FILES=	ovn/utilities/ovndb-servers.ocf \
 		utilities/bugtool/ovs-bugtool-ovs-ofctl-loop-over-bridges \
 		utilities/ovs-docker \

Added: head/net/openvswitch/files/patch-lib_dns-resolve.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/openvswitch/files/patch-lib_dns-resolve.c	Sun Oct 27 19:26:14 2019	(r515818)
@@ -0,0 +1,10 @@
+--- lib/dns-resolve.c.orig	2019-10-18 14:20:09 UTC
++++ lib/dns-resolve.c
+@@ -22,6 +22,7 @@
+ #include <arpa/nameser.h>
+ #include <errno.h>
+ #include <string.h>
++#include <sys/socket.h>
+ #include <sys/stat.h>
+ #include <unbound.h>
+ #include "hash.h"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910271926.x9RJQEhB078058>