gnu: grub: Use modify-phases and other minor cleanups.
* gnu/packages/grub.scm (grub)[arguments]: Use modify-phases. Return #t from 'patch-stuff' phase. Add 'patch-stuff' phase after 'unpack' instead of before 'patch-source-shebangs'. [inputs]: Add comment noting that 'fuse' would be a desirable input.
This commit is contained in:
		
							parent
							
								
									0431ed00e4
								
							
						
					
					
						commit
						04e0eac1ed
					
				
					 1 changed files with 16 additions and 12 deletions
				
			
		| 
						 | 
					@ -1,5 +1,6 @@
 | 
				
			||||||
;;; GNU Guix --- Functional package management for GNU
 | 
					;;; GNU Guix --- Functional package management for GNU
 | 
				
			||||||
;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
 | 
					;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
 | 
				
			||||||
 | 
					;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
;;; This file is part of GNU Guix.
 | 
					;;; This file is part of GNU Guix.
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
| 
						 | 
					@ -84,8 +85,9 @@
 | 
				
			||||||
    (build-system gnu-build-system)
 | 
					    (build-system gnu-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     '(#:configure-flags '("--disable-werror")
 | 
					     '(#:configure-flags '("--disable-werror")
 | 
				
			||||||
       #:phases (alist-cons-before
 | 
					       #:phases (modify-phases %standard-phases
 | 
				
			||||||
                 'patch-source-shebangs 'patch-stuff
 | 
					                  (add-after
 | 
				
			||||||
 | 
					                   'unpack 'patch-stuff
 | 
				
			||||||
                   (lambda* (#:key inputs #:allow-other-keys)
 | 
					                   (lambda* (#:key inputs #:allow-other-keys)
 | 
				
			||||||
                     (substitute* "grub-core/Makefile.in"
 | 
					                     (substitute* "grub-core/Makefile.in"
 | 
				
			||||||
                       (("/bin/sh") (which "sh")))
 | 
					                       (("/bin/sh") (which "sh")))
 | 
				
			||||||
| 
						 | 
					@ -96,13 +98,15 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                     ;; TODO: Re-enable this test when we have Parted.
 | 
					                     ;; TODO: Re-enable this test when we have Parted.
 | 
				
			||||||
                     (substitute* "tests/partmap_test.in"
 | 
					                     (substitute* "tests/partmap_test.in"
 | 
				
			||||||
                     (("set -e") "exit 77")))
 | 
					                       (("set -e") "exit 77"))
 | 
				
			||||||
                 %standard-phases)))
 | 
					
 | 
				
			||||||
 | 
					                     #t)))))
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
     `(;; ("lvm2" ,lvm2)
 | 
					     `(;; ("lvm2" ,lvm2)
 | 
				
			||||||
       ("gettext" ,gnu-gettext)
 | 
					       ("gettext" ,gnu-gettext)
 | 
				
			||||||
       ("freetype" ,freetype)
 | 
					       ("freetype" ,freetype)
 | 
				
			||||||
       ;; ("libusb" ,libusb)
 | 
					       ;; ("libusb" ,libusb)
 | 
				
			||||||
 | 
					       ;; ("fuse" ,fuse)
 | 
				
			||||||
       ("ncurses" ,ncurses)))
 | 
					       ("ncurses" ,ncurses)))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     `(("unifont" ,unifont)
 | 
					     `(("unifont" ,unifont)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue