diff options
author | Andrey Grozin <grozin@gentoo.org> | 2014-12-20 15:38:25 +0000 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2014-12-20 15:38:25 +0000 |
commit | 028b3ec5e12412c1dba11a96eead5336c971bb9c (patch) | |
tree | 4f8ca9c8c0f4a8efa5b44b4b5d9b18ce70dd267b /dev-lisp | |
parent | Add missing get_ownership and new_config_protect functions for bug #533010. (diff) | |
download | historical-028b3ec5e12412c1dba11a96eead5336c971bb9c.tar.gz historical-028b3ec5e12412c1dba11a96eead5336c971bb9c.tar.bz2 historical-028b3ec5e12412c1dba11a96eead5336c971bb9c.zip |
Version bump
Package-Manager: portage-2.2.15/cvs/Linux i686
Manifest-Sign-Key: 0x3AFFCE974D34BD8C!
Diffstat (limited to 'dev-lisp')
-rw-r--r-- | dev-lisp/sbcl/ChangeLog | 8 | ||||
-rw-r--r-- | dev-lisp/sbcl/Manifest | 34 | ||||
-rw-r--r-- | dev-lisp/sbcl/files/bsd-sockets-test-1.2.6.patch | 157 | ||||
-rw-r--r-- | dev-lisp/sbcl/sbcl-1.2.6.ebuild | 206 |
4 files changed, 389 insertions, 16 deletions
diff --git a/dev-lisp/sbcl/ChangeLog b/dev-lisp/sbcl/ChangeLog index c7f11d6c4313..b4304d2e4477 100644 --- a/dev-lisp/sbcl/ChangeLog +++ b/dev-lisp/sbcl/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lisp/sbcl # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.210 2014/10/20 14:51:55 grozin Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.211 2014/12/20 15:37:16 grozin Exp $ + +*sbcl-1.2.6 (20 Dec 2014) + + 20 Dec 2014; Andrey Grozin <grozin@gentoo.org> +sbcl-1.2.6.ebuild, + +files/bsd-sockets-test-1.2.6.patch: + Version bump *sbcl-1.2.4 (20 Oct 2014) diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest index 89695e6ecb22..46ad0d66dc37 100644 --- a/dev-lisp/sbcl/Manifest +++ b/dev-lisp/sbcl/Manifest @@ -1,6 +1,7 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +AUX bsd-sockets-test-1.2.6.patch 6152 SHA256 a29bf2e5d78039fe778a70dd4e16e0540523a20306c2bedbfa413bd5f9ac1693 SHA512 6f9f2acf70adf83d0506ba29607afb7bcf87559d78424db85117c228c4250b4789bf0ad4642fa68e2cba381445b25193ec8e7ea2b6d9762453cfd3d92ddf70ea WHIRLPOOL 54539c429a22d19388fa22d17676a43bda04f218d5e1a33cfacb670fe5e19b92190d3a272a4a1ef98368b4436150e0e44bd767b42cdbaaa420400ed6aff8fe99 AUX bsd-sockets-test-1.2.patch 803 SHA256 5fd1abd8992903e60b1f6fe19dcd1b7ce7c7cb57fcfede8830f1d5d264ea3b07 SHA512 07199deb9315f749ea7998d8990cc5f73833d80cef16de77c0bcafb24eb79eb2c2495d0768100b9322c21a70949463b0fe007e15b45ef248e1c74ebd6365b733 WHIRLPOOL 43ca5ea5bfb24ad30033184a0d0e31a86688da9b3ae879f448aafdcae6ded6ca0091e48c89cfc8314903ba7ac368e32496f7c384471c0fec8686f16b3b9fed96 AUX bsd-sockets-test.patch 748 SHA256 e23fff91524c4a5c12e5e6b088c9b9785ea86854690583b44118f4ed56fa423d SHA512 d46e08c92d8bf98095762b1a8601c9f9292ea41f55f0089f7fd150977b9cacdf7edd9340fab4242a9c100d7023bd7f12e4dd492c435bbdb2d849a6aba6907e42 WHIRLPOOL 435ac6780f8412fe982acc75902e577f9ff266ce05b14f629e70492a115f1bba5e84d9787fff9a595a549b7fb4e275bdfbd4a5c6701872d9641383663aceb6c7 AUX concurrency-test.patch 924 SHA256 363aa5f82c4c238df4459deb345d63185c7a3bc557880831d628753af8b48a13 SHA512 831860e23a430959de1833c542cee546d68d62cdb7ca10a45f338b35cf37b4521036eb721ac5a06747ab2f018b3fea7b47d5a25f1f52d669e41ea17716698462 WHIRLPOOL f55031d3b0483d942fa3267dc2f6c51227bc65d3e461b8bc70bc1b2fae694f8e5e82ed1bef53daf6ef4ace6bd6e56866ffbc4713f315c049419d1aca9d9c9a28 @@ -23,28 +24,31 @@ DIST sbcl-1.2.2-source.tar.bz2 4437174 SHA256 5b2c510cdd7300956428c3b9bad78bd730 DIST sbcl-1.2.2-x86-64-linux-binary.tar.bz2 9412798 SHA256 a20779fefd466ad985f530fbd3093b603779efa20f0d3045d75420b4e73d0723 SHA512 aca469a106a848920861f9254f264fe9ce6c025268f43d86a96f69d4f149b16666f33260b12407fcbcbec564126d2a17c4f1b152ce7676cff45ef0762413385b WHIRLPOOL b98aae862ce72fabf1acaefac6a7a76fbb64ed152f7113cc27f4b5be7540a96effb1c1ee65325294666d1fe24fac397b32b5f4987bc7dba88994cf892fc9b823 DIST sbcl-1.2.4-source.tar.bz2 4486150 SHA256 f910059785ffcfa22eb40548e1355f0da979261fbee017baa9ef2c060d777232 SHA512 d524114bfc289e29a372b840dd4e6bbecb10f7f9e0be149b50c44a63aaa40473f62c34843472d36f98df9e63da30c163037302714020de63b2faf5d0c95f4d4c WHIRLPOOL da7ef6fdc413e30a6f594fa50b639fe00166b95adced6c605c9eb348a4444af8705ee6d553f5e5fca75a6f1ecbe477ffefae8cacb46a97526c16b7cb2b838daf DIST sbcl-1.2.4-x86-64-linux-binary.tar.bz2 9450469 SHA256 c9d1c5c309bfa1dc5440ac0c6ee358415b62f87cf092131df9e7c2f718bdb2c2 SHA512 cbcfd4e3872c07cfb1cde10fee6c548c5349f9b08dc765962ca52e32f426386fa2d7160be17c68b7bdad0a648ef4acee0bd098558d9506688d0023c8147eea79 WHIRLPOOL 12079b5f4293c21b46243ce7bd7cdeac1015da7b4a26a6f9536ef5727677ead8fcf621294a900e8548262bc186b33517a9abd8bd3646a74cd08c312f7f156e6c +DIST sbcl-1.2.6-source.tar.bz2 5460124 SHA256 4108035eebdd7af3d4a21bd7cb87443b7e9a8eb31e7f855ca2d4b4be8320f389 SHA512 7d3b453f27be0f825b6fad3fd4f58afd587c14c8c8fd60551504776cb4d75706b925260499c41044da2d519baec31373abc14e0ea7a847bc7fc9a3cacca65d9e WHIRLPOOL d1e0ce7630a831d77d3ae2645a51ed86cc808c9d3f3a0c9af070139142190e60e04df84d178c92eef21238222ecc2abb149c6600b30927e5d5d4dbdbfd46864d +DIST sbcl-1.2.6-x86-64-linux-binary.tar.bz2 10466349 SHA256 9c21e63cc2a023d9d785621d935f6f758dcd688d8f9f30a4753eb6a1a75e2fe2 SHA512 bb2f3f70ab4429dbc1339e17856a126d720e804eb0bd7aede9d1ebe28af5cbe2e29667d54c59101f711f4e7814cec8b0c39ef3756478a1456b1cf67763761635 WHIRLPOOL 0883c771684d92dc908edb4a60a1a9fc5de948e0fc16e019e41b454bd6d3a880dc8615f6be3beb44ed2c08d8543d7ca539d531377ecbce96194f98e39ce6c68b EBUILD sbcl-1.0.55-r1.ebuild 6109 SHA256 8bbc0e38724b5a40d5c51b8d61a00bfc254265fe468e7c7f6d4963bb5cc0a0a8 SHA512 9894d9d3ae42a6b92d6fe41af9963841aec3dcc63d44b324cb959a995a4351f6bac3c92d310e1189fa541486fd413968f563e98abf5bcacb813c35357b448c8b WHIRLPOOL 5fc98f685599237989ae55ff1d099e74612129c679a6498734bf2e62716f5691225d07f510a3747c1ce9b714b0f43938bbbbb6464684119fe8562a9ecc0019fe EBUILD sbcl-1.1.18.ebuild 6963 SHA256 b6977411bdadb9057d185ebea9a4ee5b2b7ff19d54c2ca838e3e9a0659412c89 SHA512 bbf22ab9402f65c92657c797c2820ea027d72bef71438c697cd949364421dc78be18687d1c0bb9bdf70538310e55f185fdc83fcbd4578f3832ee56c1253aea31 WHIRLPOOL cb4da2691ef3643a8c19fa357ea5fb52668c664a366f5e618bc7715b63cca41ca9e74bef0852d8a2e203a35b5079e58e0010bb3c87912e85fe0074792cc02028 EBUILD sbcl-1.2.2.ebuild 6976 SHA256 a10e756c7b49c4e68f7ec836016e8a2a689bbf32067da5546b200abcb991b107 SHA512 f7213131256d3715137daa07bc067400f02f6e2296e210c57d8c28622b8c83bce25689e6316366ae0c79f811df65ab3af7f33f85355126b29babda6324ca2e12 WHIRLPOOL d4e8b251fe028c7488ca186826307e4fa79a07126aa9f2421a8489e63bf0cd2200a7ec2dbc21dda884236c90e9daf4c302641275c4027c8b584e6cc8d0b19fd2 EBUILD sbcl-1.2.4.ebuild 6976 SHA256 658bc0c6080c6d0ddd2e32121ff2fa5f0dc7ff0152e7ce3ddc5eac323a1e0a8f SHA512 5e6ac63fefe0b2ea6cda9d610e26d99e06b4537e9e8f508ef89d180c919087841f8fb75481d8e92da9a659237c54fd5640f5c61ecafbd651b41f680c78b39def WHIRLPOOL 803c875ed620f58428446ae96ec59eba3ad9dbf8983c23ca455bd67e78534274da22667fd6eac67c98a8bb357f6c1dbaa971414b851ae625e676ae85620427b6 -MISC ChangeLog 55823 SHA256 aed47e4c3189980dba9b811f56ba2462bfb4d2460a9a6afa14327c549e125ed6 SHA512 47247d9ee31ba7211ae5b37ff6ec8980abf955e38c03049b160ff127c0785a351b9ba28c826ff124d74d4acaa813f28fa4936ea3858cb17eba9f742c35adc5c5 WHIRLPOOL ff11a2ad4e5888ee9cb99b0953342868068e18de125c321c85fd05fe13879348fb146a16433d15a4bc9efa9658304cba5177ed7a52d4b2f745ee61a7c987f89c +EBUILD sbcl-1.2.6.ebuild 6890 SHA256 7225e7405718576b49c79817a64c897bc7dc1926606d088d20883bf4c37d15aa SHA512 c4759650831c7d7556414eab8e683460345d61bd14c4ac8bfcc6c127ac8f1f8f0ed83fb0168149c2f454787a956145c20384b2177ad72a54e4172ac2a48448f9 WHIRLPOOL 4970001c7f0a08dfcf6e6c7e605f9728f191e130a6d5333334bef3009305c48b919cffcd9a570ddac5bfbce80d1c8ff2ad3348d0efef8d42083370be7a3e465c +MISC ChangeLog 55974 SHA256 618889217f7cf9913cdef4289ac7ec29d5f56af893c2908f4c4bd069ced46c39 SHA512 c7bc64e9953aa642d4cda4ffc1c9d531861394f0f8c53ee25ff716525613c4e29b180c27c523c6bb0f424f84e4aee1a0351fe7ec9361727ec911d21d60a295b8 WHIRLPOOL 9b0fcd01e8a404e1d183ab018e7df545fba17fe5d79fc8b75ad04165fe342610ace9058595e384bc89e72f7dc02c145f45e32a3d34e2544693ea42952e1751ba MISC metadata.xml 1676 SHA256 17fb0c325844368c649a311f15fbb53a87e5ef987021c52424ffa647745101f3 SHA512 54f12b8385602a6f26b35bb63cbfb0414788e899bc2f5240f60ce249d8ac914c1e236b8d66cee893eac1c3602661869a4333223fa4ce043bd284bde51fa99512 WHIRLPOOL 90a7306f698aa56ab618874f1d325bd3bb789961675d4b0728744abff152bfb6e8cb7303c3cc063782e0411ce27551527c313b404846dadbe2638c5ea086e2f1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0 -iQJ8BAEBCABmBQJURR+BXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +iQJ8BAEBCABmBQJUlZWpXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwOEM0RURGNjY5QzVBNjMwRkU3REVCOTQz -QUZGQ0U5NzREMzRCRDhDAAoJEDr/zpdNNL2MnjMP/iHdHL71DOhjScpsw0+TwPau -S6ly41wUfUxRaGci+iJjfHi4a1bvKg5jIv52FMu9nBB53/UfA6RQTE3nwHoABrGg -8O9BC2nhXITtmJPQ0OXdJRmhJosbn/h/DdM2TLepqDh5IOXANPXulbjZiKPZQ/sf -BTU8fDMosYWRg6YuAQOGk7M5cNjDMYiTLatO6hdq1m0E7812OTfNrIk/hB6eJL1f -GXCqsvp7nK3wAGX5AhEwDI0NsyNS/OrpFDlL1qLKeY63qt50rF9pi/RlN3MjJI2G -Q9IVSISQPMo/bGTds1skIzHcU1dTM44nbSpd65qJaevSCiKheqhbjbrNE4Ps0bFV -bN/eKKeWpoqkQKYKNzvoYsdTUBgDNvCoGbszDtWYDCsFbQF98yfnioCt3p52glFx -rmuNFCBf1df/1oYDEotkUvThZ+vzXf92bZ/dMtnpX9jvSB1qNBz1ZrFYNZTlifwO -CMoxV05We1emiIZCV/llp00dufrhtHkQeeJ+8kA4gghn7FKQfD0eLWRW+uf+eGjK -0KB6xJHKc2njACmXYZ2/quFQqNyTdSkgPjfEfvNHyOS1FZ2RUXC72E0s+3FJSe0j -5EapAPz6oin1mvrApROf0zMc7bHmWB1saBiacZxJ41mo7pevnNSyyptOiIq7jiUx -LA61ovP3zE/wavAzRqFB -=Su6Y +QUZGQ0U5NzREMzRCRDhDAAoJEDr/zpdNNL2M8v8P/ivFjDLXIey3GATfHXEPoNYT +AMJcvqy9xu1tnG9BMwzDj879G2keFCJmlA6GY6dlIUD28Q0WDZWpNo8Ksw3Ql7Wh +Qg7u9+A7Jl5+i0WqK4UPXXPb9URYmpmvUq3OyCOyLZx32HU5y3mu4hcLoE4mRnJP +zxnsYKu+RlWYONvDRdtiRciF5WbMMfD/UbFfzTzajPAQoccsv4Gfeb7/8BrVmusi +1OX1vuPAuC2CK8twsKP0LklOinJpP8BUoG56NyWqQdqoPBYwiDf/3nQyaEWOBWu8 +t2NgXMtfPfvAxfyDbJPQmNcRqD+OsA5LxTzyW49z2MoelkZTmqppEzvq37cdEckQ +O2+kkq+lJhPfrajau1VEJFs4zYTT2D0IOCfEnDxBr7oHJtl1FU6nFdXnCAnBkyc9 +vMKl7lvScEqJ7++SfWy0jsBjytYDswZR2eUvk/Sy0t8Zx1lSJ44Tu6jM12G0qao/ +yhmAJN/TBo4nOFK2bIqzu5IA0CV914K5YP50JipF0rPCu9U4PUUK7S66incrYkzr +X+c3ht4zt27fW0WJ9Nf8DQKQNtnRNAYxfGshzaVRb+UTjDbAKjZXHQZZM8Deu3W3 +ytjKKrnggMHZfIshFJaRyx21Xq6T4M0L2V8PUSlxd/AZrnc3R2KjylozAcsDPrd7 +/KQeRXIMNoA4+5IEyJ3R +=ZBBO -----END PGP SIGNATURE----- diff --git a/dev-lisp/sbcl/files/bsd-sockets-test-1.2.6.patch b/dev-lisp/sbcl/files/bsd-sockets-test-1.2.6.patch new file mode 100644 index 000000000000..7852979384be --- /dev/null +++ b/dev-lisp/sbcl/files/bsd-sockets-test-1.2.6.patch @@ -0,0 +1,157 @@ +diff -r -U1 sbcl-1.2.6.orig/contrib/sb-bsd-sockets/tests.lisp sbcl-1.2.6/contrib/sb-bsd-sockets/tests.lisp +--- sbcl-1.2.6.orig/contrib/sb-bsd-sockets/tests.lisp 2014-11-30 00:56:58.000000000 +0600 ++++ sbcl-1.2.6/contrib/sb-bsd-sockets/tests.lisp 2014-12-20 20:02:26.863408300 +0600 +@@ -37,11 +37,11 @@ + ;;; for unknown protocols... +-#-(and freebsd sb-thread) +-#-(and dragonfly sb-thread) +-(deftest get-protocol-by-name/error +- (handler-case (get-protocol-by-name "nonexistent-protocol") +- (unknown-protocol () +- t) +- (:no-error () +- nil)) +- t) ++;#-(and freebsd sb-thread) ++;#-(and dragonfly sb-thread) ++;(deftest get-protocol-by-name/error ++; (handler-case (get-protocol-by-name "nonexistent-protocol") ++; (unknown-protocol () ++; t) ++; (:no-error () ++; nil)) ++; t) + +@@ -93,13 +93,13 @@ + +-#-win32 +-(deftest make-inet6-socket.smoke +- (let ((s (make-instance 'inet6-socket :type :stream :protocol (get-protocol-by-name "tcp")))) +- (and (> (socket-file-descriptor s) 1) t)) +- t) +- +-#-win32 +-(deftest make-inet6-socket.keyword +- (let ((s (make-instance 'inet6-socket :type :stream :protocol :tcp))) +- (and (> (socket-file-descriptor s) 1) t)) +- t) ++;#-win32 ++;(deftest make-inet6-socket.smoke ++; (let ((s (make-instance 'inet6-socket :type :stream :protocol (get-protocol-by-name "tcp")))) ++; (and (> (socket-file-descriptor s) 1) t)) ++; t) ++ ++;#-win32 ++;(deftest make-inet6-socket.keyword ++; (let ((s (make-instance 'inet6-socket :type :stream :protocol :tcp))) ++; (and (> (socket-file-descriptor s) 1) t)) ++; t) + +@@ -131,22 +131,22 @@ + +-#-win32 +-(deftest inet6-socket-bind +- (let* ((tcp (get-protocol-by-name "tcp")) +- (address (make-inet6-address "::1")) +- (s1 (make-instance 'inet6-socket :type :stream :protocol tcp)) +- (s2 (make-instance 'inet6-socket :type :stream :protocol tcp))) +- (unwind-protect +- ;; Given the functions we've got so far, if you can think of a +- ;; better way to make sure the bind succeeded than trying it +- ;; twice, let me know +- (progn +- (socket-bind s1 address 0) +- (handler-case +- (let ((port (nth-value 1 (socket-name s1)))) +- (socket-bind s2 address port) +- nil) +- (address-in-use-error () t))) +- (socket-close s1) +- (socket-close s2))) +- t) ++;#-win32 ++;(deftest inet6-socket-bind ++; (let* ((tcp (get-protocol-by-name "tcp")) ++; (address (make-inet6-address "::1")) ++; (s1 (make-instance 'inet6-socket :type :stream :protocol tcp)) ++; (s2 (make-instance 'inet6-socket :type :stream :protocol tcp))) ++; (unwind-protect ++; ;; Given the functions we've got so far, if you can think of a ++; ;; better way to make sure the bind succeeded than trying it ++; ;; twice, let me know ++; (progn ++; (socket-bind s1 address 0) ++; (handler-case ++; (let ((port (nth-value 1 (socket-name s1)))) ++; (socket-bind s2 address port) ++; nil) ++; (address-in-use-error () t))) ++; (socket-close s1) ++; (socket-close s2))) ++; t) + +@@ -217,33 +217,33 @@ + +-#-win32 +-(deftest simple-local-client +- (progn +- ;; SunOS (Solaris) and Darwin systems don't have a socket at +- ;; /dev/log. We might also be building in a chroot or +- ;; something, so don't fail this test just because the file is +- ;; unavailable, or if it's a symlink to some weird character +- ;; device. +- (when (block nil +- (handler-bind ((sb-posix:syscall-error +- (lambda (e) +- (declare (ignore e)) +- (return nil)))) +- (sb-posix:s-issock +- (sb-posix::stat-mode (sb-posix:stat "/dev/log"))))) +- (let ((s (make-instance 'local-socket :type :datagram))) +- (format t "Connecting ~A... " s) +- (finish-output) +- (handler-case +- (socket-connect s "/dev/log") +- (sb-bsd-sockets::socket-error () +- (setq s (make-instance 'local-socket :type :stream)) +- (format t "failed~%Retrying with ~A... " s) +- (finish-output) +- (socket-connect s "/dev/log"))) +- (format t "ok.~%") +- (let ((stream (socket-make-stream s :input t :output t :buffering :none))) +- (format stream +- "<7>bsd-sockets: Don't panic. We're testing local-domain client code; this message can safely be ignored")))) +- t) +- t) ++;#-win32 ++;(deftest simple-local-client ++; (progn ++; ;; SunOS (Solaris) and Darwin systems don't have a socket at ++; ;; /dev/log. We might also be building in a chroot or ++; ;; something, so don't fail this test just because the file is ++; ;; unavailable, or if it's a symlink to some weird character ++; ;; device. ++; (when (block nil ++; (handler-bind ((sb-posix:syscall-error ++; (lambda (e) ++; (declare (ignore e)) ++; (return nil)))) ++; (sb-posix:s-issock ++; (sb-posix::stat-mode (sb-posix:stat "/dev/log"))))) ++; (let ((s (make-instance 'local-socket :type :datagram))) ++; (format t "Connecting ~A... " s) ++; (finish-output) ++; (handler-case ++; (socket-connect s "/dev/log") ++; (sb-bsd-sockets::socket-error () ++; (setq s (make-instance 'local-socket :type :stream)) ++; (format t "failed~%Retrying with ~A... " s) ++; (finish-output) ++; (socket-connect s "/dev/log"))) ++; (format t "ok.~%") ++; (let ((stream (socket-make-stream s :input t :output t :buffering :none))) ++; (format stream ++; "<7>bsd-sockets: Don't panic. We're testing local-domain client code; this message can safely be ignored")))) ++; t) ++; t) + diff --git a/dev-lisp/sbcl/sbcl-1.2.6.ebuild b/dev-lisp/sbcl/sbcl-1.2.6.ebuild new file mode 100644 index 000000000000..0d5fb3379944 --- /dev/null +++ b/dev-lisp/sbcl/sbcl-1.2.6.ebuild @@ -0,0 +1,206 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-1.2.6.ebuild,v 1.1 2014/12/20 15:37:16 grozin Exp $ + +EAPI=5 +inherit multilib eutils flag-o-matic pax-utils + +#same order as http://www.sbcl.org/platform-table.html +BV_X86=1.0.58 +BV_AMD64=1.2.6 +BV_PPC=1.0.28 +BV_SPARC=1.0.28 +BV_ALPHA=1.0.28 + +DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp" +HOMEPAGE="http://sbcl.sourceforge.net/" +SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2 + x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 ) + amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 ) + ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 ) + sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 ) + alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="debug doc source +threads +unicode pax_kernel zlib" + +CDEPEND=">=dev-lisp/asdf-3.1:=" +DEPEND="${CDEPEND} + doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 ) + pax_kernel? ( sys-apps/paxctl sys-apps/elfix )" +RDEPEND="${CDEPEND} + elibc_glibc? ( >=sys-libs/glibc-2.6 )" + +# Disable warnings about executable stacks, as this won't be fixed soon by upstream +QA_EXECSTACK="usr/bin/sbcl" + +CONFIG="${S}/customize-target-features.lisp" +ENVD="${T}/50sbcl" + +# Prevent ASDF from using the system libraries +CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" +ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" + +usep() { + use ${1} && echo "true" || echo "false" +} + +sbcl_feature() { + echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}" +} + +sbcl_apply_features() { + sed 's/^X//' > "${CONFIG}" <<-'EOF' + (lambda (list) + X (flet ((enable (x) (pushnew x list)) + X (disable (x) (setf list (remove x list)))) + EOF + if use x86 || use amd64; then + sbcl_feature "$(usep threads)" ":sb-thread" + fi + sbcl_feature "true" ":sb-ldb" + sbcl_feature "false" ":sb-test" + sbcl_feature "$(usep unicode)" ":sb-unicode" + sbcl_feature "$(usep zlib)" ":sb-core-compression" + sbcl_feature "$(usep debug)" ":sb-xref-for-internals" + sed 's/^X//' >> "${CONFIG}" <<-'EOF' + X ) + X list) + EOF + cat "${CONFIG}" +} + +src_unpack() { + unpack ${A} + mv sbcl-*-linux sbcl-binary || die + cd "${S}" +} + +src_prepare() { + epatch "${FILESDIR}"/gentoo-fix_install_man.patch + # bug #468482 + epatch "${FILESDIR}/concurrency-test-${PV}.patch" + # bugs #486552, #527666 + epatch "${FILESDIR}"/bsd-sockets-test-${PV}.patch + + # To make the hardened compiler NOT compile with -fPIE -pie + if gcc-specs-pie ; then + einfo "Disabling PIE..." + epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch + fi + + cp /usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die + + use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk + + # Some shells(such as dash) don't have "time" as builtin + # and we don't want to DEPEND on sys-process/time + sed "s,^time ,," -i make.sh || die + sed "s,/lib,/$(get_libdir),g" -i install.sh || die + # #define SBCL_HOME ... + sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c || die + + find . -type f -name .cvsignore -delete +} + +src_configure() { + # customizing SBCL version as per + # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup + echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr + + # applying customizations + sbcl_apply_features +} + +src_compile() { + local bindir="${WORKDIR}"/sbcl-binary + + strip-unsupported-flags ; filter-flags -fomit-frame-pointer + + if host-is-pax ; then + # To disable PaX on hardened systems + pax-mark -mr "${bindir}"/src/runtime/sbcl + + # Hack to disable PaX on second GENESIS stage + sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \ + "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime" + fi + + # clear the environment to get rid of non-ASCII strings, see bug 174702 + # set HOME for paludis + env - HOME="${T}" \ + CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \ + CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \ + GNUMAKE=make ./make.sh \ + "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \ + || die "make failed" + + # need to set HOME because libpango(used by graphviz) complains about it + if use doc; then + env - HOME="${T}" \ + CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \ + ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \ + make -C doc/manual info html || die "Cannot build manual" + env - HOME="${T}" \ + CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \ + ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \ + make -C doc/internals info html || die "Cannot build internal docs" + fi +} + +src_test() { + ewarn "Unfortunately, it is known that some tests fail eg." + ewarn "run-program.impure.lisp. This is an issue of the upstream's" + ewarn "development and not of Gentoo's side. Please, before filing" + ewarn "any bug(s) search for older submissions. Thank you." + time ( cd tests && sh run-tests.sh ) +} + +src_install() { + # install system-wide initfile + dodir /etc/ + sed 's/^X//' > "${D}"/etc/sbclrc <<-EOF + ;;; The following is required if you want source location functions to + ;;; work in SLIME, for example. + X + (setf (logical-pathname-translations "SYS") + X '(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*") + X ("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*"))) + X + ;;; Setup ASDF2 + (load "/etc/common-lisp/gentoo-init.lisp") + EOF + + # Install documentation + unset SBCL_HOME + INSTALL_ROOT="${D}/usr" LIB_DIR="/usr/$(get_libdir)" DOC_DIR="${D}/usr/share/doc/${PF}" \ + sh install.sh || die "install.sh failed" + + # rm empty directories lest paludis complain about this + find "${D}" -empty -type d -exec rmdir -v {} + + + if use doc; then + dohtml -r doc/manual/ + doinfo doc/manual/*.info* + dohtml -r doc/internals/sbcl-internals + doinfo doc/internals/sbcl-internals.info + docinto internals-notes && dodoc doc/internals-notes/* + else + rm -Rv "${D}/usr/share/doc/${PF}" || die + fi + + dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO + + # install the SBCL source + if use source; then + ./clean.sh + cp -av src "${D}/usr/$(get_libdir)/sbcl/" || die + fi + + # necessary for running newly-saved images + echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}" + echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}" + doenvd "${ENVD}" +} |