commit:     4193619d18a9b6302d5285db67f5da2096a20438
Author:     Kenton Groombridge <concord <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 24 15:16:26 2024 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Oct 24 19:52:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4193619d

app-containers/buildah: fix SELinux relabeling

The Makefile relabels the buildah executable during installation and
defaults to using container_runtime_exec_t which does not exist in
Gentoo's SELinux policies. Disable the automatic relabeling during
install and let portage take care of it to avoid this error.

Closes: https://bugs.gentoo.org/927311
Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/39098
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 app-containers/buildah/buildah-1.35.3.ebuild | 3 ++-
 app-containers/buildah/buildah-1.35.4.ebuild | 3 ++-
 app-containers/buildah/buildah-1.36.0.ebuild | 3 ++-
 app-containers/buildah/buildah-9999.ebuild   | 3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/app-containers/buildah/buildah-1.35.3.ebuild 
b/app-containers/buildah/buildah-1.35.3.ebuild
index acfc92a67c55..36648c2ae5a7 100644
--- a/app-containers/buildah/buildah-1.35.3.ebuild
+++ b/app-containers/buildah/buildah-1.35.3.ebuild
@@ -120,6 +120,7 @@ src_compile() {
 
        tc-export AS LD STRIP
        export GOMD2MAN="$(command -v go-md2man)"
+       export SELINUXOPT=
        default
 }
 
@@ -128,6 +129,6 @@ src_test() {
 }
 
 src_install() {
-       emake DESTDIR="${ED}" install install.completions
+       emake DESTDIR="${ED}" SELINUXOPT= install install.completions
        einstalldocs
 }

diff --git a/app-containers/buildah/buildah-1.35.4.ebuild 
b/app-containers/buildah/buildah-1.35.4.ebuild
index e1c7e23390e5..79687044616a 100644
--- a/app-containers/buildah/buildah-1.35.4.ebuild
+++ b/app-containers/buildah/buildah-1.35.4.ebuild
@@ -120,6 +120,7 @@ src_compile() {
 
        tc-export AS LD STRIP
        export GOMD2MAN="$(command -v go-md2man)"
+       export SELINUXOPT=
        default
 }
 
@@ -128,6 +129,6 @@ src_test() {
 }
 
 src_install() {
-       emake DESTDIR="${ED}" install install.completions
+       emake DESTDIR="${ED}" SELINUXOPT= install install.completions
        einstalldocs
 }

diff --git a/app-containers/buildah/buildah-1.36.0.ebuild 
b/app-containers/buildah/buildah-1.36.0.ebuild
index 1d1b2acc5e46..2dcea51820e2 100644
--- a/app-containers/buildah/buildah-1.36.0.ebuild
+++ b/app-containers/buildah/buildah-1.36.0.ebuild
@@ -115,6 +115,7 @@ src_compile() {
 
        tc-export AS LD STRIP
        export GOMD2MAN="$(command -v go-md2man)"
+       export SELINUXOPT=
        default
 }
 
@@ -123,6 +124,6 @@ src_test() {
 }
 
 src_install() {
-       emake DESTDIR="${ED}" install install.completions
+       emake DESTDIR="${ED}" SELINUXOPT= install install.completions
        einstalldocs
 }

diff --git a/app-containers/buildah/buildah-9999.ebuild 
b/app-containers/buildah/buildah-9999.ebuild
index 1d1b2acc5e46..2dcea51820e2 100644
--- a/app-containers/buildah/buildah-9999.ebuild
+++ b/app-containers/buildah/buildah-9999.ebuild
@@ -115,6 +115,7 @@ src_compile() {
 
        tc-export AS LD STRIP
        export GOMD2MAN="$(command -v go-md2man)"
+       export SELINUXOPT=
        default
 }
 
@@ -123,6 +124,6 @@ src_test() {
 }
 
 src_install() {
-       emake DESTDIR="${ED}" install install.completions
+       emake DESTDIR="${ED}" SELINUXOPT= install install.completions
        einstalldocs
 }

Reply via email to