3
0
forked from pool/libselinux

- Refreshed python3.8-compat.patch

OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=146
This commit is contained in:
Johannes Segitz 2023-02-24 08:56:26 +00:00 committed by Git OBS Bridge
parent 5bc0b87998
commit 2bc75a4367
2 changed files with 5 additions and 4 deletions

View File

@ -11,6 +11,7 @@ Fri Feb 24 07:42:25 UTC 2023 - Johannes Segitz <jsegitz@suse.com>
* fix memory leaks on the audit2why module init
* ignore invalid class name lookup
- Drop restorecon_pin_file.patch, is upstream
- Refreshed python3.8-compat.patch
- Added additional developer key (Jason Zaman)
-------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
Index: libselinux-3.1/src/Makefile
Index: libselinux-3.5/src/Makefile
===================================================================
--- libselinux-3.1.orig/src/Makefile
+++ libselinux-3.1/src/Makefile
--- libselinux-3.5.orig/src/Makefile
+++ libselinux-3.5/src/Makefile
@@ -13,7 +13,11 @@ LIBDIR ?= $(PREFIX)/lib
SHLIBDIR ?= /lib
INCLUDEDIR ?= $(PREFIX)/include
@ -11,6 +11,6 @@ Index: libselinux-3.1/src/Makefile
+else
PYLIBS ?= $(shell $(PKG_CONFIG) --libs $(PYPREFIX))
+endif
PYTHONLIBDIR ?= $(shell $(PYTHON) -c "from distutils.sysconfig import *; print(get_python_lib(plat_specific=1, prefix='$(PREFIX)'))")
PYTHONLIBDIR ?= $(shell $(PYTHON) -c "import sysconfig; print(sysconfig.get_path('platlib', vars={'platbase': '$(PREFIX)', 'base': '$(PREFIX)'}))")
PYCEXT ?= $(shell $(PYTHON) -c 'import importlib.machinery;print(importlib.machinery.EXTENSION_SUFFIXES[0])')
RUBYINC ?= $(shell $(RUBY) -e 'puts "-I" + RbConfig::CONFIG["rubyarchhdrdir"] + " -I" + RbConfig::CONFIG["rubyhdrdir"]')