Index: head/devel/libubox/Makefile =================================================================== --- head/devel/libubox/Makefile (revision 482805) +++ head/devel/libubox/Makefile (revision 482806) @@ -1,23 +1,24 @@ # Created by: Martin Matuska # $FreeBSD$ PORTNAME= libubox PORTVERSION= 20180803 PORTREVISION= 1 CATEGORIES= devel MAINTAINER= mm@FreeBSD.org COMMENT= C utility functions for OpenWrt LICENSE= GPLv2 LIB_DEPENDS= libjson-c.so:devel/json-c USES= cmake pkgconfig lua:51 +USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= mmatuska GH_TAGNAME= c83a84af CMAKE_ARGS+= -DLUAPATH="${LUA_MODLIBDIR}" .include Index: head/devel/libubox/files/patch-files_patch-utils.h =================================================================== --- head/devel/libubox/files/patch-files_patch-utils.h (nonexistent) +++ head/devel/libubox/files/patch-files_patch-utils.h (revision 482806) @@ -0,0 +1,23 @@ +--- files/patch-utils.h.orig 2018-10-23 00:26:19 UTC ++++ files/patch-utils.h +@@ -0,0 +1,20 @@ ++--- utils.h.orig 2018-09-19 23:05:31 UTC +++++ utils.h ++@@ -121,7 +121,7 @@ int clock_gettime(int type, struct timespec *tv); ++ * This returns a constant expression while determining if an argument is ++ * a constant expression, most importantly without evaluating the argument. ++ */ ++-#define __is_constant(x) \ +++#define __is_it_constant(x) \ ++ (sizeof(int) == sizeof(*(1 ? ((void*)((long)(x) * 0l)) : (int*)1))) ++ ++ #define __eval_once(func, x) \ ++@@ -136,7 +136,7 @@ int clock_gettime(int type, struct timespec *tv); ++ #define __eval_safe(func, x) __eval_once(func, x) ++ #else ++ #define __eval_safe(func, x) \ ++- __builtin_choose_expr(__is_constant(x), \ +++ __builtin_choose_expr(__is_it_constant(x), \ ++ func(x), __eval_once(func, x)) ++ #endif ++ Property changes on: head/devel/libubox/files/patch-files_patch-utils.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/libubox/pkg-plist =================================================================== --- head/devel/libubox/pkg-plist (revision 482805) +++ head/devel/libubox/pkg-plist (revision 482806) @@ -1,26 +1,25 @@ bin/jshn include/libubox/avl-cmp.h include/libubox/avl.h include/libubox/blob.h include/libubox/blobmsg.h include/libubox/blobmsg_json.h include/libubox/json_script.h include/libubox/kvlist.h include/libubox/list.h include/libubox/md5.h include/libubox/runqueue.h include/libubox/safe_list.h include/libubox/ulog.h include/libubox/uloop.h include/libubox/usock.h include/libubox/ustream.h include/libubox/utils.h include/libubox/vlist.h lib/libblobmsg_json.a lib/libblobmsg_json.so lib/libjson_script.so lib/libubox.a lib/libubox.so %%LUA_MODLIBDIR%%/uloop.so %%DATADIR%%/jshn.sh -