From 2bc75a436718e015a02d897cf92207ba75311353e43567678948a1b02023c548 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 24 Feb 2023 08:56:26 +0000 Subject: [PATCH] - Refreshed python3.8-compat.patch OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=146 --- libselinux-bindings.changes | 1 + python3.8-compat.patch | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libselinux-bindings.changes b/libselinux-bindings.changes index 578f3dd..dab38d2 100644 --- a/libselinux-bindings.changes +++ b/libselinux-bindings.changes @@ -11,6 +11,7 @@ Fri Feb 24 07:42:25 UTC 2023 - Johannes Segitz * 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) ------------------------------------------------------------------- diff --git a/python3.8-compat.patch b/python3.8-compat.patch index 960ef56..d1a7dbc 100644 --- a/python3.8-compat.patch +++ b/python3.8-compat.patch @@ -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"]')