gnu: make-bootstrap: Inherit tar arguments in %static-inputs.
* gnu/packages/make-bootstrap.scm (%static-inputs)[tar]: Use SUBSTITUTE-KEYWORD-ARGUMENTS so #:make-flags are inherited.
This commit is contained in:
		
							parent
							
								
									44e3e431cd
								
							
						
					
					
						commit
						3359a70834
					
				
					 1 changed files with 11 additions and 9 deletions
				
			
		| 
						 | 
					@ -190,15 +190,17 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
 | 
				
			||||||
                            '()))))
 | 
					                            '()))))
 | 
				
			||||||
	(tar (package (inherit tar)
 | 
						(tar (package (inherit tar)
 | 
				
			||||||
	       (arguments
 | 
						       (arguments
 | 
				
			||||||
		'(#:phases (modify-phases %standard-phases
 | 
					                (substitute-keyword-arguments (package-arguments tar)
 | 
				
			||||||
			     (add-before 'build 'set-shell-file-name
 | 
					                  ((#:phases phases)
 | 
				
			||||||
			       (lambda _
 | 
					                   `(modify-phases ,phases
 | 
				
			||||||
				 ;; Do not use "/bin/sh" to run programs; see
 | 
					                      (replace 'set-shell-file-name
 | 
				
			||||||
                                 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-09/msg02272.html>.
 | 
					                        (lambda _
 | 
				
			||||||
				 (substitute* "src/system.c"
 | 
					                          ;; Do not use "/bin/sh" to run programs; see
 | 
				
			||||||
				   (("/bin/sh") "sh")
 | 
					                          ;; <http://lists.gnu.org/archive/html/guix-devel/2016-09/msg02272.html>.
 | 
				
			||||||
				   (("execv ") "execvp "))
 | 
					                          (substitute* "src/system.c"
 | 
				
			||||||
				 #t)))))))
 | 
					                            (("/bin/sh") "sh")
 | 
				
			||||||
 | 
					                            (("execv ") "execvp "))
 | 
				
			||||||
 | 
					                          #t))))))))
 | 
				
			||||||
        ;; We don't want to retain a reference to /gnu/store in the bootstrap
 | 
					        ;; We don't want to retain a reference to /gnu/store in the bootstrap
 | 
				
			||||||
        ;; versions of egrep/fgrep, so we remove the custom phase added since
 | 
					        ;; versions of egrep/fgrep, so we remove the custom phase added since
 | 
				
			||||||
        ;; grep@2.25. The effect is 'egrep' and 'fgrep' look for 'grep' in
 | 
					        ;; grep@2.25. The effect is 'egrep' and 'fgrep' look for 'grep' in
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue