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

Hi,

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.

https://buildd.debian.org/status/package.php?p=uxlaunch

-----
  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
`/build/buildd-uxlaunch_0.59-1-mips-gyOudl/uxlaunch-0.59'
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

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   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
-#else
-#  error "Unsupported arch"
-#endif
+
 #define IOPRIO_WHO_PROCESS 1
 #define IOPRIO_CLASS_IDLE 3
 #define IOPRIO_CLASS_SHIFT 13

Reply via email to