gnu: btrfs-progs: Install udev-rules.
* gnu/packages/linux.scm (btrfs-progs)[arguments]: Add phase patch-makefile. [native-inputs]: Add lvm2, eudev. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
		
							parent
							
								
									8cd2a395c7
								
							
						
					
					
						commit
						0c26e43eca
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		| 
						 | 
					@ -4037,6 +4037,13 @@ and copy/paste text in the console and in xterm.")
 | 
				
			||||||
               "static"))      ; static versions of the binaries in "out"
 | 
					               "static"))      ; static versions of the binaries in "out"
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     '(#:phases (modify-phases %standard-phases
 | 
					     '(#:phases (modify-phases %standard-phases
 | 
				
			||||||
 | 
					                  (add-after 'unpack 'patch-makefile
 | 
				
			||||||
 | 
					                    (lambda* (#:key outputs #:allow-other-keys)
 | 
				
			||||||
 | 
					                      (substitute* "Makefile"
 | 
				
			||||||
 | 
					                        (("\\$\\(DESTDIR\\)\\$\\(udevruledir\\)")
 | 
				
			||||||
 | 
					                         (string-append (assoc-ref outputs "out")
 | 
				
			||||||
 | 
					                                        "/lib/udev/rules.d")))
 | 
				
			||||||
 | 
					                      #t))
 | 
				
			||||||
                 (add-after 'build 'build-static
 | 
					                 (add-after 'build 'build-static
 | 
				
			||||||
                   (lambda _ (invoke "make" "static")))
 | 
					                   (lambda _ (invoke "make" "static")))
 | 
				
			||||||
                 (add-after 'install 'install-bash-completion
 | 
					                 (add-after 'install 'install-bash-completion
 | 
				
			||||||
| 
						 | 
					@ -4057,7 +4064,7 @@ and copy/paste text in the console and in xterm.")
 | 
				
			||||||
       #:tests? #f            ; XXX: require the 'btrfs' kernel module.
 | 
					       #:tests? #f            ; XXX: require the 'btrfs' kernel module.
 | 
				
			||||||
       #:test-target "test"
 | 
					       #:test-target "test"
 | 
				
			||||||
       #:parallel-tests? #f)) ; tests fail when run in parallel
 | 
					       #:parallel-tests? #f)) ; tests fail when run in parallel
 | 
				
			||||||
    (inputs `(("e2fsprogs" ,e2fsprogs)
 | 
					    (inputs `(("e2fsprogs" ,e2fsprogs)  ; for btrfs-convert
 | 
				
			||||||
              ("libblkid" ,util-linux)
 | 
					              ("libblkid" ,util-linux)
 | 
				
			||||||
              ("libblkid:static" ,util-linux "static")
 | 
					              ("libblkid:static" ,util-linux "static")
 | 
				
			||||||
              ("libuuid" ,util-linux)
 | 
					              ("libuuid" ,util-linux)
 | 
				
			||||||
| 
						 | 
					@ -4077,6 +4084,8 @@ and copy/paste text in the console and in xterm.")
 | 
				
			||||||
                     ;; For tests.
 | 
					                     ;; For tests.
 | 
				
			||||||
                     ("acl" ,acl)
 | 
					                     ("acl" ,acl)
 | 
				
			||||||
                     ("which" ,which)
 | 
					                     ("which" ,which)
 | 
				
			||||||
 | 
					                     ("dmsetup" ,lvm2)
 | 
				
			||||||
 | 
					                     ("udevadm" ,eudev)
 | 
				
			||||||
                     ;; The tests need 'grep' with perl regexp support.
 | 
					                     ;; The tests need 'grep' with perl regexp support.
 | 
				
			||||||
                     ("grep" ,grep)))
 | 
					                     ("grep" ,grep)))
 | 
				
			||||||
    (home-page "https://btrfs.wiki.kernel.org/index.php/Main_Page")
 | 
					    (home-page "https://btrfs.wiki.kernel.org/index.php/Main_Page")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue