mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 07:12:30 -05:00
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.
This commit is contained in:
parent
b629bfab19
commit
c4d35da424
1 changed files with 16 additions and 16 deletions
|
@ -3198,7 +3198,7 @@ (define-public kmod
|
|||
(define-public earlyoom
|
||||
(package
|
||||
(name "earlyoom")
|
||||
(version "1.3.1")
|
||||
(version "1.6.2")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
|
@ -3207,23 +3207,23 @@ (define-public earlyoom
|
|||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"06sd3jpkdrwqbphsf8jrgs5rxfi7j3xjmygjjvj4xjk4gncz7r2i"))))
|
||||
"16iyn51xlrsbshc7p5xl2338yyfzknaqc538sa7mamgccqwgyvvq"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases (modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(add-before 'check 'set-home
|
||||
(lambda _
|
||||
(setenv "HOME" (getcwd))
|
||||
#t))
|
||||
(add-after 'build 'install-contribs
|
||||
;; Install what seems useful from the contrib directory.
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(contrib (string-append
|
||||
out "/share/earlyoom/contrib")))
|
||||
(install-file "contrib/notify_all_users.py" contrib)
|
||||
#t))))
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'configure) ; no configure script
|
||||
(add-before 'check 'set-go-HOME
|
||||
(lambda _
|
||||
(setenv "HOME" (getcwd))
|
||||
#t))
|
||||
(add-before 'check 'disable-failing-test
|
||||
(lambda _
|
||||
;; This test relies on writing to /proc/%d/oom_score_adj.
|
||||
(substitute* "testsuite_cli_test.go"
|
||||
(("TestI" match)
|
||||
(string-append "skipped" match)))
|
||||
#t)))
|
||||
#:make-flags (let* ((prefix (assoc-ref %outputs "out")))
|
||||
(list ,(string-append "CC=" (cc-for-target))
|
||||
(string-append "VERSION=v" ,version)
|
||||
|
|
Loading…
Reference in a new issue