svn commit: r510091 - in head/x11-wm/enlightenment: . files

Piotr Kubaj pkubaj at FreeBSD.org
Wed Aug 28 19:17:51 UTC 2019


Author: pkubaj
Date: Wed Aug 28 19:17:50 2019
New Revision: 510091
URL: https://svnweb.freebsd.org/changeset/ports/510091

Log:
  x11-wm/enlightenment: fix build with GCC architectures
  
  This port needs include sys/types.h in src/modules/sysinfo/cpuclock/cpuclock_sysctl.c:
  /usr/include/sys/sysctl.h:1062: error: expected declaration specifiers or '...' before 'u_int'
  
  It also needs USES=compiler:c11 because of pragma GCC diagnostic.
  
  PR:		239407
  Approved by:	enlightenment (maintainer timeout), linimon (mentor)
  Differential Revision:	https://reviews.freebsd.org/D21399

Added:
  head/x11-wm/enlightenment/files/patch-src_modules_sysinfo_cpuclock_cpuclock__sysctl.c   (contents, props changed)
Modified:
  head/x11-wm/enlightenment/Makefile

Modified: head/x11-wm/enlightenment/Makefile
==============================================================================
--- head/x11-wm/enlightenment/Makefile	Wed Aug 28 19:15:20 2019	(r510090)
+++ head/x11-wm/enlightenment/Makefile	Wed Aug 28 19:17:50 2019	(r510091)
@@ -20,7 +20,7 @@ LIB_DEPENDS=	libefl.so:devel/efl \
 BROKEN_sparc64=		Does not install on sparc64: signal 10
 
 GNU_CONFIGURE=	yes
-USES=		alias autoreconf desktop-file-utils gettext-tools \
+USES=		alias autoreconf compiler:c11 desktop-file-utils gettext-tools \
 		gmake iconv libtool pathfix pkgconfig tar:xz
 USE_XORG=	xcb
 USE_LDCONFIG=	yes

Added: head/x11-wm/enlightenment/files/patch-src_modules_sysinfo_cpuclock_cpuclock__sysctl.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/enlightenment/files/patch-src_modules_sysinfo_cpuclock_cpuclock__sysctl.c	Wed Aug 28 19:17:50 2019	(r510091)
@@ -0,0 +1,10 @@
+--- src/modules/sysinfo/cpuclock/cpuclock_sysctl.c.orig	2019-07-23 16:46:44 UTC
++++ src/modules/sysinfo/cpuclock/cpuclock_sysctl.c
+@@ -2,6 +2,7 @@
+ #include <stdlib.h>
+ 
+ #if defined(__FreeBSD__) || defined(__DragonFly__)
++# include <sys/types.h>
+ # include <sys/sysctl.h>
+ #endif
+ 


More information about the svn-ports-head mailing list