minijail: fix build on ppc64le*

Big endian is not supported.
This commit is contained in:
q66 2019-08-21 23:56:15 +02:00 committed by Helmut Pozimski
parent 29fd2087c7
commit 2a480438d5
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,16 @@
These are defined on ppc* in included headers but their values refer to things
that are in headers which are not included. Additionally, ELF_GREG_TYPE refers
to a typedef, which is not a constant value. So undef them, just like some
others are already undef'd for other platforms above that.
--- gen_constants-inl.h
+++ gen_constants-inl.h
@@ -24,3 +24,8 @@
// build errors on such broken systems.
#undef BLKTRACESETUP
#undef FS_IOC_FIEMAP
+#undef ELF_ARCH
+#undef ELF_CLASS
+#undef ELF_DATA
+#undef ELF_GREG_TYPE
+#undef FIOQSIZE

View file

@ -12,6 +12,10 @@ homepage="https://android.googlesource.com/platform/external/minijail"
distfiles="https://gitlab.com/chinstrap/minijail/-/archive/linux-v${version}/minijail-linux-v${version}.tar.gz"
checksum=29334d1bcd16c1ea09e49cef3b47a000e98be7ffe7fa9a28c8cab81643033612
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
broken="bpf.h:110:2: error: #error Unsupported endianness"
fi
do_install() {
vbin minijail0
vmkdir usr/lib