All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Lautrbach <lautrbach@redhat.com>
To: selinux@vger.kernel.org, James Carter <jwcart2@gmail.com>
Subject: Re: [PATCH v2] policycoreutils: make `-laudit -lbz2` conditional
Date: Wed, 02 Jul 2025 19:14:37 +0200	[thread overview]
Message-ID: <877c0q1pmq.fsf@redhat.com> (raw)
In-Reply-To: <CAP+JOzSoaJP7Dqt7G9bKKW9U_4Z-qQkyg3nZNfRtwpzSm_RGBQ@mail.gmail.com>

James Carter <jwcart2@gmail.com> writes:

> On Mon, Jun 23, 2025 at 2:08 PM James Carter <jwcart2@gmail.com> wrote:
>>
>> On Mon, Jun 23, 2025 at 2:07 PM Petr Lautrbach <lautrbach@redhat.com> wrote:
>> >
>> > Commit da6cd3d8d7600 ("Support static-only builds") introduced possibility
>> > to build static-only toolchain. For static builds of `semodule` and
>> > `setsebool` seems to be necessary to use `-laudit -lbz2`. As an side
>> > effect, when policycoreutils is built without other components, the
>> > buildroot requires libaudit.so and libbz2.so to be available. For shared
>> > builds this is not necessary and had not been required before.
>> >
>> > Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
>>
>> Acked-by: James Carter <jwcart2@gmail.com>
>>
>
> I think this has been superseded by Alyssa's and my patches.
> Correct?
> Jim

Correct.

I'm able to build policycoreutils with Alyssa's and my patches and
without this patch.

Thanks!.

>
>> > ---
>> >
>> > v2: fixed indentation, I was inspired by the wrong file :/
>> >
>> >  policycoreutils/semodule/Makefile  | 2 ++
>> >  policycoreutils/setsebool/Makefile | 2 ++
>> >  2 files changed, 4 insertions(+)
>> >
>> > diff --git a/policycoreutils/semodule/Makefile b/policycoreutils/semodule/Makefile
>> > index 7c45831fcd4e..52a68dfcac10 100644
>> > --- a/policycoreutils/semodule/Makefile
>> > +++ b/policycoreutils/semodule/Makefile
>> > @@ -12,7 +12,9 @@ SEMODULE_OBJS = semodule.o
>> >
>> >  all: semodule genhomedircon
>> >
>> > +ifeq ($(DISABLE_SHARED),y)
>> >  semodule: LDLIBS += -laudit -lbz2
>> > +endif
>> >  semodule: $(SEMODULE_OBJS)
>> >
>> >  genhomedircon:
>> > diff --git a/policycoreutils/setsebool/Makefile b/policycoreutils/setsebool/Makefile
>> > index 1d5148469f01..f68440f90df7 100644
>> > --- a/policycoreutils/setsebool/Makefile
>> > +++ b/policycoreutils/setsebool/Makefile
>> > @@ -15,7 +15,9 @@ BASHCOMPLETIONS=setsebool-bash-completion.sh
>> >
>> >  all: setsebool
>> >
>> > +ifeq ($(DISABLE_SHARED),y)
>> >  setsebool: LDLIBS += -laudit -lbz2
>> > +endif
>> >  setsebool: $(SETSEBOOL_OBJS)
>> >
>> >  install: all
>> > --
>> > 2.49.0
>> >
>> >


      reply	other threads:[~2025-07-02 17:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-23 18:06 [PATCH v2] policycoreutils: make `-laudit -lbz2` conditional Petr Lautrbach
2025-06-23 18:08 ` James Carter
2025-07-01 15:15   ` James Carter
2025-07-02 17:14     ` Petr Lautrbach [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=877c0q1pmq.fsf@redhat.com \
    --to=lautrbach@redhat.com \
    --cc=jwcart2@gmail.com \
    --cc=selinux@vger.kernel.org \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.