public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH] fedora: Fix build on Fedora 43, selinux_requires_min not available on Copr builders
@ 2025-12-08 10:34 Stefano Brivio
  2025-12-08 10:43 ` Max Chernoff
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Brivio @ 2025-12-08 10:34 UTC (permalink / raw)
  To: passt-dev; +Cc: Danish Prakash, Max Chernoff, Vit Mojzis

For some reason, on Copr:

  Building target platforms: aarch64
  Building for target aarch64
  error: line 42: Unknown tag: %selinux_requires_min
  Child return code was: 1

Use %selinux_requires_min starting from current Rawhide / Fedora 44,
there it works.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
---
I just merged this as I needed to fix Fedora 43 builds, feel free
to propose changes on top if you see a better way / have a proper
explanation.

 contrib/fedora/passt.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec
index bcbe1f7..38b06b0 100644
--- a/contrib/fedora/passt.spec
+++ b/contrib/fedora/passt.spec
@@ -37,7 +37,7 @@ requiring any capabilities or privileges.
 %package		    selinux
 BuildArch:		    noarch
 Summary:		    SELinux support for passt and pasta
-%if 0%{?fedora} >= 43
+%if 0%{?fedora} > 43
 BuildRequires:      selinux-policy-devel
 %selinux_requires_min
 %else
-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-12-09  0:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-08 10:34 [PATCH] fedora: Fix build on Fedora 43, selinux_requires_min not available on Copr builders Stefano Brivio
2025-12-08 10:43 ` Max Chernoff
2025-12-08 10:55   ` Stefano Brivio
2025-12-08 11:30     ` Max Chernoff
2025-12-09  0:33       ` Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).