Skip to content

Commit

Permalink
inotify-tools: Update version from 3.14 to 3.22.6.0
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
donald committed Jul 16, 2023
1 parent f8afe39 commit 5f77719
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions inotify-tools.be0
Original file line number Diff line number Diff line change
@@ -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
#}
Expand All @@ -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
#}

0 comments on commit 5f77719

Please sign in to comment.