gnu: skalibs: Build reproducibly.
* gnu/packages/skarnet.scm (skalibs)[arguments]: Add #:phases. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
		
							parent
							
								
									c15374e03d
								
							
						
					
					
						commit
						0e4d822e3f
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,6 +1,7 @@
 | 
				
			||||||
;;; GNU Guix --- Functional package management for GNU
 | 
					;;; GNU Guix --- Functional package management for GNU
 | 
				
			||||||
;;; Copyright © 2015 Claes Wallin <claes.wallin@greatsinodevelopment.com>
 | 
					;;; Copyright © 2015 Claes Wallin <claes.wallin@greatsinodevelopment.com>
 | 
				
			||||||
;;; Copyright © 2016 Eric Le Bihan <eric.le.bihan.dev@free.fr>
 | 
					;;; Copyright © 2016 Eric Le Bihan <eric.le.bihan.dev@free.fr>
 | 
				
			||||||
 | 
					;;; Copyright © 2017 Z. Ren <zren@dlut.edu.cn>
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
;;; This file is part of GNU Guix.
 | 
					;;; This file is part of GNU Guix.
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
| 
						 | 
					@ -39,7 +40,16 @@
 | 
				
			||||||
    (build-system gnu-build-system)
 | 
					    (build-system gnu-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     '(#:configure-flags '("--enable-force-devr") ; do not analyze /dev/random
 | 
					     '(#:configure-flags '("--enable-force-devr") ; do not analyze /dev/random
 | 
				
			||||||
       #:tests? #f)) ; no tests exist
 | 
					       #:tests? #f ; no tests exist
 | 
				
			||||||
 | 
					       #:phases (modify-phases %standard-phases
 | 
				
			||||||
 | 
					                  (add-after 'unpack 'reproducible
 | 
				
			||||||
 | 
					                    (lambda _
 | 
				
			||||||
 | 
					                      ;; Sort source files deterministically so that the *.a
 | 
				
			||||||
 | 
					                      ;; and *.so files are reproducible.
 | 
				
			||||||
 | 
					                      (substitute* "Makefile"
 | 
				
			||||||
 | 
					                        (("\\$\\(ALL_SRCS:%.c=%.o\\)")
 | 
				
			||||||
 | 
					                         "$(sort $(ALL_SRCS:%.c=%.o))"))
 | 
				
			||||||
 | 
					                      #t)))))
 | 
				
			||||||
    (home-page "http://skarnet.org/software/skalibs/")
 | 
					    (home-page "http://skarnet.org/software/skalibs/")
 | 
				
			||||||
    (synopsis "Platform abstraction libraries for skarnet.org software")
 | 
					    (synopsis "Platform abstraction libraries for skarnet.org software")
 | 
				
			||||||
    (description
 | 
					    (description
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue