From 7e5124976b0bc19cf26ef7376ea041b25b7fbd35 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 14 Jul 2015 14:00:46 +0200 Subject: gnu: util-linux: Fix file name of 'umount' in 'eject'. Fixes . Reported by Alex Sassmannshausen . * gnu/packages/linux.scm (util-linux)[arguments]: Add 'set-umount-file-name'. --- gnu/packages/linux.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gnu/packages/linux.scm') diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index f27b8281ab..c5d055366e 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -418,6 +418,15 @@ providing the system administrator with some help in common tasks.") (assoc-ref %outputs "out") "/etc/bash_completion.d")) #:phases (modify-phases %standard-phases + (add-before + 'build 'set-umount-file-name + (lambda* (#:key outputs #:allow-other-keys) + ;; Tell 'eject' the right file name of 'umount'. + (let ((out (assoc-ref outputs "out"))) + (substitute* "sys-utils/eject.c" + (("\"/bin/umount\"") + (string-append "\"" out "/bin/umount\""))) + #t))) (add-before 'check 'pre-check (lambda* (#:key inputs outputs #:allow-other-keys) -- cgit v1.2.3