From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2,1/8] libselinux: bump to version 2.8
Date: Thu, 11 Oct 2018 16:57:22 +0200 [thread overview]
Message-ID: <20181011165722.0423fcff@windsurf> (raw)
In-Reply-To: <CAPi7W80x4B9KVOBZnfw93XZVvzebaU2-fWb29vQ8D0e=h+=JGQ@mail.gmail.com>
Hello,
On Thu, 11 Oct 2018 16:33:49 +0200, Fabrice Fontaine wrote:
> If I don't override SHLIBDIR, the shared library will be installed in
> SHLIBDIR (lib), headers in usr/include (INCDIR), man pages in
> usr/share/man/man3 (MAN3DIR) and static library in usr/lib (LIBDIR).
>
> Then, the issue is how to remove --relative from the symbolic link
> creation in 0002-revert-ln-relative.patch:
> $(LN) -sf --relative $(DESTDIR)$(SHLIBDIR)/$(LIBSO)
> $(DESTDIR)$(LIBDIR)/$(TARGET)
>
> I can use a relative path but this seems a terrible solution:
> cd $(DESTDIR)$(LIBDIR) && ln -sf ../../lib/$(LIBSO) $(TARGET)
It's not too terrible. But it's also not horrible to have the libraries
in /usr/lib.
So, OK, let's settle for SHLIBDIR=/usr/lib, with a comment that
explains why.
> Removing this link is not an option as pkgconfig file publishes that
> libdir is equal to LIBDIR, not SHLIBDIR.
> So, it seems better to me to set SHLIBDIR to /usr/lib and take the
> assumption that LIBDIR=SHLIBDIR.
Yeah, OK, let's do this.
> But if you prefer to have relative paths, I can update the patch.
> As a side note, I do not understand why upstream want to have a
> different installation path for shared and static libraries, is it a
> common practice?
Yes, I think it is fairly common. The reason why they install the
SELinux libraries in /lib is because those libraries are typically used
by "core" programs installed in /bin and /sbin. Normally, programs
installed in /bin and /sbin should only use libraries in /lib, and /usr
may not (yet?) be available. This is for libraries needed at runtime,
i.e shared libraries.
However, static libraries are only needed during development, and
there's no need to have them in /lib.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2018-10-11 14:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-21 20:50 [Buildroot] [PATCH v2,1/8] libselinux: bump to version 2.8 Fabrice Fontaine
2018-09-21 20:50 ` [Buildroot] [PATCH v2,2/8] libsepol: " Fabrice Fontaine
2018-09-21 20:50 ` [Buildroot] [PATCH v2,3/8] libsemanage: " Fabrice Fontaine
2018-09-21 20:50 ` [Buildroot] [PATCH v2,4/8] checkpolicy: " Fabrice Fontaine
2018-09-21 20:50 ` [Buildroot] [PATCH v2,5/8] restorecond: " Fabrice Fontaine
2018-09-21 20:50 ` [Buildroot] [PATCH v2,6/8] policycoreutils: " Fabrice Fontaine
2018-09-21 20:50 ` [Buildroot] [PATCH v2,7/8] selinux-python: " Fabrice Fontaine
2018-09-21 20:50 ` [Buildroot] [PATCH v2,8/8] semodule-utils: " Fabrice Fontaine
2018-09-27 14:00 ` [Buildroot] [PATCH v2,1/8] libselinux: " Matthew Weber
2018-09-28 20:06 ` Matthew Weber
2018-10-10 19:35 ` Thomas Petazzoni
2018-10-10 21:05 ` Fabrice Fontaine
2018-10-11 7:57 ` Thomas Petazzoni
2018-10-11 14:33 ` Fabrice Fontaine
2018-10-11 14:57 ` Thomas Petazzoni [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=20181011165722.0423fcff@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox