Package: gamin
Severity: important
Tags: patch
FAM is missing the debug API that some external FAM-using modules
such as SGI::FAM for Perl depend upon. It's IMO useless, but
important for build compatibility.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.11
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
diff -ur gamin-0.1.8/debian/rules asdf/debian/rules
--- gamin-0.1.8/debian/rules 2007-01-16 21:10:05.000000000 -0600
+++ asdf/debian/rules 2007-01-16 20:56:19.000000000 -0600
@@ -27,6 +27,7 @@
$(DEB_CONFIGURE_SCRIPT) \
$(DEB_CONFIGURE_NORMAL_ARGS) \
--disable-maintainer-mode \
+ --enable-debug-api \
$(cdbs_configure_flags) \
$(DEB_CONFIGURE_EXTRA_FLAGS) \
$(DEB_CONFIGURE_USER_FLAGS)
diff -ur gamin-0.1.8/libgamin/fam.h asdf/libgamin/fam.h
--- gamin-0.1.8/libgamin/fam.h 2005-03-15 06:01:03.000000000 -0600
+++ asdf/libgamin/fam.h 2007-01-16 21:09:52.000000000 -0600
@@ -190,6 +190,18 @@
extern int FAMErrno;
/**
+ * FAMDebugLevel
+ *
+ * Currently unimplemented as in the SGI FAM. Exists only for
+ * compatibility.
+ */
+extern int FAMDebugLevel (FAMConnection *fc,
+ int level);
+#define FAM_DEBUG_OFF 0
+#define FAM_DEBUG_ON 1
+#define FAM_DEBUG_VERBOSE 2
+
+/**
* FamErrList:
*
* In case FAMErrno is set, FAMErrlist is a global string array indexed
diff -ur gamin-0.1.8/libgamin/gam_api.c asdf/libgamin/gam_api.c
--- gamin-0.1.8/libgamin/gam_api.c 2006-10-25 11:13:43.000000000 -0500
+++ asdf/libgamin/gam_api.c 2007-01-16 20:34:25.000000000 -0600
@@ -1529,4 +1529,11 @@
}
return(ret);
}
+
+/* This doesn't do anything in FAM either, here only for completeness */
+int
+FAMDebugLevel(FAMConnection *fc, int level)
+{
+ return(1);
+}
#endif