Index: head/sysutils/lttng-tools/Makefile =================================================================== --- head/sysutils/lttng-tools/Makefile (revision 434000) +++ head/sysutils/lttng-tools/Makefile (revision 434001) @@ -1,36 +1,36 @@ # Created by: Mahdi Mokhtari # $FreeBSD$ PORTNAME= lttng-tools PORTVERSION= 2.9.0 CATEGORIES= sysutils MASTER_SITES= http://lttng.org/files/${PORTNAME}/ MAINTAINER= mokhi64@gmail.com COMMENT= Set of tools to control LTTng tracing LICENSE= LGPL21 GPLv2 LICENSE_COMB= dual LICENSE_FILE_LGPL21= ${WRKSRC}/lgpl-2.1.txt LICENSE_FILE_GPLv2= ${WRKSRC}/gpl-2.0.txt LIB_DEPENDS= libpopt.so:devel/popt \ liburcu.so:sysutils/liburcu \ liblttng-ust-ctl.so:sysutils/lttng-ust -USES= autoreconf bison libtool localbase pathfix \ +USES= autoreconf bison libtool localbase pathfix pkgconfig \ shebangfix tar:bzip2 USE_LDCONFIG= yes USE_GNOME= libxml2 GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-lttng-ust-prefix=${LOCALBASE} \ --disable-maintainer-mode INSTALL_TARGET= install-strip post-install: ${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${MANPREFIX}/man/man1/ ${INSTALL_MAN} ${WRKSRC}/doc/man/*.3 ${STAGEDIR}${MANPREFIX}/man/man3/ ${INSTALL_MAN} ${WRKSRC}/doc/man/*.8 ${STAGEDIR}${MANPREFIX}/man/man8/ .include Index: head/sysutils/lttng-tools/files/patch-src_common_compat_fcntl.h =================================================================== --- head/sysutils/lttng-tools/files/patch-src_common_compat_fcntl.h (revision 434000) +++ head/sysutils/lttng-tools/files/patch-src_common_compat_fcntl.h (revision 434001) @@ -1,35 +1,36 @@ --- src/common/compat/fcntl.h.orig 2016-11-29 22:48:37 UTC +++ src/common/compat/fcntl.h @@ -22,11 +22,15 @@ #include #include - #if (defined(__FreeBSD__) || defined(__CYGWIN__)) +-#if (defined(__FreeBSD__) || defined(__CYGWIN__)) ++#if ((defined(__FreeBSD__) && __FreeBSD__ < 11) || defined(__CYGWIN__)) typedef long long off64_t; #endif -#if (defined(__FreeBSD__) || defined(__sun__)) +#if defined(__FreeBSD__) +typedef off_t loff_t; +#endif + +#if defined(__sun__) typedef off64_t loff_t; #endif @@ -69,15 +73,6 @@ static inline ssize_t splice(int fd_in, } #endif -#ifdef __FreeBSD__ -#define POSIX_FADV_DONTNEED 0 - -static inline int posix_fadvise(int fd, off_t offset, off_t len, int advice) -{ - return -ENOSYS; -} -#endif - #if !(defined(__linux__) || defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__) || defined(__APPLE__)) #error "Please add support for your OS." #endif /* __linux__ , __FreeBSD__, __CYGWIN__, __sun__, __APPLE__ */