Package: gnome-applets Version: 2.10.1-5 Severity: important Tags: patch Hi,
For a few days, we are building packages with the binary-all files on GNU/kFreeBSD. I have found that gnome-applets fails to build from source on this platform due to the fact battstat is not build (and this it could not find the sound files). Please find attached a patch that enable battstat on GNU/kFreeBSD. It would be nice if it could be added in the next upload. Also could you please forward it to the upstream? Thanks for your cooperation, Aurelien -- System Information: Debian Release: testing/unstable Architecture: kfreebsd-i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: GNU/kFreeBSD 5.3-17 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
--- gnome-applets-2.10.1.orig/debian/patches/10_kfreebsd.patch +++ gnome-applets-2.10.1/debian/patches/10_kfreebsd.patch @@ -0,0 +1,44 @@ +--- configure.in.orig ++++ configure.in +@@ -250,7 +250,7 @@ + AC_CHECK_LIB(apm,apm_read,[HAVE_LIBAPM=yes],[HAVE_LIBAPM=no]) + ;; + # list of supported OS cores that do not use libapm +- *-*-freebsd*|*-*-netbsd*|*-*-openbsd*) ++ *-*-freebsd*|*-*-netbsd*|*-*-openbsd*|*-*kfreebsd*-gnu) + ;; + *) + echo "warning: ${host} is not supported by battstat_applet, not building" >&2 +--- configure.orig ++++ configure +@@ -24989,7 +24989,7 @@ + + ;; + # list of supported OS cores that do not use libapm +- *-*-freebsd*|*-*-netbsd*|*-*-openbsd*) ++ *-*-freebsd*|*-*-netbsd*|*-*-openbsd*|*-*-kfreebsd*-gnu) + ;; + *) + echo "warning: ${host} is not supported by battstat_applet, not building" >&2 +--- battstat.orig/properties.c ++++ battstat/properties.c +@@ -27,7 +27,7 @@ + + #include <stdio.h> + +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) + #include <machine/apm_bios.h> + #elif defined(__NetBSD__) || defined(__OpenBSD__) + #include <sys/param.h> +--- battstat.orig/power-management.c ++++ battstat/power-management.c +@@ -73,7 +73,7 @@ + * the problem might be. This error message is not to be freed. + */ + +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) + + #include <machine/apm_bios.h> +