diff --git a/dist b/dist new file mode 100644 index 0000000000000000000000000000000000000000..9c0e36ec42a2d9bfefacb21ac6354c9ddd910533 --- /dev/null +++ b/dist @@ -0,0 +1 @@ +an8 diff --git a/libffi-3.1-rh2014228.patch b/libffi-3.1-rh2014228.patch new file mode 100644 index 0000000000000000000000000000000000000000..51639cbbc4824e1885963fd7959bd3bda446b7ad --- /dev/null +++ b/libffi-3.1-rh2014228.patch @@ -0,0 +1,13 @@ +diff -rup a/src/closures.c b/src/closures.c +--- a/src/closures.c 2022-11-16 15:27:45.632725415 -0500 ++++ b/src/closures.c 2022-11-18 13:56:17.948172306 -0500 +@@ -140,6 +140,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; diff --git a/libffi.spec b/libffi.spec index 6af8a143f8fe595cfd251b61b9850385c2311722..ec34be1b135147fea0eb5159729f21c6aebd102d 100644 --- a/libffi.spec +++ b/libffi.spec @@ -1,10 +1,10 @@ -%define anolis_release .0.3 +%define anolis_release .0.1 %global multilib_arches %{ix86} ppc ppc64 ppc64p7 s390 s390x x86_64 Name: libffi Version: 3.1 -Release: 23%{anolis_release}%{?dist} +Release: 24%{anolis_release}%{?dist} Summary: A portable foreign function interface library Group: System Environment/Libraries @@ -20,6 +20,7 @@ Patch3: libffi-3.1-aarch64-fix-exec-stack.patch Patch5: libffi-3.1-closures-Create-temporary-file-with-O_TMPFILE-and-O_.patch Patch6: libffi-3.1-libffi_tmpdir.patch Patch7: libffi-3.1-memfd.patch +Patch8: libffi-3.1-rh2014228.patch Patch1000: 0001-arch-support-loongarch64-platform.patch Patch1001: 0001-add-loongarch64-objects.patch @@ -82,6 +83,7 @@ Doc pages for %{name}. %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 %patch1000 -p1 %patch1001 -p1 @@ -147,14 +149,14 @@ fi %{_infodir}/libffi.info.gz %changelog -* Thu Sep 15 2022 Liwei Ge - 3.1-23.0.3 -- Link loongarch objects - -* Wed Sep 7 2022 Liwei Ge - 3.1-23.0.2 +* Tue Jul 04 2023 DengXiewei - 3.1-24.0.1 +- Add doc sub package - Support loongarch64 platform (chenglulu) +- Link loongarch objects -* Mon Jul 18 2022 DengXiewei - 3.1-23.0.1 -- Add doc sub package +* Wed Nov 16 2022 DJ Delorie - 3.1-24 +- Use /etc/sysconfig/libffi-force-shared-memory-check-first to + override selinux permissions check for shared memory access (#2014228) * Fri Nov 19 2021 DJ Delorie - 3.1-23 - Use memfd_create() to allocate closures (#1875340)