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:
Efraim Flashner 2022-05-17 10:59:36 +03:00
parent eab070a89d
commit 2d229578bd
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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`