Add -no-inline patch to workaround bz 2049371 (ppc64le segfault).
This commit is contained in:
parent
1bfa025e15
commit
ac57db4226
2 changed files with 23 additions and 4 deletions
12
clisp-no-inline.patch
Normal file
12
clisp-no-inline.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
--- src/makemake.in.orig 2021-06-28 14:32:42.000000000 -0600
|
||||
+++ src/makemake.in 2022-02-02 19:48:37.880723176 -0700
|
||||
@@ -3055,6 +3055,9 @@ for f in $CPARTS genclisph modules $EXTR
|
||||
# "1252-171 The displacement must be greater than or equal to -32768 and less than or equal to 32767."
|
||||
flags2=$flags2' -O1'
|
||||
fi
|
||||
+ if [ $f = foreign ] && [[ $HSYS =~ ppc64le ]] ; then
|
||||
+ flags2=$flags2' -fno-inline-small-functions'
|
||||
+ fi
|
||||
echol "${f}.i : ${c}${dependsc}"
|
||||
echotab "${XCPP} ${flags} ${c} > ${f}.i"
|
||||
echol
|
||||
15
clisp.spec
15
clisp.spec
|
|
@ -7,6 +7,9 @@
|
|||
# There is a plus on the end for unreleased versions, not for released versions
|
||||
%global instdir %{name}-%{version}+
|
||||
|
||||
# This package uses toplevel ASMs which are incompatible with LTO
|
||||
%global _lto_cflags %{nil}
|
||||
|
||||
Name: clisp
|
||||
Summary: ANSI Common Lisp implementation
|
||||
Version: 2.49.93
|
||||
|
|
@ -35,6 +38,9 @@ Patch3: %{name}-register-volatile.patch
|
|||
# Perhaps we are racing with something else that allocates a pty. Disable
|
||||
# the test for now.
|
||||
Patch4: %{name}-pts-access.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
|
||||
|
||||
BuildRequires: dbus-devel
|
||||
BuildRequires: diffutils
|
||||
|
|
@ -136,9 +142,6 @@ chmod a-x modules/clx/clx-manual/html/doc-index.cgi
|
|||
sed -i 's/9090/9096/g' tests/socket.tst
|
||||
|
||||
%build
|
||||
# This package uses toplevel ASMs which are incompatible with LTO
|
||||
%define _lto_cflags %{nil}
|
||||
|
||||
export LC_ALL=C.UTF-8
|
||||
|
||||
# Do not need to specify base modules: i18n, readline, regexp, syscalls.
|
||||
|
|
@ -171,7 +174,7 @@ export LC_ALL=C.UTF-8
|
|||
--config \
|
||||
build \
|
||||
CPPFLAGS="-I/usr/include/libsvm" \
|
||||
CFLAGS="%{optflags} -Wa,--noexecstack" \
|
||||
CFLAGS="%{build_cflags} -Wa,--noexecstack" \
|
||||
LDFLAGS="-Wl,--as-needed -Wl,-z,relro -Wl,-z,noexecstack"
|
||||
|
||||
cd build
|
||||
|
|
@ -273,6 +276,7 @@ ln -s ../../src/modules.c build/base/modules.c
|
|||
ln -s ../../src/modules.c build/full/modules.c
|
||||
|
||||
%check
|
||||
export LC_ALL=C.UTF-8
|
||||
make -C build check
|
||||
make -C build extracheck
|
||||
make -C build base-mod-check
|
||||
|
|
@ -419,6 +423,9 @@ make -C build base-mod-check
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Feb 3 2022 Jerry James <loganjerry@gmail.com> - 2.49.93-23
|
||||
- Add -no-inline patch to workaround bz 2049371 (ppc64le segfault)
|
||||
|
||||
* Fri Jan 28 2022 Jerry James <loganjerry@gmail.com> - 2.49.93-23
|
||||
- Add -pts-access patch to fix FTBFS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue