Sync from SUSE:SLFO:Main guile revision 5f64d1285203121e8468e741a0c32c8c

This commit is contained in:
Adrian Schröter 2024-05-03 13:29:28 +02:00
commit c9c7aad757
13 changed files with 1719 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

7
_constraints Normal file
View File

@ -0,0 +1,7 @@
<constraints>
<hardware>
<memory>
<size unit="G">2</size>
</memory>
</hardware>
</constraints>

View File

@ -0,0 +1,11 @@
--- a/stage0/Makefile.am
+++ b/stage0/Makefile.am
@@ -22,7 +22,7 @@
GUILE_WARNINGS = -W0
-GUILE_OPTIMIZATIONS = -O1
+GUILE_OPTIMIZATIONS = -O1 $(if $(filter 32-bit-big-endian, $(SCM_PREBUILT_BINARIES)),-Oresolve-primitives -Ocps)
GUILE_BOOTSTRAP_STAGE = stage0
include $(top_srcdir)/am/bootstrap.am

View File

@ -0,0 +1,32 @@
diff -Nur guile-3.0.7/test-suite/standalone/Makefile.am new/test-suite/standalone/Makefile.am
--- guile-3.0.7/test-suite/standalone/Makefile.am 2021-05-10 10:07:12.000000000 +0200
+++ new/test-suite/standalone/Makefile.am 2021-05-15 13:52:39.130407172 +0200
@@ -298,7 +298,4 @@
check_SCRIPTS += test-stack-overflow
TESTS += test-stack-overflow
-check_SCRIPTS += test-out-of-memory
-TESTS += test-out-of-memory
-
EXTRA_DIST += ${check_SCRIPTS}
diff -Nur guile-3.0.7/test-suite/standalone/Makefile.in new/test-suite/standalone/Makefile.in
--- guile-3.0.7/test-suite/standalone/Makefile.in 2021-05-10 10:30:31.000000000 +0200
+++ new/test-suite/standalone/Makefile.in 2021-05-15 13:53:17.370706370 +0200
@@ -106,7 +106,7 @@
test-scm-c-bind-keyword-arguments$(EXEEXT) \
test-srfi-4$(EXEEXT) $(am__append_6) $(am__EXEEXT_1) \
test-smob-mark$(EXEEXT) test-smob-mark-race$(EXEEXT) \
- test-stack-overflow test-out-of-memory
+ test-stack-overflow
check_PROGRAMS = test-num2integral$(EXEEXT) test-round$(EXEEXT) \
test-foreign-object-c$(EXEEXT) test-list$(EXEEXT) \
test-unwind$(EXEEXT) test-conversion$(EXEEXT) \
@@ -2147,7 +2147,7 @@
test-language test-guild-compile test-signal-fork \
$(am__append_3) test-foreign-object-scm test-fast-slot-ref \
test-mb-regexp test-use-srfi $(am__append_5) \
- test-stack-overflow test-out-of-memory
+ test-stack-overflow
BUILT_SOURCES = $(am__append_2)
EXTRA_DIST = test-import-order-a.scm test-import-order-b.scm \
test-import-order-c.scm test-import-order-d.scm \

View File

