Source: uxlaunch
Version: 0.59-1
Severity: serious
Tags: patch


uxlaunch FTBFS on some architecturte.
The architecture that does not declare __NR_ioprio_set in uxlaunch
seems to become FTBFS.
__NR_ioprio_set was supported.

  CC  consolekit.c
consolekit.c:1: warning: -fstack-protector not supported for this target
  CC  dbus.c
dbus.c:1: warning: -fstack-protector not supported for this target
  CC  desktop.c
desktop.c:1: warning: -fstack-protector not supported for this target
desktop.c:40:4: error: #error "Unsupported arch"
desktop.c: In function 'do_autostart':
desktop.c:468: error: '__NR_ioprio_set' undeclared (first use in this function)
desktop.c:468: error: (Each undeclared identifier is reported only once
desktop.c:468: error: for each function it appears in.)
make[1]: *** [desktop.o] Error 1
make[1]: Leaving directory
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2

This can use  by include asm/unistd.h in the architecture supporting linux

I made patch to support this . Could you apply this patch?

Best regards,

Nobuhiro Iwamatsu
   iwamatsu at { /}
   GPG ID: 40AD1FA6
diff --git a/desktop.c b/desktop.c
index 61f1118..e481bad 100644
--- a/desktop.c
+++ b/desktop.c
@@ -27,18 +27,9 @@
 #include <pwd.h>
 #include <wordexp.h>
+#include <asm/unistd.h>
 #include "uxlaunch.h"
-#if defined(__i386__)
-#  define __NR_ioprio_set 289
-#elif defined(__x86_64__)
-#  define __NR_ioprio_set 251
-#elif defined(__arm__)
-#  define __NR_ioprio_set 314
-#elif defined (__powerpc__)
-#  define __NR_ioprio_set 273
-#  error "Unsupported arch"
Pkg-meego-maintainers mailing list

Reply via email to