Package: xfce4-battery-plugin Version: 1.0.5-3 Severity: important Tags: patch upstream
Hi folks, Thanks for doing the changes to recognise new architectures like arm64. However, there's another bug to fix to fix FTBFS on arm64. The code in libacpi.c is buggy, and assumes that Linux will always have sysctl(). sysctl is strongly deprecated according to the man page, and it seems it is not supported on arm64. That wouldn't be a problem, but some of the includes in libacpi.c are dependent on HAVE_SYSCTL when they shouldn't be. A trivial patch to fix that is attached. -- System Information: Debian Release: 7.7 APT prefers stable APT policy: (500, 'stable'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages xfce4-battery-plugin depends on: ii libatk1.0-0 2.4.0-2 ii libc6 2.13-38+deb7u6 ii libcairo2 1.12.2-3 ii libfontconfig1 2.9.0-7.1 ii libfreetype6 2.4.9-1.1 ii libgdk-pixbuf2.0-0 2.26.1-1 ii libglib2.0-0 2.33.12+really2.32.4-5 ii libgtk2.0-0 2.24.10-2 ii libpango1.0-0 1.30.0-1 ii libxfce4ui-1-0 4.8.1-1 ii libxfce4util4 4.8.2-1 ii xfce4-panel 4.8.6-4 xfce4-battery-plugin recommends no packages. xfce4-battery-plugin suggests no packages. -- no debconf information
--- xfce4-battery-plugin-1.0.5.orig/panel-plugin/libacpi.c +++ xfce4-battery-plugin-1.0.5/panel-plugin/libacpi.c @@ -50,12 +50,13 @@ static int acpifd; #endif #include <sys/sysctl.h> + +#endif + #include <err.h> #include <errno.h> #include <unistd.h> -#endif - #include "libacpi.h" #define ACBASE "/proc/acpi/ac_adapter"