diff --git a/srcpkgs/minijail/patches/ppc.patch b/srcpkgs/minijail/patches/ppc.patch index 720185589e5..099ac6796d4 100644 --- a/srcpkgs/minijail/patches/ppc.patch +++ b/srcpkgs/minijail/patches/ppc.patch @@ -5,8 +5,8 @@ others are already undef'd for other platforms above that. --- a/gen_constants-inl.h +++ b/gen_constants-inl.h -@@ -24,3 +24,8 @@ - // build errors on such broken systems. +@@ -35,6 +35,11 @@ + */ #undef BLKTRACESETUP #undef FS_IOC_FIEMAP +#undef ELF_ARCH @@ -14,3 +14,6 @@ others are already undef'd for other platforms above that. +#undef ELF_DATA +#undef ELF_GREG_TYPE +#undef FIOQSIZE + + /* The old glibc bundled with the Android host toolchain is missing some ioctl + * definitions used by minijail policy in crosvm and other projects. Locally diff --git a/srcpkgs/minijail/template b/srcpkgs/minijail/template index 794f143cd31..66472bd4e3c 100644 --- a/srcpkgs/minijail/template +++ b/srcpkgs/minijail/template @@ -1,20 +1,27 @@ # Template file for 'minijail' pkgname=minijail -version=16 +version=2024.05.22 revision=1 build_style=gnu-makefile makedepends="libcap-devel" +checkdepends="wget tar gzip" short_desc="Sandboxing and containment tool used in Chrome OS and Android" maintainer="Cameron Nemo " license="BSD-3-Clause" homepage="https://android.googlesource.com/platform/external/minijail" distfiles="https://github.com/google/minijail/archive/linux-v${version}.tar.gz" -checksum=1efb6224465cf8a5bb7a69659b35482e69786fce572f29125201e9a0e793bdd6 +checksum=3136365ca3762da3e725f734fbdc544d8c82d6a763f803b2850ed3c993c216f0 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then broken="bpf.h:110:2: error: #error Unsupported endianness" fi +do_check() { + chmod +x ./get_googletest.sh + ./get_googletest.sh + make test +} + do_install() { vbin minijail0 vmkdir usr/lib