[packages/librep] Up to 0.92.7
arekm
arekm at pld-linux.org
Thu Nov 26 09:20:58 CET 2026
commit 63426305e7446fbeb9bf28e3301a3278fd26666a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 26 01:23:12 2026 +0100
Up to 0.92.7
librep-configure-probes.patch | 53 ++++++++++++++++++++++++++++++++++++++++++
librep-dont_inline_fcons.patch | 12 ----------
librep.spec | 18 ++++++++------
3 files changed, 64 insertions(+), 19 deletions(-)
---
diff --git a/librep.spec b/librep.spec
index ddd23c5..09260f6 100644
--- a/librep.spec
+++ b/librep.spec
@@ -5,19 +5,19 @@ Summary(pt_BR.UTF-8): Ambiente LISP embutível
Summary(ru.UTF-8): Встраиваемая среда LISP
Summary(uk.UTF-8): Вбудовуване середовище LISP
Name: librep
-Version: 0.92.3
-Release: 7
+Version: 0.92.7
+Release: 1
Epoch: 1
License: GPL
Group: Development/Languages
-Source0: http://download.tuxfamily.org/librep/%{name}-%{version}.tar.xz
-# Source0-md5: c82744fb45022e8a06e488e4a7513558
+Source0: https://download.tuxfamily.org/librep/%{name}_%{version}.tar.xz
+# Source0-md5: 036195b371006848e29ed6f50ddc8475
Patch0: %{name}-info.patch
Patch1: %{name}-no_version.patch
Patch2: %{name}-longdouble.patch
Patch3: %{name}-config.patch
Patch4: %{name}-am18.patch
-Patch5: %{name}-dont_inline_fcons.patch
+Patch5: %{name}-configure-probes.patch
URL: http://librep.sourceforge.net/
BuildRequires: autoconf >= 2.3-12
BuildRequires: automake
@@ -146,9 +146,9 @@ librep. Librep - это встраиваемый диалект LISP.
Librep - це вбудовуваний діалект LISP.
%prep
-%setup -q
+%setup -q -n %{name}_%{version}
%patch -P0 -p1
-%{__sed} -i "s@\(rep\(common\|\)execdir='[^']*\)@\1/%{_host}@" configure.in
+%{__sed} -i "s@\(rep\(common\|\)execdir='[^']*\)@\1/%{_host}@" configure.ac
# %%patch1 -p1
# %%patch2 -p1
# %%patch3 -p1
@@ -160,7 +160,9 @@ cp -f /usr/share/automake/config.* .
%{__libtoolize}
%{__aclocal}
%{__autoconf}
+# K&R style function pointer declarations, C23 treats () as (void)
%configure \
+ CFLAGS="%{rpmcflags} -std=gnu17" \
--enable-static
%{__make} \
host_type=%{_host}
@@ -173,6 +175,8 @@ rm -rf $RPM_BUILD_ROOT
aclocaldir=%{_aclocaldir} \
host_type=%{_host}
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+
# remove useless static plugins
# *.la can be used to load plugins and may contain additional information
rm -f $RPM_BUILD_ROOT%{_libexecdir}/{,rep}/%{_host}/{,rep}/{,*{,/*}}/*.a
diff --git a/librep-configure-probes.patch b/librep-configure-probes.patch
new file mode 100644
index 0000000..39d4b9e
--- /dev/null
+++ b/librep-configure-probes.patch
@@ -0,0 +1,53 @@
+--- librep_0.92.7.orig/configure.ac
++++ librep_0.92.7/configure.ac
+@@ -432,15 +432,18 @@
+ as a pointer. [TYPE=<probed>] (see README)], [],
+ [with_value_type="undef"])
+ if test "${with_value_type}" = "undef"; then
+- AC_TRY_RUN([main () { exit (!(sizeof (int) >= sizeof (void *)));}],
++ AC_TRY_RUN([#include <stdlib.h>
++ int main (void) { exit (!(sizeof (int) >= sizeof (void *)));}],
+ [with_value_type=int])
+ fi
+ if test "${with_value_type}" = "undef"; then
+- AC_TRY_RUN([main () { exit (!(sizeof (long int) >= sizeof (void *)));}],
++ AC_TRY_RUN([#include <stdlib.h>
++ int main (void) { exit (!(sizeof (long int) >= sizeof (void *)));}],
+ [with_value_type="long int"])
+ fi
+ if test "${with_value_type}" = "undef"; then
+- AC_TRY_RUN([main () { exit (!(sizeof (long long int) >= sizeof (void *)));}],
++ AC_TRY_RUN([#include <stdlib.h>
++ int main (void) { exit (!(sizeof (long long int) >= sizeof (void *)));}],
+ [with_value_type="long long int"])
+ fi
+ if test "${with_value_type}" = "undef"; then
+@@ -457,10 +460,11 @@
+ if test "${with_value_sizeof}" = "undef"; then
+ dnl the following fragment is inspired by AC_CHECK_SIZEOF
+ AC_TRY_RUN([#include <stdio.h>
+- main () {
++ #include <stdlib.h>
++ int main (void) {
+ FILE *f = fopen ("conftestval", "w");
+ if (!f) exit (1);
+- fprintf (f, "%d\n", sizeof (${with_value_type}));
++ fprintf (f, "%d\n", (int) sizeof (${with_value_type}));
+ exit (0);
+ }],
+ [ with_value_sizeof=`cat conftestval`; rm -f conftestval])
+@@ -548,11 +552,12 @@
+ esac
+ fi
+ if test "${with_stack_direction}" = unknown; then
+- AC_TRY_RUN([ int level = 1;
++ AC_TRY_RUN([ #include <stdlib.h>
++ int level = 1;
+ void inner (char *foo) { char bar;
+ if (level) { --level; inner (foo); }
+ exit (!(foo >= &bar)); }
+- void main () { char foo; inner (&foo); } ],
++ int main (void) { char foo; inner (&foo); return 0; } ],
+ [AC_MSG_RESULT([downwards])
+ with_stack_direction=-1],
+ [AC_MSG_RESULT([upwards])
diff --git a/librep-dont_inline_fcons.patch b/librep-dont_inline_fcons.patch
deleted file mode 100644
index 24dc23c..0000000
--- a/librep-dont_inline_fcons.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur librep_0.92.5.orig/src/repint.h librep_0.92.5/src/repint.h
---- librep_0.92.5.orig/src/repint.h 2015-03-23 19:02:50.000000000 +0200
-+++ librep_0.92.5/src/repint.h 2015-06-25 11:19:58.507815822 +0300
-@@ -243,7 +243,7 @@
- /* If using GCC, make inline_Fcons be Fcons that only takes a procedure
- call when the heap needs to grow. */
-
--#if defined __GNUC__ && defined __OPTIMIZE__
-+#if defined __GNUC__ && defined __OPTIMIZE__ && 0
- extern __inline__ repv inline_Fcons (repv x, repv y);
- extern __inline__ repv
- inline_Fcons (repv x, repv y)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/librep.git/commitdiff/63426305e7446fbeb9bf28e3301a3278fd26666a
More information about the pld-cvs-commit
mailing list