From 660a4ac8012e01e16fa45e1d365e3d2c1e87f512 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Thu, 29 May 2025 10:39:27 -0600 Subject: [PATCH] libselinux: workaround python-pip lack of for libselinux. --- .../00-replace_python-pip_to_fallback_option.patch | 13 +++++++++++++ helpers/make-libselinux | 5 ++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 helpers/DATA/libselinux/patch_changes/00-replace_python-pip_to_fallback_option.patch diff --git a/helpers/DATA/libselinux/patch_changes/00-replace_python-pip_to_fallback_option.patch b/helpers/DATA/libselinux/patch_changes/00-replace_python-pip_to_fallback_option.patch new file mode 100644 index 0000000..ad0df75 --- /dev/null +++ b/helpers/DATA/libselinux/patch_changes/00-replace_python-pip_to_fallback_option.patch @@ -0,0 +1,13 @@ +diff --git a/src/Makefile b/src/Makefile +index bd61dfb1..8f9cb3cf 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -189,7 +189,7 @@ install: all + ln -sf --relative $(DESTDIR)$(SHLIBDIR)/$(LIBSO) $(DESTDIR)$(LIBDIR)/$(TARGET) + + install-pywrap: pywrap +- $(PYTHON) -m pip install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) --ignore-installed --no-deps` $(PYTHON_SETUP_ARGS) . ++ $(PYTHON) setup.py install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) ` $(PYTHON_SETUP_ARGS) + install -m 644 $(SWIGPYOUT) $(DESTDIR)$(PYTHONLIBDIR)/selinux/__init__.py + ln -sf --relative $(DESTDIR)$(PYTHONLIBDIR)/selinux/_selinux$(PYCEXT) $(DESTDIR)$(PYTHONLIBDIR)/_selinux$(PYCEXT) + diff --git a/helpers/make-libselinux b/helpers/make-libselinux index 7d14ad7..f3e2326 100644 --- a/helpers/make-libselinux +++ b/helpers/make-libselinux @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2022 Luis Guzmán +# Copyright (C) 2025 Luis Guzmán # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -29,6 +29,9 @@ VERSION=1 NETINST=true . ./config +# fix dependency on python3-pip for a simple install +sed -i '/python3-pip/d' debian/control +apply_patch_changes changelog "Fetch and build as udeb dependency for debian-installer." package