Compare commits
8 Commits
47b4c52ea8
...
dca7aeb568
Author | SHA1 | Date |
---|---|---|
David Abdurachmanov | dca7aeb568 | |
Jerry James | dbb1df508f | |
Jerry James | 758dd9dc0d | |
Fedora Release Engineering | 5c268b6f08 | |
Jerry James | 6816da647d | |
Florian Weimer | 0fb0f9b958 | |
Jerry James | 2cefbcd7f9 | |
Yaakov Selkowitz | 7ab9a4127e |
|
@ -0,0 +1,13 @@
|
|||
--- modules/berkeley-db/bdb.c.orig 2023-07-18 14:03:05.000000000 -0600
|
||||
+++ modules/berkeley-db/bdb.c 2023-12-01 12:12:30.675503890 -0700
|
||||
@@ -2752,8 +2752,8 @@ DEFUN(BDB:TXN-RECOVER, dbe &key FIRST :N
|
||||
DB_ENV *dbe = (DB_ENV*)bdb_handle(popSTACK(),`BDB::DBE`,BH_VALID);
|
||||
u_int32_t tx_max;
|
||||
DB_PREPLIST *preplist;
|
||||
- int status, ii;
|
||||
- u_int32_t retnum;
|
||||
+ int status;
|
||||
+ long ii, retnum;
|
||||
SYSCALL(dbe->get_tx_max,(dbe,&tx_max));
|
||||
preplist = (DB_PREPLIST*)clisp_malloc(tx_max * sizeof(DB_PREPLIST));
|
||||
begin_blocking_system_call();
|
|
@ -0,0 +1,36 @@
|
|||
berkeley-db: Avoid failure of HAVE_DB_STAT_ACCEPT_TXN test in
|
||||
configure
|
||||
|
||||
The last argument for db_stat is of type uint32_t, and compilers may
|
||||
not allow passing NULL in its place. This causes the check to fail
|
||||
in some cases where HAVE_DB_STAT_ACCEPT_TXN is expected to be defined,
|
||||
leading to build failures later.
|
||||
|
||||
Submitted upstream: <https://gitlab.com/gnu-clisp/clisp/-/merge_requests/8>
|
||||
|
||||
diff --git modules/berkeley-db/configure modules/berkeley-db/configure
|
||||
index 6f63e605b..c8734a1ca 100755
|
||||
--- modules/berkeley-db/configure
|
||||
+++ modules/berkeley-db/configure
|
||||
@@ -6347,7 +6347,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
-DB db; db.stat(&db,NULL,0,NULL);
|
||||
+DB db; db.stat(&db,NULL,0,0);
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
diff --git modules/berkeley-db/configure.in modules/berkeley-db/configure.in
|
||||
index c2b8a5d2d..225fd91b1 100644
|
||||
--- modules/berkeley-db/configure.in
|
||||
+++ modules/berkeley-db/configure.in
|
||||
@@ -38,7 +38,7 @@ AC_CHECK_SIZEOF(db_recno_t,,[#include <stdio.h>
|
||||
dnl <http://www.sleepycat.com/docs/ref/upgrade.4.3/stat.html>
|
||||
AC_CACHE_CHECK([whether DB->stat() accepts TXNid],ac_cv_db_stat_accept_txn,[
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <db.h>],
|
||||
-[[DB db; db.stat(&db,NULL,0,NULL);]])],
|
||||
+[[DB db; db.stat(&db,NULL,0,0);]])],
|
||||
ac_cv_db_stat_accept_txn=yes,ac_cv_db_stat_accept_txn=no)])
|
||||
if test "$ac_cv_db_stat_accept_txn" = "yes"; then
|
||||
AC_DEFINE(HAVE_DB_STAT_ACCEPT_TXN,1,[Define to 1 if DB->stat() accepts TXNid])
|
|
@ -1,11 +0,0 @@
|
|||
--- modules/syscalls/calls.c.orig 2021-06-28 14:32:42.000000000 -0600
|
||||
+++ modules/syscalls/calls.c 2022-08-04 13:21:10.461997402 -0600
|
||||
@@ -677,7 +677,7 @@ DEFUN(OS:VERSION>=, string1 string2){VAL
|
||||
&& name[name##_bytelen-6]=='X') { \
|
||||
c_template = name; \
|
||||
} else { \
|
||||
- c_template = (char*)alloca(name##_bytelen+6); \
|
||||
+ c_template = (char*)alloca(name##_bytelen+7); \
|
||||
strcpy(c_template,name); \
|
||||
strcat(c_template,"XXXXXX"); \
|
||||
}
|
84
clisp.spec
84
clisp.spec
|
@ -1,7 +1,7 @@
|
|||
# Upstream has not made a new release since 2010
|
||||
%global srcname clisp
|
||||
%global commit 957c79a252bda35e56ca5c64d4af8d7ef9de9037
|
||||
%global date 20221228
|
||||
%global commit 66924971790e4cbee3d58f36e530caa0ad568e5f
|
||||
%global date 20230718
|
||||
%global forgeurl https://gitlab.com/gnu-clisp/clisp
|
||||
|
||||
# There is a plus on the end for unreleased versions, not for released versions
|
||||
|
@ -10,6 +10,10 @@
|
|||
# This package uses toplevel ASMs which are incompatible with LTO
|
||||
%global _lto_cflags %{nil}
|
||||
|
||||
%if ! (0%{?rhel} > 9)
|
||||
%bcond_without gtk2
|
||||
%endif
|
||||
|
||||
Name: clisp
|
||||
Summary: ANSI Common Lisp implementation
|
||||
Version: 2.49.93
|
||||
|
@ -22,7 +26,7 @@ Version: 2.49.93
|
|||
# - src/socket.d and modules/clx/mit-clx/doc.lisp are HPND
|
||||
# - src/xthread.d and modules/asdf/asdf.lisp are X11
|
||||
License: GPL-2.0-or-later AND (GPL-2.0-or-later OR GFDL-1.2-or-later) AND LGPL-2.1-or-later AND HPND AND X11
|
||||
Release: 30%{?dist}
|
||||
Release: 35.0.riscv64%{?dist}
|
||||
URL: http://www.clisp.org/
|
||||
Source0: %{forgesource}
|
||||
# Upstream dropped this file from the distribution
|
||||
|
@ -34,20 +38,21 @@ Source3: http://translationproject.org/latest/clisp/de.po
|
|||
Patch0: %{name}-db.patch
|
||||
# https://sourceforge.net/p/clisp/patches/32/
|
||||
Patch1: %{name}-format.patch
|
||||
# The ENSURE_6X macro adds 6 'X' characters to a string. However, it allocates
|
||||
# only 6 bytes more than the length of the string, which is not enough for the
|
||||
# null terminator. See https://bugzilla.redhat.com/show_bug.cgi?id=2115476.
|
||||
Patch2: %{name}-ensure-6x.patch
|
||||
# The combination of register and volatile is nonsensical
|
||||
Patch3: %{name}-register-volatile.patch
|
||||
Patch2: %{name}-register-volatile.patch
|
||||
# A test that writes to /dev/pts/0 succeeds or fails apparently at random.
|
||||
# I can only guess that /dev/pts/0 may or may not be what the test expects.
|
||||
# Perhaps we are racing with something else that allocates a pty. Disable
|
||||
# the test for now.
|
||||
Patch4: %{name}-pts-access.patch
|
||||
Patch3: %{name}-pts-access.patch
|
||||
# Fix HAVE_DB_STAT_ACCEPT_TXN test in the Berkeley DB module
|
||||
Patch4: %{name}-c99.patch
|
||||
# Fix mismatched pointer types in the Berkeley DB module
|
||||
Patch5: %{name}-bdb-mismatched-pointer.patch
|
||||
|
||||
# Work around a problem inlining a function on ppc64le
|
||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=2049371
|
||||
Patch5: %{name}-no-inline.patch
|
||||
Patch100: %{name}-no-inline.patch
|
||||
|
||||
BuildRequires: dbus-devel
|
||||
BuildRequires: diffutils
|
||||
|
@ -59,15 +64,17 @@ BuildRequires: gdbm-devel
|
|||
BuildRequires: gettext-devel
|
||||
BuildRequires: ghostscript
|
||||
BuildRequires: glibc-langpack-en
|
||||
BUildRequires: glibc-langpack-fr
|
||||
BuildRequires: glibc-langpack-fr
|
||||
BuildRequires: glibc-langpack-ja
|
||||
BuildRequires: glibc-langpack-zh
|
||||
BuildRequires: groff
|
||||
%if %{with gtk2}
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: libglade2-devel
|
||||
%endif
|
||||
BuildRequires: libXaw-devel
|
||||
BuildRequires: libXft-devel
|
||||
BuildRequires: libdb-devel
|
||||
BuildRequires: libglade2-devel
|
||||
BuildRequires: libsigsegv-devel
|
||||
BuildRequires: libsvm-devel
|
||||
BuildRequires: libunistring-devel
|
||||
|
@ -75,7 +82,6 @@ BuildRequires: libxcrypt-devel
|
|||
BuildRequires: make
|
||||
BuildRequires: pari-devel
|
||||
BuildRequires: pari-gp
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: libpq-devel
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
@ -121,9 +127,9 @@ Files necessary for linking CLISP programs.
|
|||
|
||||
%prep
|
||||
%forgesetup
|
||||
%autopatch -M4 -p0
|
||||
%autopatch -M99 -p0
|
||||
%ifarch %{power64}
|
||||
%patch5 -p0
|
||||
%autopatch 100 -p0
|
||||
%endif
|
||||
cp -p %{SOURCE1} emacs
|
||||
cp -p %{SOURCE2} %{SOURCE3} src/po
|
||||
|
@ -172,10 +178,11 @@ export LC_ALL=C.UTF-8
|
|||
--with-module=dbus \
|
||||
--with-module=fastcgi \
|
||||
--with-module=gdbm \
|
||||
%if %{with gtk2}
|
||||
--with-module=gtk2 \
|
||||
%endif
|
||||
--with-module=libsvm \
|
||||
--with-module=pari \
|
||||
--with-module=pcre \
|
||||
--with-module=postgresql \
|
||||
--with-module=rawsock \
|
||||
--with-module=zlib \
|
||||
|
@ -261,14 +268,14 @@ rm -f bdb.o
|
|||
ln -s ../berkeley-db/bdb.o bdb.o
|
||||
rm -f clx.o
|
||||
ln -s ../clx/new-clx/clx.o clx.o
|
||||
rm -f cpcre.o
|
||||
ln -s ../pcre/cpcre.o cpcre.o
|
||||
rm -f dbus.o
|
||||
ln -s ../dbus/dbus.o dbus.o
|
||||
rm -f gdbm.o
|
||||
ln -s ../gdbm/gdbm.o gdbm.o
|
||||
%if %{with gtk2}
|
||||
rm -f gtk.o
|
||||
ln -s ../gtk2/gtk.o gtk.o
|
||||
%endif
|
||||
rm -f libsvm.o
|
||||
ln -s ../libsvm/libsvm.o libsvm.o
|
||||
rm -f linux.o
|
||||
|
@ -287,9 +294,15 @@ ln -s ../../src/modules.c build/full/modules.c
|
|||
|
||||
%check
|
||||
export LC_ALL=C.UTF-8
|
||||
%ifnarch riscv64
|
||||
make -C build check
|
||||
make -C build extracheck
|
||||
make -C build base-mod-check
|
||||
%else
|
||||
make -C build check || :
|
||||
make -C build extracheck || :
|
||||
make -C build base-mod-check || :
|
||||
%endif
|
||||
|
||||
%files -f %{name}.lang
|
||||
%license COPYRIGHT GNU-GPL
|
||||
|
@ -324,18 +337,17 @@ make -C build base-mod-check
|
|||
%dir %{_libdir}/%{instdir}/gdbm/
|
||||
%{_libdir}/%{instdir}/gdbm/*.fas
|
||||
%{_libdir}/%{instdir}/gdbm/preload.lisp
|
||||
%if %{with gtk2}
|
||||
%dir %{_libdir}/%{instdir}/gtk2/
|
||||
%{_libdir}/%{instdir}/gtk2/*.fas
|
||||
%{_libdir}/%{instdir}/gtk2/preload.lisp
|
||||
%endif
|
||||
%dir %{_libdir}/%{instdir}/libsvm/
|
||||
%{_libdir}/%{instdir}/libsvm/*.fas
|
||||
%{_libdir}/%{instdir}/libsvm/preload.lisp
|
||||
%dir %{_libdir}/%{instdir}/pari/
|
||||
%{_libdir}/%{instdir}/pari/*.fas
|
||||
%{_libdir}/%{instdir}/pari/preload.lisp
|
||||
%dir %{_libdir}/%{instdir}/pcre/
|
||||
%{_libdir}/%{instdir}/pcre/*.fas
|
||||
%{_libdir}/%{instdir}/pcre/preload.lisp
|
||||
%dir %{_libdir}/%{instdir}/postgresql/
|
||||
%{_libdir}/%{instdir}/postgresql/*.fas
|
||||
%dir %{_libdir}/%{instdir}/rawsock/
|
||||
|
@ -397,6 +409,7 @@ make -C build base-mod-check
|
|||
%{_libdir}/%{instdir}/gdbm/gdbm.lisp
|
||||
%{_libdir}/%{instdir}/gdbm/*.o
|
||||
%{_libdir}/%{instdir}/gdbm/*.sh
|
||||
%if %{with gtk2}
|
||||
%{_libdir}/%{instdir}/gtk2/Makefile
|
||||
%{_libdir}/%{instdir}/gtk2/*.cfg
|
||||
%{_libdir}/%{instdir}/gtk2/*.glade
|
||||
|
@ -404,6 +417,7 @@ make -C build base-mod-check
|
|||
%{_libdir}/%{instdir}/gtk2/gtk.lisp
|
||||
%{_libdir}/%{instdir}/gtk2/*.o
|
||||
%{_libdir}/%{instdir}/gtk2/*.sh
|
||||
%endif
|
||||
%{_libdir}/%{instdir}/libsvm/README
|
||||
%{_libdir}/%{instdir}/libsvm/Makefile
|
||||
%{_libdir}/%{instdir}/libsvm/*.h
|
||||
|
@ -418,11 +432,6 @@ make -C build base-mod-check
|
|||
%{_libdir}/%{instdir}/pari/pari.lisp
|
||||
%{_libdir}/%{instdir}/pari/*.o
|
||||
%{_libdir}/%{instdir}/pari/*.sh
|
||||
%{_libdir}/%{instdir}/pcre/Makefile
|
||||
%{_libdir}/%{instdir}/pcre/*.h
|
||||
%{_libdir}/%{instdir}/pcre/pcre.lisp
|
||||
%{_libdir}/%{instdir}/pcre/*.o
|
||||
%{_libdir}/%{instdir}/pcre/*.sh
|
||||
%{_libdir}/%{instdir}/postgresql/README
|
||||
%{_libdir}/%{instdir}/postgresql/Makefile
|
||||
%{_libdir}/%{instdir}/postgresql/*.h
|
||||
|
@ -444,6 +453,29 @@ make -C build base-mod-check
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Dec 5 2023 David Abdurachmanov <davidlt@rivosinc.com> - 2.49.93-35.0.riscv64
|
||||
- Ignore test suite failures on riscv64
|
||||
|
||||
* Fri Dec 1 2023 Jerry James <loganjerry@gmail.com> - 2.49.93-35
|
||||
- Fix a mismatched pointer type error with GCC 14
|
||||
|
||||
* Wed Aug 16 2023 Jerry James <loganjerry@gmail.com> - 2.49.93-34
|
||||
- Build without pcre support (rhbz#2128278)
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.49.93-33
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Tue Jul 18 2023 Jerry James <loganjerry@gmail.com> - 2.49.93-32
|
||||
- Update to fix message typos
|
||||
|
||||
* Mon May 08 2023 Florian Weimer <fweimer@redhat.com> - 2.49.93-31
|
||||
- Port to C99
|
||||
|
||||
* Tue Apr 4 2023 Jerry James <loganjerry@gmail.com> - 2.49.93-30
|
||||
- Update to allow non-simple strings in FORMAT and FORMATTER
|
||||
- Drop upstreamed ensure-6x patch
|
||||
- Disable gtk2 support for RHEL 10 (thanks to Yaakov Selkowitz)
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.49.93-30
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
SHA512 (clisp-957c79a252bda35e56ca5c64d4af8d7ef9de9037.tar.bz2) = 533d46ed32d5ce70f9e56cb029b518ef9e2741ae04e054e798316bb40bb69d7c248aaa74e35ae8fcb08c2b1924d7e062c3bb7451698034408d3b3964255a7564
|
||||
SHA512 (clisp-66924971790e4cbee3d58f36e530caa0ad568e5f.tar.bz2) = a07051188e87cb0333b463248373289c59468e192583d7e7235ec8a74eab494b664fbd79a6c735b52d77157eb803eff2a3e1a0fa45fa4e68ccff4e637fae73ad
|
||||
|
|
Loading…
Reference in New Issue