gnu: m4: Fix cross-compilation.
* gnu/packages/m4.scm (m4)[arguments]: Look up /bin/sh in NATIVE-INPUTS if applicable.
This commit is contained in:
		
							parent
							
								
									03e13c8981
								
							
						
					
					
						commit
						1ae2a47a01
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -55,8 +55,9 @@
 | 
			
		|||
              (("4 5 6")
 | 
			
		||||
               "4 6"))))
 | 
			
		||||
        (add-after 'unpack 'configure-shell
 | 
			
		||||
          (lambda* (#:key inputs #:allow-other-keys)
 | 
			
		||||
            (let ((/bin/sh (search-input-file inputs "/bin/sh")))
 | 
			
		||||
          (lambda* (#:key native-inputs inputs #:allow-other-keys)
 | 
			
		||||
            (let ((/bin/sh (search-input-file (or native-inputs inputs)
 | 
			
		||||
                                              "/bin/sh")))
 | 
			
		||||
              ;; Adjust hard-coded /bin/sh for tests.
 | 
			
		||||
              (substitute* "lib/config.hin"
 | 
			
		||||
                (("\"/bin/sh\"")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue