gnu: patch: Work around a cross-compilation issue.
Reported by Marius Bakke <mbakke@fastmail.com> at <https://lists.gnu.org/archive/html/guix-devel/2018-04/msg00157.html>. * gnu/packages/base.scm (patch)[arguments]: New field.
This commit is contained in:
		
							parent
							
								
									921f8e63dd
								
							
						
					
					
						commit
						d3878d3d51
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -231,6 +231,12 @@ standard utility.")
 | 
				
			||||||
                "1zfqy4rdcy279vwn2z1kbv19dcfw25d2aqy9nzvdkq5bjzd0nqdc"))
 | 
					                "1zfqy4rdcy279vwn2z1kbv19dcfw25d2aqy9nzvdkq5bjzd0nqdc"))
 | 
				
			||||||
              (patches (search-patches "patch-hurd-path-max.patch"))))
 | 
					              (patches (search-patches "patch-hurd-path-max.patch"))))
 | 
				
			||||||
   (build-system gnu-build-system)
 | 
					   (build-system gnu-build-system)
 | 
				
			||||||
 | 
					   (arguments
 | 
				
			||||||
 | 
					    ;; Work around a cross-compilation bug whereby libpatch.a would provide
 | 
				
			||||||
 | 
					    ;; '__mktime_internal', which conflicts with the one in libc.a.
 | 
				
			||||||
 | 
					    (if (%current-target-system)
 | 
				
			||||||
 | 
					        `(#:configure-flags '("gl_cv_func_working_mktime=yes"))
 | 
				
			||||||
 | 
					        '()))
 | 
				
			||||||
   (native-inputs `(("ed" ,ed)))
 | 
					   (native-inputs `(("ed" ,ed)))
 | 
				
			||||||
   (synopsis "Apply differences to originals, with optional backups")
 | 
					   (synopsis "Apply differences to originals, with optional backups")
 | 
				
			||||||
   (description
 | 
					   (description
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue