Update to latest git snapshot for bug fixes.

This commit is contained in:
Jerry James 2018-08-10 20:03:22 -06:00
parent 54affefff4
commit c97190edda
6 changed files with 8111 additions and 12 deletions

6
.gitignore vendored
View File

@ -1,5 +1 @@
/clisp-2.49-20161111hg.tar.xz
/clisp-2.49-20161113hg.tar.xz
/clisp-2.49-20170224hg.tar.xz
/clisp-2.49.93-20180224hg.tar.xz
/clisp-d1310ad.tar.gz
/clisp-*.tar.?z

19
clisp-pari.patch Normal file
View File

@ -0,0 +1,19 @@
--- modules/pari/desc2lisp.lisp.orig 2018-07-18 17:50:36.000000000 -0600
+++ modules/pari/desc2lisp.lisp 2018-08-03 15:05:25.139224753 -0600
@@ -166,7 +166,15 @@
(setq h (car h)))
(if (and h (ext:starts-with-p h f) (setq end (search "):" h)))
;;(parse-arglist-regexp h :start (1+ (position #\( h)) :end end)
- (parse-arglist-read h :start (position #\( h) :end (1+ end))
+ (let ((l (parse-arglist-read h :start (position #\( h) :end (1+ end))))
+ (and
+ (consp l)
+ (consp (cdr l))
+ (consp (cadr l))
+ (symbolp (caadr l))
+ (equalp (symbol-name (caadr l)) "T")
+ (setf (caadr l) 'T_))
+ l)
;; (or (warn "~S: no arglist in ~S" 'desc-arglist desc) ...)
:unspecific)))

34
clisp-setkey.patch Normal file
View File

@ -0,0 +1,34 @@
--- modules/syscalls/posix.lisp.orig 2018-07-18 17:50:36.000000000 -0600
+++ modules/syscalls/posix.lisp 2018-08-01 15:54:47.410580519 -0600
@@ -72,7 +72,7 @@
(addrtype 2 :type fixnum :read-only t))
;;; ============================================================
-#+unix (export '(crypt encrypt setkey))
+#+unix (export '(crypt))
#+unix
(defstruct (user-info (:constructor
--- modules/syscalls/test.tst.orig 2018-07-18 17:50:36.000000000 -0600
+++ modules/syscalls/test.tst 2018-08-01 15:55:58.241645520 -0600
@@ -14,20 +14,6 @@ T
(> (length (show (os:service) :pretty t)) (length (os:service nil "tcp"))) T
(equalp (os:service "www" "tcp") (os:service "http" "tcp")) T
-#+unix ;; (encrypt (encrypt X t) nil) == X
-(handler-case
- (let* ((v (make-array 8 :element-type '(unsigned-byte 8))) (u (copy-seq v)))
- (loop :repeat 10 :do
- (dotimes (i 8) (setf (aref v i) (setf (aref u i) (random 256))))
- (os:setkey v) (show (os:encrypt v nil)) (show (os:encrypt v t))
- :never (if (equalp v u) nil (list v u))))
- (ext:os-error (err)
- ;; Solaris (sf cf x86-solaris1 & sparc-solaris1) encrypt fails with
- ;; "UNIX error 89 (ENOSYS): Function not implemented"
- (format t "~S: ~A" 'os:encrypt err)
- T))
-#+unix T
-
#+unix (crypt "foo" "bar") #+unix "ba4TuD1iozTxw"
;; same as "%F %T" on GNU, but more portable

View File

@ -1,4 +1,4 @@
%global commit d1310adc5aa7bb3610cd4c44c96b134bba75d405
%global commit 90b363151ce0f8a7ffd301028f92ec865807276a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# There is a plus on the end for unreleased versions, not for released versions
@ -7,16 +7,21 @@
Name: clisp
Summary: ANSI Common Lisp implementation
Version: 2.49.93
Release: 2.%{shortcommit}git%{?dist}
Release: 3.%{shortcommit}git%{?dist}
License: GPLv2+
URL: http://www.clisp.org/
# The source for this package was pulled from upstream's git repository.
Source0: https://gitlab.com/gnu-clisp/%{name}/repository/archive.tar.gz?ref=%{commit}#/%{name}-%{shortcommit}.tar.gz
# Updated translations
Source1: http://translationproject.org/latest/clisp/sv.po
# https://sourceforge.net/p/clisp/patches/35/
Patch0: %{name}-db.patch
# https://sourceforge.net/p/clisp/patches/32/
Patch1: %{name}-format.patch
# The encrypt and setkey functions are no longer available from glibc
Patch2: %{name}-setkey.patch
# Adapt to changes in pari 2.11.0
Patch3: %{name}-pari.patch
BuildRequires: dbus-devel
BuildRequires: emacs
@ -88,9 +93,7 @@ Files necessary for linking CLISP programs.
%prep
%setup -q -n %{name}-%{commit}-%{commit}
%patch0
%patch1
%autosetup -p0 -n %{name}-%{commit}-%{commit}
# Change URLs not affected by the --hyperspec argument to configure
sed -i.orig 's|lisp.org/HyperSpec/Body/chap-7.html|lispworks.com/documentation/HyperSpec/Body/07_.htm|' \
@ -119,6 +122,9 @@ tar -C modules/clx -xzf modules/clx/clx-manual.tar.gz
chmod -R go+r modules/clx/clx-manual
chmod a-x modules/clx/clx-manual/html/doc-index.cgi
# Update the translations
cp -p %{SOURCE1} src/po
%build
ulimit -s unlimited
export LC_ALL=C.UTF-8
@ -393,6 +399,9 @@ ln -s ../../src/modules.c build/full/modules.c
%changelog
* Fri Aug 10 2018 Jerry James <loganjerry@gmail.com> - 2.49.93-3.90b3631git
- Update to latest git snapshot for bug fixes
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.49.93-2.d1310adgit
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (clisp-d1310ad.tar.gz) = be315220e63c4996fc761caca36f0f3db2a3538e842449257628c988da90bce4d1b7a5561f065e33e17eb8b434f90da508c664d9e3d31b158d58ca54e8a6de38
SHA512 (clisp-90b3631.tar.gz) = 29a31f42afe6fc2350a3ba51bb74801ce13f23d9b7213be04cdca1fac0695bb98cff0dd304146c08fbbfa832eb502b2d6b73e7974edbd560b1ab042c6298eb2e

8041
sv.po Normal file

File diff suppressed because it is too large Load Diff