gnu: acpi-call-linux-module: Remove reference to bash.
* gnu/packages/linux.scm (acpi-call-linux-module)[arguments]: Add a ‘patch-shebangs-harder’ phase.
This commit is contained in:
		
							parent
							
								
									6aa8f213c4
								
							
						
					
					
						commit
						6f78fe353e
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -1059,6 +1059,14 @@ It has been modified to remove all non-free binary blobs.")
 | 
				
			||||||
     `(#:tests? #f                      ; no tests
 | 
					     `(#:tests? #f                      ; no tests
 | 
				
			||||||
       #:phases
 | 
					       #:phases
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
 | 
					         (add-before 'install 'patch-shebangs-harder
 | 
				
			||||||
 | 
					           ;; The (only) shebangs in examples/ don't justify a reference.
 | 
				
			||||||
 | 
					           ;; However, do substitute a more portable one than the original.
 | 
				
			||||||
 | 
					           (lambda _
 | 
				
			||||||
 | 
					             (substitute* (find-files "examples" ".")
 | 
				
			||||||
 | 
					               (("^(#! *)/[^ ]*/" _ shebang)
 | 
				
			||||||
 | 
					                (string-append shebang "/usr/bin/env ")))
 | 
				
			||||||
 | 
					             #t))
 | 
				
			||||||
         (add-after 'install 'install-documentation
 | 
					         (add-after 'install 'install-documentation
 | 
				
			||||||
           (lambda* (#:key outputs #:allow-other-keys)
 | 
					           (lambda* (#:key outputs #:allow-other-keys)
 | 
				
			||||||
             (let* ((out (assoc-ref outputs "out"))
 | 
					             (let* ((out (assoc-ref outputs "out"))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue