All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 18/30] package/libsemanage: now available on !glibc configs
Date: Sun, 22 Sep 2019 11:06:34 +0200	[thread overview]
Message-ID: <20190922090646.15130-19-thomas.petazzoni@bootlin.com> (raw)
In-Reply-To: <20190922090646.15130-1-thomas.petazzoni@bootlin.com>

libsemanage was only available in glibc configurations, for three
reasons, which are all no longer true:

 - The usage of fts.h by libselinux is now provided by the musl-fts
   package when uClibc-ng or musl are used, which makes libselinux
   available to all C libraries.

 - libsemanage use of getpwent_r() has been removed by upstream commit
   2c651e0a2822368c74587efe6ec920e64e72f37b ("genhomedircon: avoid use
   of non-standard `getpwent_r`"), which is in SELinux since version
   2.7

 - audit is now available on musl, thanks to Buildroot commit
   "package/audit: re-enable on musl", which backports an upstream
   patch to make audit build with musl

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/libsemanage/Config.in | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/package/libsemanage/Config.in b/package/libsemanage/Config.in
index ad3555aee0..e51b711cae 100644
--- a/package/libsemanage/Config.in
+++ b/package/libsemanage/Config.in
@@ -3,10 +3,6 @@ config BR2_PACKAGE_LIBSEMANAGE
 	depends on BR2_PACKAGE_AUDIT_ARCH_SUPPORTS
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_STATIC_LIBS
-	# - libselinux needs fts.h (not available in uClibc/musl)
-	# - libsemanage itself needs getpwent_r() not available in musl
-	# - audit is not available on musl
-	depends on BR2_TOOLCHAIN_USES_GLIBC
 	depends on !BR2_arc
 	select BR2_PACKAGE_AUDIT
 	select BR2_PACKAGE_LIBSELINUX
@@ -22,8 +18,7 @@ config BR2_PACKAGE_LIBSEMANAGE
 
 	  http://selinuxproject.org/page/Main_Page
 
-comment "libsemanage needs a glibc toolchain w/ threads, dynamic library"
+comment "libsemanage needs a toolchain w/ threads, dynamic library"
 	depends on !BR2_arc
 	depends on BR2_PACKAGE_AUDIT_ARCH_SUPPORTS
-	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
-		!BR2_TOOLCHAIN_USES_GLIBC
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
-- 
2.21.0

  parent reply	other threads:[~2019-09-22  9:06 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-22  9:06 [Buildroot] [PATCH 00/30] SELinux improvements Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 01/30] package/policycoreutils: drop host-dbus-glib dependency from host-policycoreutils Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 02/30] package/policycoreutils: drop host-python(3) dependency for host-policycoreutils Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 03/30] package/policycoreutils: drop host-setools dependency from host-policycoreutils Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 04/30] package/policycoreutils: drop ARCH variable Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 05/30] package/policycoreutils: don't pass DESTDIR when building host variant Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 06/30] package/libsemanage: drop dependency on ustr Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 07/30] package/ustr: remove package Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 08/30] package/libsemanage: reformat HOST_LIBSEMANAGE_DEPENDENCIES Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 09/30] package/musl-fts: new package Thomas Petazzoni
2019-09-23 13:12   ` Matthew Weber
2019-09-23 13:33     ` Thomas Petazzoni
2019-09-23 13:36       ` [Buildroot] [External] " Matthew Weber
2019-09-23 13:44         ` Thomas Petazzoni
2019-10-09 22:31   ` [Buildroot] " Arnout Vandecappelle
2019-10-10  7:05     ` Thomas Petazzoni
2019-10-10 11:22     ` Petr Vorel
2019-09-22  9:06 ` [Buildroot] [PATCH 10/30] package/libselinux: allow building on !glibc using musl-fts Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 11/30] package/busybox: selinux support now available on !glibc configs Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 12/30] package/checkpolicy: " Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 13/30] package/audit: re-enable on musl Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 14/30] package/selinux-python: now available on !glibc configs Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 15/30] package/setools: " Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 16/30] package/android-tools: fastboot now available on !glibc toolchains Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 17/30] package/restorecond: now available on !glibc configs Thomas Petazzoni
2019-09-22  9:06 ` Thomas Petazzoni [this message]
2019-09-22  9:06 ` [Buildroot] [PATCH 19/30] package/policycoreutils: " Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 20/30] package/refpolicy: " Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 21/30] package/libselinux: re-enable on ARC Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 22/30] package/setools: " Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 23/30] package/checkpolicy: " Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 24/30] package/selinux-python: re-enable audit2allow " Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 25/30] package/busybox: re-enable SELinux support " Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 26/30] package/restorecond: re-enable " Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 27/30] package/libsemanage: drop !BR2_arc dependency Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 28/30] package/policycoreutils: " Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 29/30] package/refpolicy: " Thomas Petazzoni
2019-09-22  9:06 ` [Buildroot] [PATCH 30/30] package/android-tools: re-enable fastboot on ARC Thomas Petazzoni
2019-09-22 18:09 ` [Buildroot] [PATCH 00/30] SELinux improvements Arnout Vandecappelle
2019-10-09 22:21   ` Arnout Vandecappelle

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=20190922090646.15130-19-thomas.petazzoni@bootlin.com \
    --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 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.