How to run fsearch in clear linux?

git clone https://github.com/cboxdoerfer/fsearch.git
cd fsearch

android@clr~/fsearch $ ./autogen.sh
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

./autogen.sh: line 4: intltoolize: command not found
android@clr~/fsearch $

swupd search intltoolize suggests adding the bundle intltool.

I don’t know how this relates to the other possible issues you might have there, but installing the intltool bundle might get you one step further.

android@clr~/fsearch $ sudo swupd bundle-add intltool
Loading required manifests...
Downloading packs (9.34 MB) for:
 - intltool
	...100%
Finishing packs extraction...
No extra files need to be downloaded
Installing bundle(s) files...
	...100%
Calling post-update helper scripts
Successfully installed 1 bundle
android@clr~/fsearch $ ./autogen.sh
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

configure.ac:15: installing './compile'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
src/Makefile.am:73: warning: shell $(GLIB_COMPILE_RESOURCES: non-POSIX variable name
src/Makefile.am:73: (probably a GNU make extension)
src/Makefile.am: installing './depcomp'
android@clr~/fsearch $ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
./configure: line 2875: syntax error near unexpected token `0.50.1'
./configure: line 2875: `IT_PROG_INTLTOOL(0.50.1)'
android@clr~/fsearch $ make 
make: *** No targets specified and no makefile found.  Stop.

You’ll likely need c-basic, devpkg-glib, devpkg-gtk3 and possibly others. I was able to compile this myself without any major issues.

android@clr~ $ cd fsearch/
android@clr~/fsearch $ sudo swupd bundle-add c-basic devpkg-glib devpkg-gtk3 
Password: 
Loading required manifests...
Warning: Bundle "devpkg-glib" is already installed, skipping it...
Warning: Bundle "c-basic" is already installed, skipping it...
Downloading packs (144.13 MB) for:
 - devpkg-dbus
 - devpkg-libXtst
 - devpkg-at-spi2-core
 - devpkg-at-spi2-atk
 - devpkg-atk
 - devpkg-shared-mime-info
 - devpkg-gdk-pixbuf
 - devpkg-libXcursor
 - devpkg-libepoxy
 - devpkg-libxkbcommon
 - devpkg-libpthread-stubs
 - devpkg-xorgproto
 - devpkg-libX11
 - devpkg-libdrm
 - devpkg-mesa
 - devpkg-pixman
 - devpkg-cairo
 - devpkg-expat
 - devpkg-fontconfig
 - devpkg-bzip2
 - devpkg-freetype
 - devpkg-fribidi
 - devpkg-graphite
 - devpkg-harfbuzz
 - devpkg-pango
 - devpkg-wayland
 - devpkg-wayland-protocols
 - devpkg-gtk3
	...100%
Finishing packs extraction...
No extra files need to be downloaded
Installing bundle(s) files...
	...100%
Calling post-update helper scripts
Successfully installed 1 bundle
27 bundles were installed as dependencies
2 bundles were already installed
android@clr~/fsearch $ ./autogen.sh
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

src/Makefile.am:73: warning: shell $(GLIB_COMPILE_RESOURCES: non-POSIX variable name
src/Makefile.am:73: (probably a GNU make extension)
android@clr~/fsearch $ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
./configure: line 2875: syntax error near unexpected token `0.50.1'
./configure: line 2875: `IT_PROG_INTLTOOL(0.50.1)'
android@clr~/fsearch $ make
make: *** No targets specified and no makefile found.  Stop.

@nazar_s Though by no means foolproof, sometimes the only way to solve these kinds of problems is to read up on the required dependencies in the github README, and then search for each of them using the distro package manager. I have usually managed to get things compiled in this way, though it is a bit of a messy trial-and-error process. Of course if someone pipes up here who already knows that would save you some time.

devpkg-qtbase
qt-basic-dev
c-basic 
devpkg-glib 
devpkg-gtk3

These 2 are not used by fsearch at all.

I really don’t understand why this error occurs. perhaps it doesn’t like the newer version that clearlinux has. But, it works fine on my systems:

checking whether NLS is requested... yes
checking for intltool >= 0.50.1... 0.51.0 found

confirmed bug :roll_eyes:

We’ve identified the problem here. It turns out out intltool bundle was incomplete, causing the build failures. I’m currently fixing the issue and in the future, c-basic will provide a working intltoolize.

Until the fix has been deployed, you can sudo swupd bundle-add perl-basic-dev to continue your build. Re-run autogen.sh after and you should be good to go. (Tested and works)

checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
./configure: line 6637: PKG_PROG_PKG_CONFIG: command not found
checking for glib-compile-resources... /usr/bin/glib-compile-resources
./configure: line 6679: syntax error near unexpected token `GLIB,'
./configure: line 6679: `PKG_CHECK_MODULES(GLIB, glib-2.0 > 2.36.0)'
android@clr~/fsearch $ make
make: *** No targets specified and no makefile found.  Stop.

after installing c-basic devpkg-glib devpkg-gtk3

It cannot find pkg-config, which is weird.

The c-basic bundle does contain pkg-config, and it installs /usr/share/aclocal/pkg.m4 which is what includes the PKG_PROG_PKG_CONFIG definition. Are you maybe missing /usr/bin/m4?

The problem seems specific to fsearch specifically. I’m having the same compile issues inside a mock buildroot, so you’re not alone. It appears the project is in beta stage and not ready for prime usage just yet. I don’t understand the failure myself, but I rarely ever see weird m4 issues like this, though.

Or maybe to set environment variable $PKG_CONFIG?

sudo swupd bundle-add c-basic devpkg-glib devpkg-gtk3
git clone https://github.com/cboxdoerfer/fsearch.git
cd fsearch/
./autogen.sh
./configure
make && sudo make install
2 Likes