mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
minijail: fix build on ppc64le*
Big endian is not supported.
This commit is contained in:
parent
29fd2087c7
commit
2a480438d5
2 changed files with 20 additions and 0 deletions
16
srcpkgs/minijail/patches/ppc.patch
Normal file
16
srcpkgs/minijail/patches/ppc.patch
Normal 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
|
|
@ -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"
|
distfiles="https://gitlab.com/chinstrap/minijail/-/archive/linux-v${version}/minijail-linux-v${version}.tar.gz"
|
||||||
checksum=29334d1bcd16c1ea09e49cef3b47a000e98be7ffe7fa9a28c8cab81643033612
|
checksum=29334d1bcd16c1ea09e49cef3b47a000e98be7ffe7fa9a28c8cab81643033612
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
||||||
|
broken="bpf.h:110:2: error: #error Unsupported endianness"
|
||||||
|
fi
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin minijail0
|
vbin minijail0
|
||||||
vmkdir usr/lib
|
vmkdir usr/lib
|
||||||
|
|
Loading…
Add table
Reference in a new issue