import CS libffi-3.4.2-8.el9
This commit is contained in:
parent
2cc0091a29
commit
986e55b843
13
SOURCES/libffi-3.4.2-rh2152228.patch
Normal file
13
SOURCES/libffi-3.4.2-rh2152228.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff -rup a/src/closures.c b/src/closures.c
|
||||||
|
--- a/src/closures.c 2021-06-27 14:03:12.000000000 -0400
|
||||||
|
+++ b/src/closures.c 2023-04-06 23:37:18.742954529 -0400
|
||||||
|
@@ -432,6 +432,9 @@ selinux_enabled_check (void)
|
||||||
|
char *buf = NULL;
|
||||||
|
size_t len = 0;
|
||||||
|
|
||||||
|
+ if (access ("/etc/sysconfig/libffi-force-shared-memory-check-first", F_OK) >= 0)
|
||||||
|
+ return 0;
|
||||||
|
+
|
||||||
|
if (statfs ("/selinux", &sfs) >= 0
|
||||||
|
&& (unsigned int) sfs.f_type == 0xf97cff8cU)
|
||||||
|
return 1;
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: libffi
|
Name: libffi
|
||||||
Version: 3.4.2
|
Version: 3.4.2
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
Summary: A portable foreign function interface library
|
Summary: A portable foreign function interface library
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://sourceware.org/libffi
|
URL: http://sourceware.org/libffi
|
||||||
@ -12,6 +12,7 @@ URL: http://sourceware.org/libffi
|
|||||||
Source0: https://github.com/libffi/libffi/releases/download/v3.4.2/libffi-3.4.2.tar.gz
|
Source0: https://github.com/libffi/libffi/releases/download/v3.4.2/libffi-3.4.2.tar.gz
|
||||||
Source1: ffi-multilib.h
|
Source1: ffi-multilib.h
|
||||||
Source2: ffitarget-multilib.h
|
Source2: ffitarget-multilib.h
|
||||||
|
Patch1: libffi-3.4.2-rh2152228.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -58,6 +59,7 @@ developing applications that use %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# For now we disable the static templates to avoid ghc and
|
# For now we disable the static templates to avoid ghc and
|
||||||
@ -113,6 +115,10 @@ install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/ffitarget.h
|
|||||||
%{_infodir}/libffi.info.*
|
%{_infodir}/libffi.info.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 07 2023 DJ Delorie <dj@redhat.com> - 3.4.2-8
|
||||||
|
- Use /etc/sysconfig/libffi-force-shared-memory-check-first to
|
||||||
|
override selinux permissions check for shared memory access (#2152228)
|
||||||
|
|
||||||
* Thu Aug 26 2021 Carlos O'Donell <codonell@redhat.com> - 3.4.2-7
|
* Thu Aug 26 2021 Carlos O'Donell <codonell@redhat.com> - 3.4.2-7
|
||||||
- Remove compat-libffi3.1 subpackage to complete SONAME transition.
|
- Remove compat-libffi3.1 subpackage to complete SONAME transition.
|
||||||
Related: rhbz#1891914
|
Related: rhbz#1891914
|
||||||
|
Loading…
Reference in New Issue
Block a user