ujail can be selected on e.g. PowerPC platforms, which
currently causes the procd build to fail:
./trace/trace.c:48:2: error: #error tracing is not supported on this
architecture
#error tracing is not supported on this architecture
^
./trace/trace.c: In function 'tracer_cb':
./trace/trace.c:128:50: error: 'reg_syscall_nr' undeclared (first use in this
function)
int syscall = ptrace(PTRACE_PEEKUSER, c->pid, reg_syscall_nr);
^
This patch restricts ujail to those platforms supported.
Signed-off-by: Zefir Kurtisi <[email protected]>
---
package/system/procd/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile
index 294985c..acd1714 100644
--- a/package/system/procd/Makefile
+++ b/package/system/procd/Makefile
@@ -49,7 +49,8 @@ endef
define Package/procd-ujail
SECTION:=base
CATEGORY:=Base system
- DEPENDS:=@KERNEL_NAMESPACES +@KERNEL_UTS_NS +@KERNEL_IPC_NS +@KERNEL_PID_NS
+libubox +libblobmsg-json
+ DEPENDS:=@KERNEL_NAMESPACES +@KERNEL_UTS_NS +@KERNEL_IPC_NS +@KERNEL_PID_NS
+libubox +libblobmsg-json \
+ @arm||@armeb||@mips||@mipsel||@i386||@x86_64
TITLE:=OpenWrt process jail helper
endef
--
2.7.4
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel