Package Details: minijail 55.8872-1

Git Clone URL: https://aur.archlinux.org/minijail.git (read-only)
Package Base: minijail
Description: Tool to run a process in jailed environment
Upstream URL: https://chromium.googlesource.com/aosp/platform/external/minijail
Licenses: custom:chromiumos
Submitter: anatolik
Maintainer: anatolik
Last Packager: anatolik
Votes: 0
Popularity: 0.000000
First Submitted: 2014-10-02 18:06
Last Updated: 2018-05-17 19:21

Latest Comments

gdamjan commented on 2018-05-16 13:57

How about updating this to R55.8872 ?

The repo is changed to https://chromium.googlesource.com/aosp/platform/external/minijail

here's a diff of the PKGBUILD:

diff --git a/PKGBUILD.old b/PKGBUILD
index 1a45033..f6f1775 100644
--- a/PKGBUILD.old
+++ b/PKGBUILD
@@ -2,39 +2,37 @@

 pkgname=minijail
 pkgdesc='Tool to run a process in jailed environment'
-pkgver=R41.6680
+pkgver=R55.8872
 _tag=release-${pkgver/\./-}.B
 pkgrel=1
 arch=(i686 x86_64)
-url='https://chromium.googlesource.com/chromiumos/platform/minijail'
+url='https://chromium.googlesource.com/aosp/platform/external/minijail'
 license=('custom:chromiumos')
 depends=(libcap)
-source=(https://chromium.googlesource.com/chromiumos/platform2/+archive/refs/heads/$_tag.tar.gz)
-sha1sums=('SKIP')
-
-prepare() {
-  cd minijail
-  sed 's/-Werror//' -i common.mk
-}
+source=("https://chromium.googlesource.com/aosp/platform/external/minijail/+archive/refs/heads/${_tag}.tar.gz"
+    "signal_handler.patch")

 build() {
-  cd minijail
+  cd ${srcdir}
+  patch -p1 < signal_handler.patch
   CC=gcc make
 }

 check() {
-  cd minijail
+  cd ${srcdir}
   CC=gcc make tests
   for t in `ls *_unittest`; do ./$t; done
 }

 package() {
-  cd minijail
+  cd ${srcdir}
   install -m755 -D minijail0 "$pkgdir"/usr/bin/minijail0
   install -m755 -D libminijail.so "$pkgdir"/usr/lib/libminijail.so
   install -m755 -D libminijailpreload.so "$pkgdir"/usr/lib/libminijailpreload.so
   install -m644 -D libminijail.h "$pkgdir"/usr/include/libminijail.h
   install -m644 -D minijail0.1 "$pkgdir"/usr/share/man/man1/minijail0.1
   install -m644 -D minijail0.5 "$pkgdir"/usr/share/man/man5/minijail0.5
-  install -m644 -D ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
+
+sha256sums=('e274814aa0a2b48ad1a5a36d65936846ccbd61122b0d7b15001856290c12a0d1'
+            '551be8c810a93273ad47797e74cfe96d6e2338901547d93a14f42e3d238749b1')

and the patch about redefined symbols:

diff --git a/signal_handler.c b/signal_handler.new.c
index 5a5ae9c..083d8df 100644
--- a/signal_handler.c
+++ b/signal_handler.new.c
@@ -8,11 +8,6 @@
 #include <stdlib.h>
 #include <unistd.h>

-#include <asm/siginfo.h>
-#define __have_siginfo_t 1
-#define __have_sigval_t 1
-#define __have_sigevent_t 1
-
 #include <signal.h>
 #include <string.h>