Package: xfce4-systemload-plugin Severity: important Tags: patch Salut Corsac et al.,
currently your package FTBFS on GNU/kFreeBSD with the following error: > cc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" > -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/gtk-2.0 > -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 > -I/usr/include/libpng12 -I/usr/include/atk-1.0 -g -Wall -O2 -c -o > xfce4_systemload_plugin-memswap.o `test -f 'memswap.c' || echo './'`memswap.c > memswap.c:465:2: error: #error "Your platform is not yet support" > make[3]: *** [xfce4_systemload_plugin-memswap.o] Error 1 > make[3]: Leaving directory > `/build/buildd/xfce4-systemload-plugin-0.4/panel-plugin' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/build/buildd/xfce4-systemload-plugin-0.4' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/build/buildd/xfce4-systemload-plugin-0.4' > make: *** [debian/stamp-makefile-build] Error 2 Full build logs are available at <http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=xfce4-systemload-plugin>. Please find attached a patch which fixes that. Cheers, -- Cyril Brulebois
--- xfce4-systemload-plugin-0.4/panel-plugin/cpu.c 2007-03-10 00:02:05.997544000 +0100 +++ xfce4-systemload-plugin-0.4/panel-plugin/cpu.c 2007-03-10 00:02:27.000000000 +0100 @@ -37,7 +37,7 @@ #include <libxfcegui4/dialogs.h> #include "cpu.h" -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD_kernel__) #define PROC_STAT "/proc/stat" /* user, nice, system, interrupt(BSD specific), idle */ --- xfce4-systemload-plugin-0.4/panel-plugin/memswap.c 2007-03-10 00:01:41.904882000 +0100 +++ xfce4-systemload-plugin-0.4/panel-plugin/memswap.c 2007-03-10 00:01:55.000000000 +0100 @@ -32,7 +32,7 @@ #include "memswap.h" -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD_kernel__) #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> --- xfce4-systemload-plugin-0.4/panel-plugin/uptime.c 2007-03-10 00:03:36.023726000 +0100 +++ xfce4-systemload-plugin-0.4/panel-plugin/uptime.c 2007-03-10 00:03:56.000000000 +0100 @@ -34,7 +34,7 @@ #include "uptime.h" -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD_kernel__) #include <stdio.h> #include <stdlib.h> #include <string.h>