me
/
guix
Archived
1
0
Fork 0

gnu: proot: Update to 5.3.0.

* gnu/packages/linux.scm (proot): Update to 5.3.0.
[arguments]: Adjust custom 'patch-sources phase to adjust skipped tests.
master
Efraim Flashner 2022-03-08 11:58:41 +02:00
parent 7311a36a54
commit 8750533102
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 106 additions and 132 deletions

View File

@ -7245,26 +7245,20 @@ userspace queueing component and the logging subsystem.")
(license license:gpl2)))
(define-public proot
(let ((revision "0")
(commit "a70023ab3db47d011265451b99a1abef7b9d7afc"))
(package
(name "proot")
;; The last stable release was made in 2015, and fails to build for the
;; aarch64 platform. Use the latest commit, which includes fixes for
;; the supported ARM architectures and the test suite, among others.
(version (git-version "5.2.0-alpha" revision commit))
(version "5.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/proot-me/PRoot")
(commit (string-append commit))))
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1kmry3rb967phxnxjfnx310gy1d4gpmjd6fp3hbm9v9jciysxy4z"))))
(base32 "1r1ga3xbwq5kx4i8ihj1p6nmgaa14lfkwxzpsbdcmfh1jimpbmzk"))))
(build-system gnu-build-system)
;; The powerpc64le-linux and mips64el-linux architectures are not
;; supported (see:
;; Many architectures are not supported (see:
;; https://github.com/proot-me/proot/blob/master/src/arch.h#L51).
(supported-systems '("x86_64-linux" "i686-linux"
"armhf-linux" "aarch64-linux" "i586-gnu"))
@ -7307,8 +7301,6 @@ userspace queueing component and the logging subsystem.")
(substitute* "test/test-16573e73.c"
(("/bin/([a-z-]+)" _ program)
(which program)))
(substitute* "test/test-d2175fc3.sh"
(("\\^/bin/true\\$") "$(which true)"))
(substitute* "test/test-5467b986.sh"
(("-w /usr") "-w /gnu")
(("-w usr") "-w gnu")
@ -7318,24 +7310,6 @@ userspace queueing component and the logging subsystem.")
(("-q echo ")
"-q $(which echo) "))
;; The following tests are known to fail (see:
;; https://github.com/proot-me/proot/issues/184).
(delete-file "test/test-0228fbe7.sh")
(delete-file "test/test-2db65cd2.sh")
(delete-file "test/test-cdd39012.sh")
(delete-file "test/test-d92b57ca.sh")
;; This one fails on a waitpid call that returns 1 (see:
;; https://github.com/proot-me/proot/issues/261).
(delete-file "test/test-ptrace01.c")
;; XXX: This test fails in an obscure corner case, just
;; skip it.
(delete-file "test/test-kkkkkkkk.c")
;; This one requires Docker.
(delete-file "test/test-docker.sh")
;; The socket tests requires networking.
(for-each delete-file
(find-files "test" "test-socket.*\\.sh$"))))
@ -7387,7 +7361,7 @@ transparently through QEMU user-mode. Also, developers can use PRoot as a
generic process instrumentation engine thanks to its extension mechanism.
Technically PRoot relies on @code{ptrace}, an unprivileged system-call
available in the kernel Linux.")
(license license:gpl2+))))
(license license:gpl2+)))
(define-public proot-static
(package