After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 350127 - gnome-vfs doesn't detect jhbuilt gamin
gnome-vfs doesn't detect jhbuilt gamin
Status: RESOLVED OBSOLETE
Product: jhbuild
Classification: Infrastructure
Component: module sets
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2006-08-06 07:43 UTC by Craig Keogh
Modified: 2008-04-05 12:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Craig Keogh 2006-08-06 07:43:38 UTC
I am using moduleset 'gnome-2.16.modules'. gnome-vfs lists gamin a dependency.

  <autotools id="gnome-vfs">
    <branch/>
    <dependencies>
      <dep package="gconf"/>
      <dep package="desktop-file-utils"/>
      <dep package="shared-mime-info"/>
      <dep package="gnome-mime-data"/>
      <dep package="avahi"/>
      <dep package="hal"/>
      <dep package="gamin"/>
    </dependencies>
  </autotools>

When you build gnome-vfs, it should use the built gamin. It doesn't.
This is because gnome-vfs doesn't use pkgconfig to detect gamin. It uses old school 'compile a test program' method:

AC_CHECK_LIB(fam, FAMOpen,
  [AC_CHECK_HEADERS(fam.h,
    [AC_DEFINE(HAVE_FAM, [], [Define if we have FAM])
     FAM_LIBS="-lfam"]
     fs_monitor_backends="${fs_monitor_backends}fam",
    AC_MSG_WARN(*** FAM support will not be built (header files not found) $FAM_MISSING_WARNING ***))],
  AC_MSG_WARN(*** FAM support will not be built (FAM library not found) $FAM_MISSING_WARNING ***))
AC_SUBST(FAM_LIBS)

Adding the following to .jhbuildrc will get around the problem:

os.environ['LDFLAGS'] = "-L" + prefix + "/lib"
os.environ['CPPFLAGS'] = "-I" + prefix + "/include"

Should jhbuild set those environment variables for you, in the same way jhbuild sets LD_LIBRARY_PATH?
Comment 1 Elijah Newren 2006-08-15 15:12:14 UTC
Wouldn't this be better solved by adding a pkg-config check to gnome-vfs' configure.in?
Comment 2 Frederic Peters 2007-07-21 15:17:42 UTC
The thing is the real FAM (i.e. not the gamin compatibility lib) doesn't provide a .pc file; so it would work from within jhbuild where gnome-vfs depends on gamin but not in the general case for people still using FAM.

Yet I am not keen on adding this to jhbuild since it will affect all modules and I can't predict what failures it will bring (or not).

No resolution here :(
Comment 3 Frederic Peters 2008-04-05 12:05:36 UTC
As gnome-vfs is now deprecated and inotify is used instead of fam/gamin, I'll mark this bug as obsolete.