public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Max Chernoff <git@maxchernoff.ca>,
	Danish Prakash <contact@danishpraka.sh>,
	vmojzis@redhat.com
Cc: passt-dev@passt.top, pholzing@redhat.com
Subject: Re: [PATCH v2] spec: use %selinux_requires_min macro, drop overlapping dependencies
Date: Mon, 8 Dec 2025 11:37:47 +0100	[thread overview]
Message-ID: <20251208113747.21e70ba2@elisabeth> (raw)
In-Reply-To: <12872851fcbd10d1c37d074ebf88daef07cc50a0.camel@maxchernoff.ca>

On Sun, 23 Nov 2025 00:37:24 -0700
Max Chernoff <git@maxchernoff.ca> wrote:

> Hi Danish,
> 
> On Fri, 2025-11-21 at 18:17 +0530, Danish Prakash wrote:
> > Also, drop unused preun policycoreutils requires, and Recommends on
> > selinux-policy-%{targeted}, it has since been added to
> > %selinux_requires_min.
> >
> > Signed-off-by: Danish Prakash <contact@danishpraka.sh>  
> 
> Reviewed-by: Max Chernoff <git@maxchernoff.ca>
> Tested-by: Max Chernoff <git@maxchernoff.ca>
> 
> (I've only tested this on F43, but the non-F43 changes also look good to
> me)

...for some reason, this broke Fedora 43 Copr builds on most builders,
so I just applied and posted a quick build fix:

  https://archives.passt.top/passt-dev/20251208103427.2535279-1-sbrivio@redhat.com/

I guess it's not a drama to start using %selinux_requires_min starting
from Fedora 44 instead, regardless of whether that's the right fix.

Let me know if I'm missing something though.

-- 
Stefano


> 
> > ---
> >  contrib/fedora/passt.spec | 26 ++++++++++++++------------
> >  1 file changed, 14 insertions(+), 12 deletions(-)
> >
> > diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec
> > index d1bcf4a74338..bcbe1f77bb6c 100644
> > --- a/contrib/fedora/passt.spec
> > +++ b/contrib/fedora/passt.spec
> > @@ -34,19 +34,21 @@ for network namespaces: traffic is forwarded using a tap interface inside the
> >  namespace, without the need to create further interfaces on the host, hence not
> >  requiring any capabilities or privileges.
> >
> > -%package		selinux
> > -BuildArch:		noarch
> > -Summary:		SELinux support for passt and pasta
> > -Requires:		selinux-policy-%{selinuxtype}
> > -Requires:		container-selinux
> > -Requires(post):		selinux-policy-%{selinuxtype}
> > +%package		    selinux
> > +BuildArch:		    noarch
> > +Summary:		    SELinux support for passt and pasta
> > +%if 0%{?fedora} >= 43
> > +BuildRequires:      selinux-policy-devel
> > +%selinux_requires_min
> > +%else
> > +BuildRequires:      pkgconfig(systemd)
> > +Requires(post):     libselinux-utils
> > +Requires(post):     policycoreutils
> > +%endif
> > +Requires:		    container-selinux
> > +Requires:		    selinux-policy-%{selinuxtype}
> >  Requires(post):		container-selinux
> > -Requires(post):		policycoreutils
> > -Requires(post):		libselinux-utils
> > -Requires(preun):	policycoreutils
> > -BuildRequires:		selinux-policy-devel
> > -BuildRequires:		pkgconfig(systemd)
> > -Recommends:		selinux-policy-%{selinuxtype} >= %{selinux_policy_version}
> > +Requires(post):		selinux-policy-%{selinuxtype}
> >
> >  %description selinux
> >  This package adds SELinux enforcement to passt(1), pasta(1), passt-repair(1).  
> 
> Thanks,
> -- Max
> 


      parent reply	other threads:[~2025-12-08 10:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-13  7:22 [PATCH] spec: use %selinux_requires " Danish Prakash
2025-11-13  9:47 ` Max Chernoff
2025-11-13 11:10   ` Stefano Brivio
2025-11-13 12:04     ` Vit Mojzis
2025-11-21 12:33       ` Danish Prakash
2025-11-21 12:47       ` [PATCH v2] spec: use %selinux_requires_min " Danish Prakash
2025-11-23  7:37         ` Max Chernoff
2025-11-27 22:33           ` Stefano Brivio
2025-12-08 10:37           ` Stefano Brivio [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251208113747.21e70ba2@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=contact@danishpraka.sh \
    --cc=git@maxchernoff.ca \
    --cc=passt-dev@passt.top \
    --cc=pholzing@redhat.com \
    --cc=vmojzis@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).