try another fix by disabling calling ./autogen.sh (see note in %prep) and using released tarball [release 3.4.2-3mamba;Fri Jan 28 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 04:14:49 +01:00
parent dc15131e58
commit aa3c567ecb

View File

@ -1,20 +1,24 @@
Name: libffi
Epoch: 1
Version: 3.4.2
Release: 1mamba
Release: 3mamba
Summary: A Portable Foreign Function Interface Library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sourceware.org/libffi/
Source: https://github.com/libffi/libffi.git/v%{version}/libffi-%{version}.tar.bz2
Source: https://github.com/libffi/libffi/releases/download/v%{version}/libffi-%{version}.tar.gz
#Source: https://github.com/libffi/libffi.git/v%{version}/libffi-%{version}.tar.bz2
License: MIT
Requires(post):%{__install_info}
## AUTOBUILDREQ-BEGIN
#ld-linux.so.3(GLIBC_2.4): .so link not found
#ld-linux.so.3: .so link not found
BuildRequires: glibc-devel
BuildRequires: libgcc
## AUTOBUILDREQ-END
Obsoletes: lib32-libffi < 3.4.2
Requires(post):%{__install_info}
%description
Compilers for high level languages generate code that follows certain conventions. These conventions are necessary, in part, for separate compilation to work. One such convention is the "calling convention". The "calling convention" is a set of assumptions made by the compiler about where function arguments will be found on entry to a function. A "calling convention" also specifies where the return value for a function is found.
@ -55,10 +59,19 @@ This package contains libraries and header files needed for development.
%prep
%setup -q
./autogen.sh
#Avoid regenerating ./configure; an incompatibility with autoconf 2.72
# makes it use an unwanted -march flag (among others):
# https://github.com/libffi/libffi/issues/662
#./autogen.sh
%build
%configure
# remove --disable-exec-static-tramp once ghc and gobject-introspection
# work fine with it enabled (https://github.com/libffi/libffi/pull/647)
%configure \
--disable-multi-os-directory \
--disable-exec-static-tramp \
--enable-pax_emutramp
%make
%install
@ -99,6 +112,12 @@ This package contains libraries and header files needed for development.
%{_infodir}/libffi.info.gz
%changelog
* Fri Jan 28 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.2-3mamba
- try another fix by disabling calling ./autogen.sh (see note in %prep) and using released tarball
* Fri Jan 28 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.2-2mamba
- rebuilt with --disable-exec-static-tramp to try to fix SIGILL in ffi_pref_cif after glib 2.70.3 update
* Sun Dec 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.2-1mamba
- update to 3.4.2