gnu: mit-krb5: Build with GCC 4.7.
* gnu/packages/mit-krb5.scm (mit-krb5): Make BISON and PERL native inputs. Add GCC-4.7 as a native input.master
parent
de6792699e
commit
df8a09c708
|
@ -20,6 +20,7 @@
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (gnu packages bison)
|
#:use-module (gnu packages bison)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
|
#:use-module (gnu packages gcc)
|
||||||
#:use-module (guix licenses)
|
#:use-module (guix licenses)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
|
@ -27,60 +28,64 @@
|
||||||
|
|
||||||
(define-public mit-krb5
|
(define-public mit-krb5
|
||||||
(package
|
(package
|
||||||
(name "mit-krb5")
|
(name "mit-krb5")
|
||||||
(version "1.11.3")
|
(version "1.11.3")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "http://web.mit.edu/kerberos/www/dist/krb5/"
|
(uri (string-append "http://web.mit.edu/kerberos/www/dist/krb5/"
|
||||||
(string-copy version 0 (string-rindex version #\.))
|
(string-copy version 0 (string-rindex version #\.))
|
||||||
"/krb5-" version "-signed.tar"))
|
"/krb5-" version "-signed.tar"))
|
||||||
(sha256 (base32
|
(sha256 (base32
|
||||||
"1daiaxgkxcryqs37w28v4x1vajqmay4l144d1zd9c2d7jjxr9gcs"))))
|
"1daiaxgkxcryqs37w28v4x1vajqmay4l144d1zd9c2d7jjxr9gcs"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("patch/init-fix" ,(search-patch "mit-krb5-init-fix.patch"))))
|
`(("patch/init-fix" ,(search-patch "mit-krb5-init-fix.patch"))
|
||||||
(inputs `(("bison" ,bison)
|
("bison" ,bison)
|
||||||
("perl" ,perl)))
|
("perl" ,perl)
|
||||||
(arguments
|
|
||||||
'(#:phases
|
;; XXX: When built with GCC 4.8, the 'db_test' test program enters an
|
||||||
(alist-replace
|
;; infinite loop. As a stopgap measure, build with GCC 4.7.
|
||||||
'unpack
|
("gcc" ,gcc-4.7)))
|
||||||
(lambda* (#:key source #:allow-other-keys)
|
(arguments
|
||||||
(let ((inner
|
'(#:phases
|
||||||
(substring source
|
|
||||||
(string-index-right source #\k)
|
|
||||||
(string-index-right source #\-))))
|
|
||||||
(and (zero? (system* "tar" "xvf" source))
|
|
||||||
(zero? (system* "tar" "xvf" (string-append inner ".tar.gz")))
|
|
||||||
(chdir inner)
|
|
||||||
(chdir "src")
|
|
||||||
;; XXX The current patch system does not support unusual
|
|
||||||
;; source unpack methods, so we have to apply this patch in a
|
|
||||||
;; non-standard way.
|
|
||||||
(zero? (system* "patch" "-p1" "--batch" "-i"
|
|
||||||
(assoc-ref %build-inputs "patch/init-fix"))))))
|
|
||||||
(alist-replace
|
(alist-replace
|
||||||
'check
|
'unpack
|
||||||
(lambda* (#:key inputs #:allow-other-keys #:rest args)
|
(lambda* (#:key source #:allow-other-keys)
|
||||||
(let ((perl (assoc-ref inputs "perl"))
|
(let ((inner
|
||||||
(check (assoc-ref %standard-phases 'check)))
|
(substring source
|
||||||
(substitute* "plugins/kdb/db2/libdb2/test/run.test"
|
(string-index-right source #\k)
|
||||||
(("/bin/cat") (string-append perl "/bin/perl")))
|
(string-index-right source #\-))))
|
||||||
(substitute* "plugins/kdb/db2/libdb2/test/run.test"
|
(and (zero? (system* "tar" "xvf" source))
|
||||||
(("D/bin/sh") (string-append "D" (which "bash"))))
|
(zero? (system* "tar" "xvf" (string-append inner ".tar.gz")))
|
||||||
(substitute* "plugins/kdb/db2/libdb2/test/run.test"
|
(chdir inner)
|
||||||
(("bindir=/bin/.") (string-append "bindir=" perl "/bin")))
|
(chdir "src")
|
||||||
;; use existing files and directories in test
|
;; XXX The current patch system does not support unusual
|
||||||
(substitute* "tests/resolve/Makefile"
|
;; source unpack methods, so we have to apply this patch in a
|
||||||
(("-p telnet") "-p 23"))
|
;; non-standard way.
|
||||||
;; avoid service names since /etc/services is unavailable
|
(zero? (system* "patch" "-p1" "--batch" "-i"
|
||||||
(apply check args)))
|
(assoc-ref %build-inputs "patch/init-fix"))))))
|
||||||
%standard-phases))))
|
(alist-replace
|
||||||
(synopsis "MIT Kerberos 5")
|
'check
|
||||||
(description
|
(lambda* (#:key inputs #:allow-other-keys #:rest args)
|
||||||
"Massachusetts Institute of Technology implementation of Kerberos.
|
(let ((perl (assoc-ref inputs "perl"))
|
||||||
|
(check (assoc-ref %standard-phases 'check)))
|
||||||
|
(substitute* "plugins/kdb/db2/libdb2/test/run.test"
|
||||||
|
(("/bin/cat") (string-append perl "/bin/perl")))
|
||||||
|
(substitute* "plugins/kdb/db2/libdb2/test/run.test"
|
||||||
|
(("D/bin/sh") (string-append "D" (which "bash"))))
|
||||||
|
(substitute* "plugins/kdb/db2/libdb2/test/run.test"
|
||||||
|
(("bindir=/bin/.") (string-append "bindir=" perl "/bin")))
|
||||||
|
;; use existing files and directories in test
|
||||||
|
(substitute* "tests/resolve/Makefile"
|
||||||
|
(("-p telnet") "-p 23"))
|
||||||
|
;; avoid service names since /etc/services is unavailable
|
||||||
|
(apply check args)))
|
||||||
|
%standard-phases))))
|
||||||
|
(synopsis "MIT Kerberos 5")
|
||||||
|
(description
|
||||||
|
"Massachusetts Institute of Technology implementation of Kerberos.
|
||||||
Kerberos is a network authentication protocol designed to provide strong
|
Kerberos is a network authentication protocol designed to provide strong
|
||||||
authentication for client/server applications by using secret-key cryptography.")
|
authentication for client/server applications by using secret-key cryptography.")
|
||||||
(license (bsd-style "file://NOTICE"
|
(license (bsd-style "file://NOTICE"
|
||||||
"See NOTICE in the distribution."))
|
"See NOTICE in the distribution."))
|
||||||
(home-page "http://web.mit.edu/kerberos/")))
|
(home-page "http://web.mit.edu/kerberos/")))
|
||||||
|
|
Reference in New Issue