From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 11 Feb 2025 16:09:42 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1thrtP-00134w-0x for lore@lore.pengutronix.de; Tue, 11 Feb 2025 16:09:42 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1thrtO-0008Tq-2w; Tue, 11 Feb 2025 16:09:42 +0100 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1thrt4-0008TC-9j for ptxdist@pengutronix.de; Tue, 11 Feb 2025 16:09:23 +0100 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5de4d4adac9so7940247a12.3 for ; Tue, 11 Feb 2025 07:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739286561; x=1739891361; darn=pengutronix.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KO11XmYwRhUmrITQWwWmSpzuD+yOjko7LGBHCsxa2MI=; b=KjZLxZ3tCP5P+cpNHb3HjHn4IQnJSTwlDdcgdu2i/YR0eEITygdDDv3D6rb9yo6PKR +fqVdn9KELEMhSlCN5Cm48VVBjg2HGauhq53Usy4tuFOAW5XIJU4gOa9Rz7hd538G1Zv 5y5yw2ztnh1gqnAYRJZsUQp/YCXthxbCmJXxShaqmr/KiAcpCvTz6mnzWYKTxi4h0P2C jMXU9wYnarOyZdF7kaTzpyh4Y2f/T68wDP6OE1qAmQ13wA5f6TO76wsmOaQNhspK2E/7 YQJQ32HLyrEMqlc1m4eY/UfmauLrBYdHcTewWfXFnukz5xjT/D5YcWqK9Z6zrShXrryR UsAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739286561; x=1739891361; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KO11XmYwRhUmrITQWwWmSpzuD+yOjko7LGBHCsxa2MI=; b=v9kdzKalI8XCL0eAe4+JTVj6REUEKyj70tS2giVepQtlaTqiZhq/ruB7vDpfcjHZua GRifRLYPWQ++e2qazuuUOUhuP83qQkBd2lJ+oxZzAtFU9t6TyRwtV5TieE8V5ihbbwAP 92ZsMGd5yT8Hsu0rQpnuZrUtiw65N6pVAZuIt2xDxGHvbqi73mEcVGHnCdycyqy5HQq6 36UAT95e+yAN8gMWcnNpTwK7DP0jf9KL9Z9MgnbL4bsNzf4G/sVUozG+5ZM7uNhmYPLG nv2LyTHyAjZfT+HN5fj5VgjpDRyQuQJBZTgofECgK7eR89Ge4oINtcLRhsslxXVmp1Yl GyuQ== X-Gm-Message-State: AOJu0YwUdlrnjkYn+/+2S9L3OFWPZdTr4Rusv+wNrRAy6YrPc7DL+m4e SJDitFf1D4a95iv0KaK2O0oBlf0vdMXX8+kmvRDOpS3rIhZypXeHZ3G5dw== X-Gm-Gg: ASbGncvOtTJVRpkLnIm4G43UJY4ra+2cxZGYdI1KLlABGbFkLKbOrnVQZvacx5Eja4e 2YSqjtRo89eLdEz1dlfXFa2ybu4+nb1T9PQfqMQ1vILZDZi9ikgR/9giqCE6LMoN05qt0x389Zv kf5eckTJb8DclZkW2ETBTrAkZS7CF0o0SJJTIWagdp+VbTEjLLW36FqeDSwp0H3LT29s5Slmu5l 3CM2xbGWohAU+85vi+Doz73529vwco6A4OmxtDoTUBY4STZ9h/DV+b+WVy2C7apm8ynvhLgtlb7 welbwy5BloDTzQ4U8XjOH5L/hESzo1xn X-Google-Smtp-Source: AGHT+IGEJvv8msXhDtryckKWxzQoKFls021KT3IxOpqbDq7X6tLviCMQ3o9k5aCEdU+iZjQ1jpmW3w== X-Received: by 2002:a05:6402:550c:b0:5dc:5e4b:3e21 with SMTP id 4fb4d7f45d1cf-5de45003a18mr16683913a12.9.1739286561203; Tue, 11 Feb 2025 07:09:21 -0800 (PST) Received: from laped.concentrator.internal ([185.181.22.18]) by smtp.googlemail.com with ESMTPSA id 4fb4d7f45d1cf-5de4cbdb434sm8286204a12.20.2025.02.11.07.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2025 07:09:20 -0800 (PST) From: Lars Pedersen To: ptxdist@pengutronix.de Date: Tue, 11 Feb 2025 16:09:04 +0100 Message-ID: <20250211150904.231462-1-lapeddk@gmail.com> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-1.7 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLY, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] inotify-tools: version bump 3.13 -> 4.23.9.0 X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Lars Pedersen Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false * Reworked and added new configuration options * Use version from github instead of SF mirror Signed-off-by: Lars Pedersen --- .../inotify-tools-3.13-ac-prog-libtool.diff | 26 ------------ .../inotify-tools-3.13-am-config-header.diff | 28 ------------- ...y-tools-3.13-configure-compile_ifelse.diff | 27 ------------ .../inotify-tools-3.13-m4-macro-dir.diff | 38 ----------------- patches/inotify-tools-3.13/series | 4 -- .../autogen.sh | 0 rules/inotify-tools.in | 36 +++++++++++++++- rules/inotify-tools.make | 42 ++++++++++++------- 8 files changed, 62 insertions(+), 139 deletions(-) delete mode 100644 patches/inotify-tools-3.13/inotify-tools-3.13-ac-prog-libtool.diff delete mode 100644 patches/inotify-tools-3.13/inotify-tools-3.13-am-config-header.diff delete mode 100644 patches/inotify-tools-3.13/inotify-tools-3.13-configure-compile_ifelse.diff delete mode 100644 patches/inotify-tools-3.13/inotify-tools-3.13-m4-macro-dir.diff delete mode 100644 patches/inotify-tools-3.13/series rename patches/{inotify-tools-3.13 => inotify-tools-4.23.9.0}/autogen.sh (100%) diff --git a/patches/inotify-tools-3.13/inotify-tools-3.13-ac-prog-libtool.diff b/patches/inotify-tools-3.13/inotify-tools-3.13-ac-prog-libtool.diff deleted file mode 100644 index 13ff3dffe..000000000 --- a/patches/inotify-tools-3.13/inotify-tools-3.13-ac-prog-libtool.diff +++ /dev/null @@ -1,26 +0,0 @@ -From: Robert Schwebel -Subject: use modern libtool macro - -aclocal.m4:123: AC_PROG_LIBTOOL is expanded from... - -Signed-off-by: Robert Schwebel - ---- -# 20091228 rsc: mailed to radu.voicilas@gmail.com - - configure.ac | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: inotify-tools-3.13/configure.ac -=================================================================== ---- inotify-tools-3.13.orig/configure.ac -+++ inotify-tools-3.13/configure.ac -@@ -12,7 +12,7 @@ AC_PROG_MAKE_SET - - # Checks for programs. - AC_PROG_CC --AC_PROG_LIBTOOL -+LT_INIT - - AC_PATH_PROG(DOXYGEN, doxygen, NO_DOXYGEN) - diff --git a/patches/inotify-tools-3.13/inotify-tools-3.13-am-config-header.diff b/patches/inotify-tools-3.13/inotify-tools-3.13-am-config-header.diff deleted file mode 100644 index bd3b3c21d..000000000 --- a/patches/inotify-tools-3.13/inotify-tools-3.13-am-config-header.diff +++ /dev/null @@ -1,28 +0,0 @@ -From: Robert Schwebel -Subject: inotify-tools: update configure.ac - -configure.ac:8: warning: The macro `AM_CONFIG_HEADER' is obsolete. - -Signed-off-by: Robert Schwebel - ---- -# 20091228 rsc: mailed to radu.voicilas@gmail.com - - configure.ac | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -Index: inotify-tools-3.13/configure.ac -=================================================================== ---- inotify-tools-3.13.orig/configure.ac -+++ inotify-tools-3.13/configure.ac -@@ -5,8 +5,8 @@ AC_PREREQ(2.59) - AC_INIT([inotify-tools], [3.13], [rohan@mcgovern.id.au]) - AM_INIT_AUTOMAKE - AC_CONFIG_SRCDIR([src/inotifywait.c]) --AM_CONFIG_HEADER([config.h]) --AM_CONFIG_HEADER([libinotifytools/src/inotifytools/inotify.h]) -+AC_CONFIG_HEADERS([config.h]) -+AC_CONFIG_HEADERS([libinotifytools/src/inotifytools/inotify.h]) - AC_DEFINE([_GNU_SOURCE], [], [For a few GNU-specific functions]) - AC_PROG_MAKE_SET - diff --git a/patches/inotify-tools-3.13/inotify-tools-3.13-configure-compile_ifelse.diff b/patches/inotify-tools-3.13/inotify-tools-3.13-configure-compile_ifelse.diff deleted file mode 100644 index 368f2903c..000000000 --- a/patches/inotify-tools-3.13/inotify-tools-3.13-configure-compile_ifelse.diff +++ /dev/null @@ -1,27 +0,0 @@ -From: Marc Kleine-Budde -Subject: use AC_COMPILE_IFELSE instead of AC_RUN_IFELSE to check for sys/inotify.h - -Without this patch cross compiling inotify-tools doesn't work -out of the box, because running a cross compiled programm is not -possible. This patch uses the AC_COMPILE_IFELSE instead. - -Signed-off-by: Marc Kleine-Budde ---- -# 20091228 rsc: mailed to radu.voicilas@gmail.com - - configure.ac | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: inotify-tools-3.13/configure.ac -=================================================================== ---- inotify-tools-3.13.orig/configure.ac -+++ inotify-tools-3.13/configure.ac -@@ -45,7 +45,7 @@ AM_CONDITIONAL([DOXYGEN_ENABLE], test x$ - AC_CHECK_HEADERS([sys/inotify.h mcheck.h]) - AC_LANG(C) - AC_MSG_CHECKING([whether sys/inotify.h actually works]) --AC_RUN_IFELSE( -+AC_COMPILE_IFELSE( - AC_LANG_PROGRAM([[#include ]], - [[return (-1 == inotify_init());]] - ), diff --git a/patches/inotify-tools-3.13/inotify-tools-3.13-m4-macro-dir.diff b/patches/inotify-tools-3.13/inotify-tools-3.13-m4-macro-dir.diff deleted file mode 100644 index b14442156..000000000 --- a/patches/inotify-tools-3.13/inotify-tools-3.13-m4-macro-dir.diff +++ /dev/null @@ -1,38 +0,0 @@ -From: Robert Schwebel - -libtool 2.2.6a claims about these updates: - -libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and -libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. -libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. - -Signed-off-by: Robert Schwebel - ---- -# 20091228 rsc: mailed to radu.voicilas@gmail.com - - Makefile.am | 1 + - configure.ac | 1 + - 2 files changed, 2 insertions(+) - -Index: inotify-tools-3.13/configure.ac -=================================================================== ---- inotify-tools-3.13.orig/configure.ac -+++ inotify-tools-3.13/configure.ac -@@ -7,6 +7,7 @@ AM_INIT_AUTOMAKE - AC_CONFIG_SRCDIR([src/inotifywait.c]) - AC_CONFIG_HEADERS([config.h]) - AC_CONFIG_HEADERS([libinotifytools/src/inotifytools/inotify.h]) -+AC_CONFIG_MACRO_DIR([m4]) - AC_DEFINE([_GNU_SOURCE], [], [For a few GNU-specific functions]) - AC_PROG_MAKE_SET - -Index: inotify-tools-3.13/Makefile.am -=================================================================== ---- inotify-tools-3.13.orig/Makefile.am -+++ inotify-tools-3.13/Makefile.am -@@ -1,3 +1,4 @@ -+ACLOCAL_AMFLAGS = -I m4 - - SUBDIRS = libinotifytools src man - diff --git a/patches/inotify-tools-3.13/series b/patches/inotify-tools-3.13/series deleted file mode 100644 index e651b603a..000000000 --- a/patches/inotify-tools-3.13/series +++ /dev/null @@ -1,4 +0,0 @@ -inotify-tools-3.13-configure-compile_ifelse.diff -inotify-tools-3.13-am-config-header.diff -inotify-tools-3.13-ac-prog-libtool.diff -inotify-tools-3.13-m4-macro-dir.diff diff --git a/patches/inotify-tools-3.13/autogen.sh b/patches/inotify-tools-4.23.9.0/autogen.sh similarity index 100% rename from patches/inotify-tools-3.13/autogen.sh rename to patches/inotify-tools-4.23.9.0/autogen.sh diff --git a/rules/inotify-tools.in b/rules/inotify-tools.in index f4230eaee..03989be7b 100644 --- a/rules/inotify-tools.in +++ b/rules/inotify-tools.in @@ -1,8 +1,40 @@ ## SECTION=system_libraries + config INOTIFY_TOOLS tristate prompt "inotify-tools" help - Command line tools for inotify - http://inotify-tools.sourceforge.net/ + The general purpose of this package is to allow inotify's + features to be used from within shell scripts + +if INOTIFY_TOOLS + +config INOTIFY_TOOLS_WAIT + bool + prompt "inotifywait" + help + inotifywait efficiently waits for changes to files using Linux's + inotify interface + +config INOTIFY_TOOLS_WATCH + bool + prompt "inotifywatch" + help + inotifywatch listens for filesystem events using Linux's + inotify interface + +config INOTIFY_TOOLS_FS_WAIT + bool + prompt "fsnotifywait" + help + fsnotifywait is similar to inotifywait but it is using Linux's + fanotify interface by default + +config INOTIFY_TOOLS_FS_WATCH + bool + prompt "fsnotifywatch" + help + fsnotifywatch is similar to inotifywatch but it is using Linux's + fanotify interface by default +endif diff --git a/rules/inotify-tools.make b/rules/inotify-tools.make index 1f3b4367b..9c0f03b2e 100644 --- a/rules/inotify-tools.make +++ b/rules/inotify-tools.make @@ -1,6 +1,7 @@ # -*-makefile-*- # # Copyright (C) 2008 by Brandon Fosdick +# Copyright (C) 2025 by Lars Pedersen # # For further information about the PTXdist project and license conditions # see the README file. @@ -14,15 +15,15 @@ PACKAGES-$(PTXCONF_INOTIFY_TOOLS) += inotify-tools # # Paths and names # -INOTIFY_TOOLS_VERSION := 3.13 -INOTIFY_TOOLS_MD5 := 35d7178297390f18bae451e083362acf -INOTIFY_TOOLS := inotify-tools-$(INOTIFY_TOOLS_VERSION) -INOTIFY_TOOLS_SUFFIX := tar.gz -INOTIFY_TOOLS_URL := $(call ptx/mirror, SF, inotify-tools/$(INOTIFY_TOOLS).$(INOTIFY_TOOLS_SUFFIX)) -INOTIFY_TOOLS_SOURCE := $(SRCDIR)/$(INOTIFY_TOOLS).$(INOTIFY_TOOLS_SUFFIX) -INOTIFY_TOOLS_DIR := $(BUILDDIR)/$(INOTIFY_TOOLS) -INOTIFY_TOOLS_LICENSE := GPL-2.0-only -INOTIFY_TOOLS_LICENSE_FILES := file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 +INOTIFY_TOOLS_VERSION := 4.23.9.0 +INOTIFY_TOOLS_MD5 := 66ff78fc6595fefe715f505357b9714a +INOTIFY_TOOLS := inotify-tools-$(INOTIFY_TOOLS_VERSION) +INOTIFY_TOOLS_SUFFIX := tar.gz +INOTIFY_TOOLS_URL := https://github.com/inotify-tools/inotify-tools/archive/refs/tags/$(INOTIFY_TOOLS_VERSION).$(INOTIFY_TOOLS_SUFFIX) +INOTIFY_TOOLS_SOURCE := $(SRCDIR)/$(INOTIFY_TOOLS).$(INOTIFY_TOOLS_SUFFIX) +INOTIFY_TOOLS_DIR := $(BUILDDIR)/$(INOTIFY_TOOLS) +INOTIFY_TOOLS_LICENSE := GPL-2.0-only +INOTIFY_TOOLS_LICENSE_FILES := file://COPYING;md5=ac6c26e52aea428ee7f56dc2c56424c6 # ---------------------------------------------------------------------------- # Prepare @@ -44,14 +45,27 @@ $(STATEDIR)/inotify-tools.targetinstall: @$(call install_init, inotify-tools) @$(call install_fixup, inotify-tools,PRIORITY,optional) @$(call install_fixup, inotify-tools,SECTION,base) - @$(call install_fixup, inotify-tools,AUTHOR,"Brandon Fosdick ") + @$(call install_fixup, inotify-tools,AUTHOR,"Lars Pedersen ") @$(call install_fixup, inotify-tools,DESCRIPTION,missing) +ifdef PTXCONF_INOTIFY_TOOLS_WAIT @$(call install_copy, inotify-tools, 0, 0, 0755, -, /usr/bin/inotifywait) - @$(call install_lib, inotify_tools, 0, 0, 0644, libinotifytools) +endif - @$(call install_finish, inotify-tools) +ifdef PTXCONF_INOTIFY_TOOLS_WATCH + @$(call install_copy, inotify-tools, 0, 0, 0755, -, /usr/bin/inotifywatch) +endif + +ifdef PTXCONF_INOTIFY_TOOLS_FS_WAIT + @$(call install_copy, inotify-tools, 0, 0, 0755, -, /usr/bin/fsnotifywait) +endif + +ifdef PTXCONF_INOTIFY_TOOLS_FS_WATCH + @$(call install_copy, inotify-tools, 0, 0, 0755, -, /usr/bin/fsnotifywatch) +endif - @$(call touch) + @$(call install_lib, inotify-tools, 0, 0, 0644, libinotifytools) + + @$(call install_finish, inotify-tools) -# vim: syntax=make + @$(call touch) \ No newline at end of file base-commit: 172dd6c2560bc163afa099c1036313e923ad0ea9 -- 2.48.1