Accepting request 812587 from home:plater:lilypond
- Fix build with gcc10 by removing optimization from the build flags Thanks to the lilypond devs. OBS-URL: https://build.opensuse.org/request/show/812587 OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/guile1?expand=0&rev=38
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jun 7 07:16:07 UTC 2020 - Dave Plater <davejplater@gmail.com>
|
Mon Jun 8 12:03:54 UTC 2020 - Dave Plater <davejplater@gmail.com>
|
||||||
|
|
||||||
- Fix build against gcc10 with -fcommon flag.
|
- Fix build with gcc10 by removing optimization from the build flags
|
||||||
|
Thanks to the lilypond devs.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 23 12:19:17 UTC 2019 - Dave Plater <davejplater@gmail.com>
|
Sat Nov 23 12:19:17 UTC 2019 - Dave Plater <davejplater@gmail.com>
|
||||||
|
12
guile1.spec
12
guile1.spec
@@ -24,6 +24,7 @@ Summary: GNU's Ubiquitous Intelligent Language for Extension
|
|||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
Group: Development/Languages/Scheme
|
Group: Development/Languages/Scheme
|
||||||
URL: https://www.gnu.org/software/guile/
|
URL: https://www.gnu.org/software/guile/
|
||||||
|
#https://github.com/texmacs/guile/archive/texmacs.zip
|
||||||
Source0: https://ftp.gnu.org/gnu/guile/guile-%{version}.tar.gz
|
Source0: https://ftp.gnu.org/gnu/guile/guile-%{version}.tar.gz
|
||||||
Source1: https://ftp.gnu.org/gnu/guile/guile-%{version}.tar.gz.sig
|
Source1: https://ftp.gnu.org/gnu/guile/guile-%{version}.tar.gz.sig
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
@@ -169,7 +170,14 @@ sed -i s/-Werror// configure.in configure
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
export CFLAGS="%{optflags} -fcommon"
|
# NOTE: GCC 10 succeeds in rewriting a
|
||||||
|
#particular tail call into jumps. This avoids stack frames from the
|
||||||
|
#recursive call which the check relies on. Funnily enough, a comment
|
||||||
|
#says: "If the code could be inlined, that might cause the test to give
|
||||||
|
#an incorrect answer." - indeed.
|
||||||
|
# As a result the guile executable causes a segfault when built with -02
|
||||||
|
export CFLAGS="`echo %optflags|tr 02 00`"
|
||||||
|
echo $CFLAGS
|
||||||
sed -i "s:GUILE_:GUILE1_:" guile-config/guile.m4
|
sed -i "s:GUILE_:GUILE1_:" guile-config/guile.m4
|
||||||
sed -i "s:guile:guile1:" guile-config/guile.m4
|
sed -i "s:guile:guile1:" guile-config/guile.m4
|
||||||
# automake 1.13: do not run test simultaneously
|
# automake 1.13: do not run test simultaneously
|
||||||
@@ -182,7 +190,7 @@ autoreconf -fi
|
|||||||
--with-pic \
|
--with-pic \
|
||||||
--with-threads \
|
--with-threads \
|
||||||
--program-transform-name="s:guile:%{binpref}:"
|
--program-transform-name="s:guile:%{binpref}:"
|
||||||
make %{?_smp_mflags}
|
make --trace %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# 47 of 11930 tests are failing now
|
# 47 of 11930 tests are failing now
|
||||||
|
Reference in New Issue
Block a user