News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Gamin dependency and openSuse >= 12.2

Started by grf, February 16, 2013, 09:28:34 PM

Previous topic - Next topic

grf

Periodically I compile and install a new version of codeblocks nightlies from the SVN repository. Starting with openSuse 12.2, the dependecy "gamin" ist not found during autoconf:

checking for GAMIN... no
configure: error: Package requirements (gamin) were not met:

No package 'gamin' found


The (maybe?) corresponding package "gamin-devel" (version 01.10) is still available for 12.2/12.3 but conflicts with packages "libfam0-***" (version 2.7.0). I found no way to get both installed in parallel without producing rpm dependency warnings.

Does anyone know a solution for compiling codeblocks including the gamin dependency? Or does anyone know, how this rpm conflicts can be solved? As far as I know, gamin is a subset of fam which is already installed (also the corresponding devel package)...

Currently I compile the nightlies with the option

./configure --with-contrib-plugins=all,-FileManager

This works well, but the Filemanager plugin will not be available...

Jenna

It should be possible to use fam instead of gamin.
It might also be possible to remove fam and use gamin instead on your system.

grf

How can I use fam instead of gamin? Is there a way to configure autoconf for using fam?

As far as I remember I tried to use gamin instead of fam with openSuse 12.2. I cannot remember completely, but I had some trouble with rpm dependencies and the gamin requirement still wasn't met. So using fam instead of gamin sounds more suitable to me.

Jenna

It might be enough to replace
PKG_CHECK_MODULES([GAMIN], [gamin])
with
PKG_CHECK_MODULES([GAMIN], [fam])
in line 169 in configure.in .

Then run ./bootstrap and rerun the configure-script from your build-folder.

The proposal assumes that the pkg-config file for fam-devel is called fam.pc

grf

#4
Unfortunately pkg-config can't find fam and no files like fam.pc or gamin.pc are located in /usr/lib64/pkgconfig. It seems that the openSuse doesn't contain any *.pc files for fam.

The fam-devel rpm contains only the following files:

/usr/include/fam.h
/usr/lib64/libfam.a
/usr/lib64/libfam.la
/usr/lib64/libfam.so
/usr/share/man/man8/famd.8.gz

Now I tried again to fix the rpm dependency problems. I installed the gamin-devel package and therefore I had to remove some other devel packages (two kde4 related and fam-devel). Now codeblocks compiles with FileManager and runs without problems. I hope, that I get no side effects from the removing of the two kde devel packages, but in that case I can go back in removing gamin-devel and reinstalling the KDE devel packages.

However, thank you for your help. Now I have a little bit more overview/knowledge about pkg-config and the possibility to change some requirements...