From patchwork Sun Sep 22 09:06:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 1165716 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bootlin.com Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46bhRr48Yrz9sP3 for ; Sun, 22 Sep 2019 19:07:36 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id F244485450; Sun, 22 Sep 2019 09:07:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ujrY0vp7zTjc; Sun, 22 Sep 2019 09:07:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6149485249; Sun, 22 Sep 2019 09:07:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id F40AA1BF423 for ; Sun, 22 Sep 2019 09:07:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EFAAB20418 for ; Sun, 22 Sep 2019 09:07:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HdZpgDhjSkcq for ; Sun, 22 Sep 2019 09:07:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by silver.osuosl.org (Postfix) with ESMTPS id 8109F20450 for ; Sun, 22 Sep 2019 09:07:19 +0000 (UTC) Received: from localhost (lfbn-1-2159-45.w90-76.abo.wanadoo.fr [90.76.216.45]) (Authenticated sender: thomas.petazzoni@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 72643100007; Sun, 22 Sep 2019 09:07:17 +0000 (UTC) From: Thomas Petazzoni To: Adam Duskett , Clayton Shotwell , Matt Weber , Marcus Folkesson , Buildroot List Date: Sun, 22 Sep 2019 11:06:34 +0200 Message-Id: <20190922090646.15130-19-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190922090646.15130-1-thomas.petazzoni@bootlin.com> References: <20190922090646.15130-1-thomas.petazzoni@bootlin.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 18/30] package/libsemanage: now available on !glibc configs X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- 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