gnu: syslinux: Add explicit dependency on mtools.
Suggested by Adam Van Ymeren <adam@vany.ca> at <https://bugs.gnu.org/28974>. * gnu/packages/bootloaders.scm (syslinux)[inputs]: Add MTOOLS. [ARGUMENTS]: In 'patch-files' phase, patch references to 'mcopy' and 'mattrib'.
This commit is contained in:
parent
afc4382316
commit
0b4dbb401c
|
@ -237,7 +237,8 @@ menu to select one of the installed operating systems.")
|
|||
("perl" ,perl)
|
||||
("python-2" ,python-2)))
|
||||
(inputs
|
||||
`(("libuuid" ,util-linux)))
|
||||
`(("libuuid" ,util-linux)
|
||||
("mtools" ,mtools)))
|
||||
(arguments
|
||||
`(#:parallel-build? #f
|
||||
#:make-flags
|
||||
|
@ -252,11 +253,17 @@ menu to select one of the installed operating systems.")
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-files
|
||||
(lambda _
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* (find-files "." "Makefile.*|ppmtolss16")
|
||||
(("/bin/pwd") (which "pwd"))
|
||||
(("/bin/echo") (which "echo"))
|
||||
(("/usr/bin/perl") (which "perl")))
|
||||
(let ((mtools (assoc-ref inputs "mtools")))
|
||||
(substitute* (find-files "." "\\.c$")
|
||||
(("mcopy")
|
||||
(string-append mtools "/bin/mcopy"))
|
||||
(("mattrib")
|
||||
(string-append mtools "/bin/mattrib"))))
|
||||
#t))
|
||||
(delete 'configure)
|
||||
(add-before 'build 'set-permissions
|
||||
|
|
Loading…
Reference in New Issue