Author Topic: Gamin dependency and openSuse >= 12.2  (Read 6676 times)

Offline grf

  • Multiple posting newcomer
  • *
  • Posts: 12
Gamin dependency and openSuse >= 12.2
« on: February 16, 2013, 09:28:34 pm »
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:

Code
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

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

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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Gamin dependency and openSuse >= 12.2
« Reply #1 on: February 16, 2013, 09:38:56 pm »
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.

Offline grf

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Gamin dependency and openSuse >= 12.2
« Reply #2 on: February 16, 2013, 10:22:07 pm »
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Gamin dependency and openSuse >= 12.2
« Reply #3 on: February 16, 2013, 10:35:36 pm »
It might be enough to replace
Code
PKG_CHECK_MODULES([GAMIN], [gamin])
with
Code
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

Offline grf

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Gamin dependency and openSuse >= 12.2
« Reply #4 on: February 17, 2013, 10:33:53 pm »
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...
« Last Edit: February 17, 2013, 10:38:58 pm by grf »