gnu: samba: Make the python-cryptography input conditional.
* gnu/packages/samba.scm (samba/pinned) [arguments]: Conditionally enable self tests in configure phase. [native-inputs]: Conditionally add python-cryptography. Reported-by: John Kehayias <john.kehayias@protonmail.com>
This commit is contained in:
		
							parent
							
								
									ed854ad8e6
								
							
						
					
					
						commit
						2d33e6d6e8
					
				
					 1 changed files with 27 additions and 15 deletions
				
			
		| 
						 | 
					@ -9,7 +9,7 @@
 | 
				
			||||||
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
 | 
					;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
 | 
				
			||||||
;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
 | 
					;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
 | 
				
			||||||
;;; Copyright © 2020 Pierre Langlois <pierre.langlois@gmx.com>
 | 
					;;; Copyright © 2020 Pierre Langlois <pierre.langlois@gmx.com>
 | 
				
			||||||
;;; Copyright © 2020, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 | 
					;;; Copyright © 2020, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 | 
				
			||||||
;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
 | 
					;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
 | 
				
			||||||
;;; Copyright © 2022 Guillaume Le Vaillant <glv@posteo.net>
 | 
					;;; Copyright © 2022 Guillaume Le Vaillant <glv@posteo.net>
 | 
				
			||||||
;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
 | 
					;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
 | 
				
			||||||
| 
						 | 
					@ -210,7 +210,11 @@ external dependencies.")
 | 
				
			||||||
             (lambda* (#:key inputs #:allow-other-keys)
 | 
					             (lambda* (#:key inputs #:allow-other-keys)
 | 
				
			||||||
               (let* ((libdir (string-append #$output "/lib")))
 | 
					               (let* ((libdir (string-append #$output "/lib")))
 | 
				
			||||||
                 (invoke "./configure"
 | 
					                 (invoke "./configure"
 | 
				
			||||||
                         "--enable-selftest"
 | 
					                         #$@(if (member (%current-system)
 | 
				
			||||||
 | 
					                                        (package-transitive-supported-systems
 | 
				
			||||||
 | 
					                                         python-cryptography))
 | 
				
			||||||
 | 
					                                '("--enable-selftest")
 | 
				
			||||||
 | 
					                                '())
 | 
				
			||||||
                         "--enable-fhs"
 | 
					                         "--enable-fhs"
 | 
				
			||||||
                         (string-append "--prefix=" #$output)
 | 
					                         (string-append "--prefix=" #$output)
 | 
				
			||||||
                         "--sysconfdir=/etc"
 | 
					                         "--sysconfdir=/etc"
 | 
				
			||||||
| 
						 | 
					@ -255,19 +259,27 @@ external dependencies.")
 | 
				
			||||||
      ;; In Requires or Requires.private of pkg-config files.
 | 
					      ;; In Requires or Requires.private of pkg-config files.
 | 
				
			||||||
      (list ldb talloc tevent))
 | 
					      (list ldb talloc tevent))
 | 
				
			||||||
     (native-inputs
 | 
					     (native-inputs
 | 
				
			||||||
      (list perl-parse-yapp
 | 
					      (append
 | 
				
			||||||
            pkg-config
 | 
					       (list perl-parse-yapp
 | 
				
			||||||
            python-cryptography         ;for krb5 tests
 | 
					             pkg-config)
 | 
				
			||||||
            python-dnspython
 | 
					       ;; The python-cryptography dependency is needed for the krb5 tests.
 | 
				
			||||||
            python-iso8601
 | 
					       ;; Since python-cryptography requires Rust, add it conditionally
 | 
				
			||||||
            python-markdown
 | 
					       ;; depending on such support.
 | 
				
			||||||
            rpcsvc-proto                ;for 'rpcgen'
 | 
					       (if (member (%current-system)
 | 
				
			||||||
            python-pyasn1               ;for krb5 tests
 | 
					                   (package-transitive-supported-systems
 | 
				
			||||||
            ;; For generating man pages.
 | 
					                    python-cryptography))
 | 
				
			||||||
            docbook-xml-4.2
 | 
					           (list python-cryptography)
 | 
				
			||||||
            docbook-xsl
 | 
					           '())
 | 
				
			||||||
            libxslt
 | 
					       (list python-dnspython
 | 
				
			||||||
            libxml2))                   ;for XML_CATALOG_FILES
 | 
					             python-iso8601
 | 
				
			||||||
 | 
					             python-markdown
 | 
				
			||||||
 | 
					             rpcsvc-proto               ;for 'rpcgen'
 | 
				
			||||||
 | 
					             python-pyasn1              ;for krb5 tests
 | 
				
			||||||
 | 
					             ;; For generating man pages.
 | 
				
			||||||
 | 
					             docbook-xml-4.2
 | 
				
			||||||
 | 
					             docbook-xsl
 | 
				
			||||||
 | 
					             libxslt
 | 
				
			||||||
 | 
					             libxml2)))                 ;for XML_CATALOG_FILES
 | 
				
			||||||
     (home-page "https://www.samba.org/")
 | 
					     (home-page "https://www.samba.org/")
 | 
				
			||||||
     (synopsis
 | 
					     (synopsis
 | 
				
			||||||
      "The standard Windows interoperability suite of programs for GNU and Unix")
 | 
					      "The standard Windows interoperability suite of programs for GNU and Unix")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue