gnu: syslinux: Honor #:tests? flag.
* gnu/packages/bootloaders.scm (syslinux)[arguments]: Adjust custom 'check phase to honor the #:tests? flag.
This commit is contained in:
		
							parent
							
								
									91bcc26b1c
								
							
						
					
					
						commit
						10a661c8c8
					
				
					 1 changed files with 7 additions and 6 deletions
				
			
		| 
						 | 
					@ -537,12 +537,13 @@ The SUBDIR argument defaults to \"efi/Guix\", as it is also the case for
 | 
				
			||||||
             (lambda _
 | 
					             (lambda _
 | 
				
			||||||
               (invoke "chmod" "a+w" "utils/isohybrid.in")))
 | 
					               (invoke "chmod" "a+w" "utils/isohybrid.in")))
 | 
				
			||||||
           (replace 'check
 | 
					           (replace 'check
 | 
				
			||||||
             (lambda _
 | 
					             (lambda* (#:key tests? #:allow-other-keys)
 | 
				
			||||||
               (setenv "CC" "gcc")
 | 
					               (when tests?
 | 
				
			||||||
               (substitute* "tests/unittest/include/unittest/unittest.h"
 | 
					                 (setenv "CC" "gcc")
 | 
				
			||||||
                 ;; Don't look up headers under /usr.
 | 
					                 (substitute* "tests/unittest/include/unittest/unittest.h"
 | 
				
			||||||
                 (("/usr/include/") ""))
 | 
					                   ;; Don't look up headers under /usr.
 | 
				
			||||||
               (invoke "make" "unittest"))))))
 | 
					                   (("/usr/include/") ""))
 | 
				
			||||||
 | 
					                 (invoke "make" "unittest")))))))
 | 
				
			||||||
      (home-page "https://www.syslinux.org")
 | 
					      (home-page "https://www.syslinux.org")
 | 
				
			||||||
      (synopsis "Lightweight Linux bootloader")
 | 
					      (synopsis "Lightweight Linux bootloader")
 | 
				
			||||||
      (description "Syslinux is a lightweight Linux bootloader.")
 | 
					      (description "Syslinux is a lightweight Linux bootloader.")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue