me
/
guix
Archived
1
0
Fork 0

gnu: earlyoom: Update to 1.6.2.

* gnu/packages/linux.scm (earlyoom): Update to 1.6.2.
[arguments]: Remove obsolete 'install-contribs phase.
Add a new 'disable-failing-test phase.
master
Tobias Geerinckx-Rice 2020-11-24 00:07:58 +01:00
parent b629bfab19
commit c4d35da424
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 16 additions and 16 deletions

View File

@ -3198,7 +3198,7 @@ from the module-init-tools project.")
(define-public earlyoom (define-public earlyoom
(package (package
(name "earlyoom") (name "earlyoom")
(version "1.3.1") (version "1.6.2")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -3207,23 +3207,23 @@ from the module-init-tools project.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"06sd3jpkdrwqbphsf8jrgs5rxfi7j3xjmygjjvj4xjk4gncz7r2i")))) "16iyn51xlrsbshc7p5xl2338yyfzknaqc538sa7mamgccqwgyvvq"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases `(#:phases
(delete 'configure) (modify-phases %standard-phases
(add-before 'check 'set-home (delete 'configure) ; no configure script
(lambda _ (add-before 'check 'set-go-HOME
(setenv "HOME" (getcwd)) (lambda _
#t)) (setenv "HOME" (getcwd))
(add-after 'build 'install-contribs #t))
;; Install what seems useful from the contrib directory. (add-before 'check 'disable-failing-test
(lambda* (#:key outputs #:allow-other-keys) (lambda _
(let* ((out (assoc-ref outputs "out")) ;; This test relies on writing to /proc/%d/oom_score_adj.
(contrib (string-append (substitute* "testsuite_cli_test.go"
out "/share/earlyoom/contrib"))) (("TestI" match)
(install-file "contrib/notify_all_users.py" contrib) (string-append "skipped" match)))
#t)))) #t)))
#:make-flags (let* ((prefix (assoc-ref %outputs "out"))) #:make-flags (let* ((prefix (assoc-ref %outputs "out")))
(list ,(string-append "CC=" (cc-for-target)) (list ,(string-append "CC=" (cc-for-target))
(string-append "VERSION=v" ,version) (string-append "VERSION=v" ,version)