@ -0,0 +1,22 @@
diff --git a/test-suite/tests/numbers.test b/test-suite/tests/numbers.test
index 59e370e..6b07655 100644
--- a/test-suite/tests/numbers.test
+++ b/test-suite/tests/numbers.test
@@ -5309,7 +5309,7 @@
d))))))))
(with-test-prefix "fractions"
- (for '((1/10 16/3 10/7)) ;; denominators
+ (for '((1/10 16/3)) ;; denominators
(lambda (d)
(for '((0 1 2 5 1/2 3/2 5/2)) ;; multiples
(lambda (m)
@@ -5319,7 +5319,7 @@
d))))))))
(with-test-prefix "mixed types"
- (for `((10 ,big 12.0 10/7 +inf.0 -inf.0 +nan.0)) ;; denominators
+ (for `((10 ,big 12.0 +inf.0 -inf.0 +nan.0)) ;; denominators
(lambda (d)
(for `((25 ,(* 3/2 big) 130.0 15/7
0 0.0 -0.0 +inf.0 -inf.0 +nan.0)) ;; numerators

View File

@ -0,0 +1,11 @@
--- guile/meta/guile-3.0.pc.in.orig 2020-01-07 12:00:08.392929733 +0100
+++ guile/meta/guile-3.0.pc.in 2020-01-07 12:00:19.241097989 +0100
@@ -22,7 +22,7 @@
Name: GNU Guile
Description: GNU's Ubiquitous Intelligent Language for Extension
Version: @GUILE_VERSION@
-Libs: -L${libdir} -lguile-@GUILE_EFFECTIVE_VERSION@ @BDW_GC_LIBS@
+Libs: -L${libdir} -lguile-@GUILE_EFFECTIVE_VERSION@
Libs.private: @LIB_CLOCK_GETTIME@ @LIBGMP@ @LIBLTDL@ @LIBFFI_LIBS@ \
@LIBUNISTRING@ @GUILE_LIBS@ @LIBICONV@ @LIBINTL@ @LIBSOCKET@ \
@SERVENT_LIB@ @HOSTENT_LIB@ @GETADDRINFO_LIB@ @INET_NTOP_LIB@ \

BIN
guile-3.0.8.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

16
guile-3.0.8.tar.xz.sig Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEET9TSiNRFk04KFPmlqIA3MuRDaIUFAmIGEqAACgkQqIA3MuRD
aIUUeg//bI8qHzbsw34ozbBi6DE6p2oBJNrW3Ag5qCgN25+ulWawjBl60AENoEy6
O3pPY0asc6aRa79ztC7Jbi5SF/qXNN+jH7H1a/t9h5LEi+cvoKds9stgSzCZqAF6
21MOulqoalD27LfxZDS9kzbbNEXLxWWLm+oYKIGge76mLHrbBpHG0cl5Jmu25mDB
vcWLc709UE3Tl2XRzz9Lz2mRpLvWqxO9DuZq6GQyxoCzbS5fQz6fbYQpbxGH9ReP
IvbZfiRJ1xjXqdw+8gdeStmXhWMx6WWN5B6FqDczlRKdDfvr96Mfvq33IF7XPT0c
+mVT0EbI7v+L4NGqfl5uLeoROpk5urmuAhT0JaQIjIqv6MfUMWb9HRDhISmxPkIB
ZCUHoV+7H7imw6CM3mGZ6vLOD2uBsRW3lepk3yx6/RAFXBSMfa04PEctHhgCYtpa
+jsSIYXblIeFmSEke6JTJ53fEDKc5m7DbIseGCvZ7XuVKm5hbcSR4sGv6xkJ7rvd
kX4n+DHgJLglCdBlqFLjPPaFmILATwwhFhjfF8wAfUD7QsxVFr3UWwOdwyCVAVTs
JrEZuwrgI032FQbqWLyhECrljMY7ZyxC3kRFI2nZCApENnBdEShoe8zp+kuNf8+l
DFibQjjW5NsDkKD2ctLg94TE75qEpWYCOU/5A53NEddVv/gjXY4=
=Ro42
-----END PGP SIGNATURE-----

3
guile-rpmlintrc Normal file
View File

@ -0,0 +1,3 @@
# guile's .go files are special
addFilter("W: shared-lib-without-dependency-information /usr/lib64/guile*")
addFilter("W: missing-PT_GNU_STACK-section /usr/lib64/guile*")

1315
guile.changes Normal file

File diff suppressed because it is too large Load Diff

77
guile.keyring Normal file
View File

@ -0,0 +1,77 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFmLEIkBEAC7U27v6jysuSadTd8WK0lTnoK4TueYHey17+KWilOXrGx80R1Q
kjIPDfQaTX76F3CQ22EeIXEYBZ858WImkrkolhEvoeJHOXkgJnib2EA6d7oXINkO
UIij5cH0GCoEuw+aU415OAHK/cv09WXeDVy7/cwfhPAUc5QmWQzOEwuaV0ERd1Mw
q3yxhiXN5wOS77TXKYNTMiXp4NdXgYwJFqO0e/POKPrzWSVqeZClh+ecXenapZDd
R120+qRtC/Kz9YwupJPz7FImAC4XOYqZXY3ILft8Y6nCj/iE8ArIsJGF+zfz0m4L
7wJfcN1gZ2sj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ZW6bSgq4LW5Mq9nL9eGlG3kidwCKXukbB2uLCS0
pRYhDiUGaZS2kr5bNwyxOYb58GhACDWZtU9LXuxtkeZzlPlSmcRwqA==
=Su8m
-----END PGP PUBLIC KEY BLOCK-----

187
guile.spec Normal file
View File

@ -0,0 +1,187 @@
#
# spec file for package guile
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# define the name used for versioning libs and directories.
%define guilemaj 3
%define guilemin 0
%define guilevers %{guilemaj}.%{guilemin}
%define libgver 1
%define gsuff %{guilemaj}_%{guilemin}-%{libgver}
Name: guile
Version: %{guilevers}.8
Release: 0
Summary: GNU's Ubiquitous Intelligent Language for Extension
License: GFDL-1.3-only AND GPL-3.0-or-later AND LGPL-3.0-or-later
Group: Development/Languages/Scheme
URL: https://www.gnu.org/software/guile/
Source0: https://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.xz
Source1: https://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.xz.sig
# key: 4FD4D288D445934E0A14F9A5A8803732E4436885 as from the release notes
Source2: %{name}.keyring
Source3: guile-rpmlintrc
# Fix the resulting /usr/lib64/pkgconfig/guile-3.0.pc
Patch0: guile-3.0-gc_pkgconfig_private.patch
# The out-of-memory test is flaky, so disable it
Patch1: disable-test-out-of-memory.patch
Patch2: gcc10-x86-disable-one-test.patch
Patch3: adjust-32bit-big-endian-build-flags.patch
# do sequential build for reproducible .go files = https://issues.guix.gnu.org/issue/20272 - boo#1102408
Patch4: stage2-serialize.patch
BuildRequires: gmp-devel
BuildRequires: libffi-devel
BuildRequires: libltdl-devel
BuildRequires: libunistring-devel
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: pkgconfig(bdw-gc)
Requires(pre): fileutils
Requires(pre): sh-utils
%description
This is Guile, a portable, embeddable Scheme implementation written in
C. Guile provides a machine independent execution platform that can be
linked in as a library when building extensible programs.
%package -n libguile-%{gsuff}
Summary: GNU's Ubiquitous Intelligent Language for Extension
License: GFDL-1.3-only AND GPL-3.0-or-later AND LGPL-3.0-or-later
Group: Development/Languages/Scheme
Requires: %{name}-modules-%{guilemaj}_%{guilemin} >= %{version}
# workaround for bnc#948804
Requires: glibc-locale
%description -n libguile-%{gsuff}
This is Guile, a portable, embeddable Scheme implementation written in
C. Guile provides a machine independent execution platform that can be
linked in as a library when building extensible programs. This package
contains the shared libraries.
%package modules-%{guilemaj}_%{guilemin}
Summary: GNU's Ubiquitous Intelligent Language for Extension
License: GFDL-1.3-only AND GPL-3.0-or-later AND LGPL-3.0-or-later
Group: Development/Languages/Scheme
%description modules-%{guilemaj}_%{guilemin}
This is Guile, a portable, embeddable Scheme implementation written in
C. Guile provides a machine independent execution platform that can be
linked in as a library when building extensible programs. This package
contains guile modules.
%package devel
Summary: GNU's Ubiquitous Intelligent Language for Extension
License: LGPL-2.1-or-later
Group: Development/Languages/Scheme
Requires: gmp-devel
# following Requires needed because /usr/bin/guile-config needs /usr/bin/guile
Requires: guile = %{version}
Requires: libffi-devel
Requires: libguile-%{gsuff} = %{version}
Requires: libunistring-devel
Requires: ncurses-devel
Requires: readline-devel
Requires: pkgconfig(bdw-gc)
%description devel
This is Guile, a portable, embeddable Scheme implementation written in
C. Guile provides a machine independent execution platform that can be
linked in as a library when building extensible programs.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
# remove broken prebuilt objects
rm -r prebuilt/32-bit-big-endian
%if 0%{?qemu_user_space_build}
# QEMU ignores rlimit requests for setting RLIMIT_AS
echo exit 77 > test-suite/standalone/test-stack-overflow
%endif
%build
autoreconf -fi
%configure \
--disable-static \
--with-pic \
--enable-lto \
--with-threads \
--disable-silent-rules
%make_build
%check
LD_LIBRARY_PATH="." \
%make_build check
%install
%make_install
mkdir -p %{buildroot}%{_datadir}/guile/site
find %{buildroot} -type f -name "*.la" -delete -print
# bug #874028
mkdir -p %{buildroot}%{_datadir}/gdb/auto-load%{_libdir}
mv %{buildroot}%{_libdir}/libguile*-gdb.scm %{buildroot}%{_datadir}/gdb/auto-load%{_libdir}/
%pre
# Remove obsolete files (< SuSE Linux 10.2)
rm -f var/adm/SuSEconfig/md5%{_datadir}/guile/*/slibcat
rm -f usr/share/guile/site/slibcat.SuSEconfig
%post -n libguile-%{gsuff} -p /sbin/ldconfig
%postun -n libguile-%{gsuff} -p /sbin/ldconfig
%files
%doc ABOUT-NLS AUTHORS ChangeLog GUILE-VERSION HACKING
%doc NEWS README THANKS
%{_bindir}/guile-tools
%{_bindir}/guild
%{_bindir}/guile
%{_mandir}/man1/guile.1%{?ext_man}
%files -n libguile-%{gsuff}
%license LICENSE COPYING*
%{_libdir}/libguile-%{guilevers}.so.%{libgver}*
%files modules-%{guilemaj}_%{guilemin}
%{_libdir}/%{name}
# Own usr/share/guile/site; side effect of not doing so is slib failing to install correctly.
%{_datadir}/%{name}
%files devel
%{_bindir}/guile-snarf
%{_bindir}/guile-config
%dir %{_includedir}/%{name}
%dir %{_includedir}/%{name}/%{guilevers}
%{_includedir}/%{name}/%{guilevers}/*
%{_datadir}/aclocal/guile.m4
%{_infodir}/%{name}.info%{?ext_info}
%{_infodir}/%{name}.info-[0-9]%{ext_info}
%{_infodir}/%{name}.info-1[0-9]%{ext_info}
%{_infodir}/r5rs.info%{?ext_info}
%{_libdir}/libguile-%{guilevers}.so
%{_libdir}/pkgconfig/guile-%{guilevers}.pc
# bug #874028
%dir %{_datadir}/gdb
%dir %{_datadir}/gdb/auto-load
%dir %{_datadir}/gdb/auto-load%{_prefix}
%dir %{_datadir}/gdb/auto-load/%{_libdir}
%{_datadir}/gdb/auto-load/%{_libdir}/libguile*-gdb.scm
%changelog

12
stage2-serialize.patch Normal file
View File

@ -0,0 +1,12 @@
Index: guile-3.0.8/stage2/Makefile.am
===================================================================
--- guile-3.0.8.orig/stage2/Makefile.am
+++ guile-3.0.8/stage2/Makefile.am
@@ -21,6 +21,7 @@
## Fifth Floor, Boston, MA 02110-1301 USA
+.NOTPARALLEL:
GUILE_WARNINGS = -W1
GUILE_OPTIMIZATIONS = -O2
GUILE_BOOTSTRAP_STAGE = stage2