mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: atop: Adjust build.
* gnu/packages/admin.scm (atop)[arguments]: Adjust custom 'patch-build phase to remove references to '/usr' and adjust make-flags accordingly. Remove trailing #t.
This commit is contained in:
parent
eab070a89d
commit
2d229578bd
1 changed files with 3 additions and 7 deletions
|
@ -4707,13 +4707,8 @@ (define-public atop
|
|||
#:make-flags
|
||||
(list (string-append "CC=" ,(cc-for-target))
|
||||
(string-append "DESTDIR=" (assoc-ref %outputs "out"))
|
||||
(string-append "BINPATH=/bin")
|
||||
(string-append "SBINPATH=/sbin")
|
||||
(string-append "SYSDPATH=/etc/systemd/system")
|
||||
(string-append "PMPATHD=/etc/systemd/system-sleep")
|
||||
(string-append "MAN1PATH=/share/man/man1")
|
||||
(string-append "MAN5PATH=/share/man/man5")
|
||||
(string-append "MAN8PATH=/share/man/man8")
|
||||
;; Or else it tries to create /var/log/atop...
|
||||
(string-append "LOGPATH="))
|
||||
#:phases
|
||||
|
@ -4722,10 +4717,11 @@ (define-public atop
|
|||
(add-before 'build 'patch-build
|
||||
(lambda _
|
||||
(substitute* "Makefile"
|
||||
;; Don't use /usr as a prefix
|
||||
(("/usr") "")
|
||||
;; Otherwise, it creates a blank configuration file as a "default".
|
||||
(("touch.*DEFPATH)/atop") "")
|
||||
(("chmod.*DEFPATH)/atop") ""))
|
||||
#t)))))
|
||||
(("chmod.*DEFPATH)/atop") "")))))))
|
||||
(inputs
|
||||
`(("ncurses" ,ncurses)
|
||||
("python" ,python-wrapper) ; for `atopgpud`
|
||||
|
|
Loading…
Reference in a new issue