From 5f7771934d283a36f48ab67c7640a678f0bb30d8 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Sat, 15 Jul 2023 13:39:32 +0200 Subject: [PATCH] inotify-tools: Update version from 3.14 to 3.22.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update to new version, which adds tools for fanotify(7). Normalize be0 file to mTEMPLATE.be0. Notes: Overwrite autogen.sh call ========================= The supplied autogen.sh tools doesn't accepts the arguments, bee supplies by default: [BEE] /scratch/local/bee-buczek/inotify-tools/inotify-tools-3.22.6.0-0/source/autogen.sh --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --sysconfdir=/etc --sharedstatedir=/var --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --datarootdir=/usr/share --datadir=/usr/share --infodir=/usr/share/info --localedir=/usr/share/locale --mandir=/usr/share/man --docdir=/usr/share/doc/inotify-tools --exec-prefix=/usr --disable-doxygen --enable-fanotify --enable-static-binary autoreconf: error: unrecognized option '--prefix=/usr'. autoreconf: Try '/usr/bin/autoreconf --help' for more information. Overwrite autogen.sh call in mee_patch(). Configure options ================= --disable-doxygen : Avoid installation of (sparse) library doc in /usr/share/doc/inotify-tools --enable-fanotify : Create fsnotifywait, fsnotifywatch and the related man pages. These tools can use fanotify(7) build_in_sourcedir ================== Without `build_in_sourcedir`some strage errors are triggered, e.g. scratch/local/bee-buczek/inotify-tools/inotify-tools-3.22.6.0-0/source/src/inotifywait.c: In function ‘output_event_csv’: /scratch/local/bee-buczek/inotify-tools/inotify-tools-3.22.6.0-0/source/src/inotifywait.c:137:6: error: implicit declaration of function ‘inotifytools_filename_from_event’; did you mean ‘inotifytools_filename_from_wd’? [-Werror=implicit-function-declaration] 137 | inotifytools_filename_from_event(event, &eventname, &dirnamelen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | inotifytools_filename_from_wd Maybe it is using the include files from the system instead of its own. Anyway, just add `build_in_sourcdir`. --- inotify-tools.be0 | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/inotify-tools.be0 b/inotify-tools.be0 index 4d307d8f9..32ae7d816 100755 --- a/inotify-tools.be0 +++ b/inotify-tools.be0 @@ -1,30 +1,31 @@ #!/usr/bin/env beesh -# BEE_VERSION inotify-tools-3.14-1 -SRCURL[0]="https://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-${PKGVERSION}.tar.gz" +# BEE_VERSION inotify-tools-3.22.6.0-0 -# PATCHURL+=() +# more info: https://github.com/inotify-tools/inotify-tools + +#SRCURL[0]="https://github.com/inotify-tools/inotify-tools/archive/refs/tags/$PKGVERSION.tar.gz inotify-tools-$PKGVERSION" +SRCURL[0]="https://beehive.molgen.mpg.de/4b75d790de29d25e174838aaff413013/inotify-tools-3.22.6.0" -# EXCLUDE+=() +# PATCHURL+=() build_in_sourcedir +# sourcesubdir_append src + #mee_extract() { # bee_extract "${@}" #} -#mee_patch() { -# bee_patch "${@}" -#} +mee_patch() { + bee_patch "${@}" + start_cmd ./autogen.sh +} mee_configure() { - bee_configure --disable-doxygen + bee_configure --disable-doxygen --enable-fanotify } -#mee_configure_post() { -# bash -#} - #mee_build() { # bee_build #} @@ -33,9 +34,6 @@ mee_configure() { # bee_install #} -mee_install_post() { - rm -v ${D}${LIBDIR}/libinotifytools.a - rm -vr ${D}${DOCDIR} - rm -vr ${D}${DATAROOTDIR}/doc -} -## by default this may be 'make install DESTDIR="${D}"' +#mee_install_post() { +# exit +#}