From owner-svn-ports-branches@freebsd.org Tue Mar 15 17:01:35 2016 Return-Path: Delivered-To: svn-ports-branches@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0F32AD287A; Tue, 15 Mar 2016 17:01:34 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B82CD1AE8; Tue, 15 Mar 2016 17:01:34 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u2FH1XrO003472; Tue, 15 Mar 2016 17:01:33 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u2FH1Xrv003466; Tue, 15 Mar 2016 17:01:33 GMT (envelope-from feld@FreeBSD.org) Message-Id: <201603151701.u2FH1Xrv003466@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Tue, 15 Mar 2016 17:01:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r411193 - in branches/2016Q1/sysutils/inotify-tools: . files X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2016 17:01:35 -0000 Author: feld Date: Tue Mar 15 17:01:33 2016 New Revision: 411193 URL: https://svnweb.freebsd.org/changeset/ports/411193 Log: MFH: r411192 sysutils/inotify-tools: Update to 3.14.01 This update prevents signal handling from being blocked on a worker thread as well as an accumulation of other bug fixes. PR: 204366 Approved by: ports-secteam (with hat) Added: branches/2016Q1/sysutils/inotify-tools/files/patch-configure.ac - copied unchanged from r411192, head/sysutils/inotify-tools/files/patch-configure.ac branches/2016Q1/sysutils/inotify-tools/files/patch-src_Makefile.am - copied unchanged from r411192, head/sysutils/inotify-tools/files/patch-src_Makefile.am branches/2016Q1/sysutils/inotify-tools/files/patch-src_inotifywatch.c - copied unchanged from r411192, head/sysutils/inotify-tools/files/patch-src_inotifywatch.c Deleted: branches/2016Q1/sysutils/inotify-tools/files/patch-libinotifytools_src_inotifytools.c Modified: branches/2016Q1/sysutils/inotify-tools/Makefile branches/2016Q1/sysutils/inotify-tools/distinfo Directory Properties: branches/2016Q1/ (props changed) Modified: branches/2016Q1/sysutils/inotify-tools/Makefile ============================================================================== --- branches/2016Q1/sysutils/inotify-tools/Makefile Tue Mar 15 16:58:12 2016 (r411192) +++ branches/2016Q1/sysutils/inotify-tools/Makefile Tue Mar 15 17:01:33 2016 (r411193) @@ -2,9 +2,9 @@ # $FreeBSD$ PORTNAME= inotify-tools -PORTVERSION= 3.14 -CATEGORIES= sysutils +PORTVERSION= 3.14.01 DISTVERSIONPREFIX= v +CATEGORIES= sysutils MAINTAINER= yuri@rawbw.com COMMENT= Command-line utilities to watch for file events @@ -15,6 +15,7 @@ LIB_DEPENDS= libinotify.so:${PORTSDIR}/d USE_GITHUB= yes GH_ACCOUNT= rvoicilas +GH_TAGNAME= 1df9af4 USES= autoreconf gmake libtool GNU_CONFIGURE= yes @@ -24,6 +25,5 @@ INSTALL_TARGET= install-strip CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -LIBS+= -linotify .include Modified: branches/2016Q1/sysutils/inotify-tools/distinfo ============================================================================== --- branches/2016Q1/sysutils/inotify-tools/distinfo Tue Mar 15 16:58:12 2016 (r411192) +++ branches/2016Q1/sysutils/inotify-tools/distinfo Tue Mar 15 17:01:33 2016 (r411193) @@ -1,2 +1,2 @@ -SHA256 (rvoicilas-inotify-tools-v3.14_GH0.tar.gz) = 97a4fdf9132da47c2baa677c1a427c435ee55a26df42b2b74a41489b9fbd2323 -SIZE (rvoicilas-inotify-tools-v3.14_GH0.tar.gz) = 66905 +SHA256 (rvoicilas-inotify-tools-v3.14.01-1df9af4_GH0.tar.gz) = 3cb567344dad1fbe9a935d5a7c3f9c9bbce151df982631eb319763b2708ef4ea +SIZE (rvoicilas-inotify-tools-v3.14.01-1df9af4_GH0.tar.gz) = 70023 Copied: branches/2016Q1/sysutils/inotify-tools/files/patch-configure.ac (from r411192, head/sysutils/inotify-tools/files/patch-configure.ac) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2016Q1/sysutils/inotify-tools/files/patch-configure.ac Tue Mar 15 17:01:33 2016 (r411193, copy of r411192, head/sysutils/inotify-tools/files/patch-configure.ac) @@ -0,0 +1,18 @@ +--- configure.ac.orig 2014-11-09 20:57:04 UTC ++++ configure.ac +@@ -44,6 +44,7 @@ AM_CONDITIONAL([STATIC_BINARY_ENABLE], t + + + # Checks for libraries. ++AC_SEARCH_LIBS(inotify_init, inotify) + + # Checks for header files. + AC_CHECK_HEADERS([sys/inotify.h mcheck.h]) +@@ -62,6 +63,7 @@ AC_C_CONST + AC_C_INLINE + + # Checks for library functions. ++AC_CHECK_FUNCS(stat64, [], [CPPFLAGS="$CPPFLAGS -Dstat64=stat -Dlstat64=lstat"]) + + # Set variables used in man page templates + MAN_DATE=$(date +'%B %d, %Y') Copied: branches/2016Q1/sysutils/inotify-tools/files/patch-src_Makefile.am (from r411192, head/sysutils/inotify-tools/files/patch-src_Makefile.am) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2016Q1/sysutils/inotify-tools/files/patch-src_Makefile.am Tue Mar 15 17:01:33 2016 (r411193, copy of r411192, head/sysutils/inotify-tools/files/patch-src_Makefile.am) @@ -0,0 +1,16 @@ +--- src/Makefile.am.orig 2014-11-09 20:57:04 UTC ++++ src/Makefile.am +@@ -2,10 +2,11 @@ bin_PROGRAMS = inotifywait inotifywatch + inotifywait_SOURCES = inotifywait.c common.c common.h + inotifywatch_SOURCES = inotifywatch.c common.c common.h + +-AM_CFLAGS = -Wall -Werror -Wpointer-arith -std=c99 -I../libinotifytools/src -L../libinotifytools/src ++AM_CFLAGS = -Wall -Werror -Wpointer-arith -std=c99 + AM_CPPFLAGS = -I$(top_srcdir)/libinotifytools/src + LDADD = ../libinotifytools/src/libinotifytools.la ++AM_LDFLAGS = -L$(top_srcdir)/libinotifytools/src + + if STATIC_BINARY_ENABLE +-AM_LDFLAGS = -static-libtool-libs ++AM_LDFLAGS += -static-libtool-libs + endif Copied: branches/2016Q1/sysutils/inotify-tools/files/patch-src_inotifywatch.c (from r411192, head/sysutils/inotify-tools/files/patch-src_inotifywatch.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2016Q1/sysutils/inotify-tools/files/patch-src_inotifywatch.c Tue Mar 15 17:01:33 2016 (r411193, copy of r411192, head/sysutils/inotify-tools/files/patch-src_inotifywatch.c) @@ -0,0 +1,50 @@ +--- src/inotifywatch.c.orig 2015-11-09 01:40:46 UTC ++++ src/inotifywatch.c +@@ -12,6 +12,9 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif // __FreeBSD__ + #include + #include + #include +@@ -93,6 +96,9 @@ int main(int argc, char ** argv) + char * exc_iregex = NULL; + char * inc_regex = NULL; + char * inc_iregex = NULL; ++#ifdef __FreeBSD__ ++ sigset_t set, oset; ++#endif // __FreeBSD__ + + signal( SIGINT, handle_impatient_user ); + +@@ -121,11 +127,27 @@ int main(int argc, char ** argv) + return EXIT_FAILURE; + } + ++#ifdef __FreeBSD__ ++ // Block some signals in libinotify's worker thread, so that ++ // handle_signal runs in the context of the main thread and ++ // the 'done' flag is actually honored. ++ sigemptyset(&set); ++ sigaddset(&set, SIGINT); ++ sigaddset(&set, SIGHUP); ++ sigaddset(&set, SIGTERM); ++ sigaddset(&set, SIGALRM); ++ pthread_sigmask(SIG_BLOCK, &set, &oset); ++#endif // __FreeBSD__ ++ + if ( !inotifytools_initialize() ) { + warn_inotify_init_error(); + return EXIT_FAILURE; + } + ++#ifdef __FreeBSD__ ++ pthread_sigmask(SIG_SETMASK, &oset, NULL); ++#endif // __FreeBSD__ ++ + // Attempt to watch file + // If events is still 0, make it all events. + if ( !events )