From patchwork Sun Mar 1 15:17:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1247330 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=bGg/idry; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Vn336y9dz9sSG for ; Mon, 2 Mar 2020 02:18:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 47513864E0; Sun, 1 Mar 2020 15:18:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FsIBtzRYOrW4; Sun, 1 Mar 2020 15:18:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7EA7686096; Sun, 1 Mar 2020 15:18:05 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1C6691BF2E3 for ; Sun, 1 Mar 2020 15:18:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 12B4086061 for ; Sun, 1 Mar 2020 15:18:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id URGNNss5ZUve for ; Sun, 1 Mar 2020 15:18:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3CBD986096 for ; Sun, 1 Mar 2020 15:18:02 +0000 (UTC) Received: by mail-qk1-f171.google.com with SMTP id u124so7667608qkh.13 for ; Sun, 01 Mar 2020 07:18:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0nBL1bqJV58gFgtUc2qgLKoWUTZJh3M49XFWKFMkCDg=; b=bGg/idry6KWCqQdSB+oElsSyacAWb/sIqeym4aLQdlJ/GmhDO6r9gZqy/gXOm6xhlC fjYZ25ZOPiTxjcPseVspWo392oMzHyDfEezkenZvJf2ObBKNzlKl3bMMwTkQulAH2u5I qBp17/Ob7Z6Gk6wYj8Tms/z1A9xpHUDh6QY/IH4D4lxQo1mTIlBYZFJXP2QZs/Y04fMb oyEq5FiF/KckMo2vrJQvI8D4Y0QQzR6sGrysPR8Hau+lokOQcudnEVRivG3AGCPd+e3N Zfe0eeqVcYiI71PZZ2W5SiU64wICLpwfVmBCJRCtQUKOqj2npRGOUDMOXOdfMSC5z54y xTpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0nBL1bqJV58gFgtUc2qgLKoWUTZJh3M49XFWKFMkCDg=; b=czdrHoZujxC7AmdGji1HIoGZKfI0U+PAZRbYFiczefVmiZGocIHmuD1CXH7LRiYqup 9wkZv3FAi2EAhG5htlwCqH3PQk2zQzWd46t93HVVEB/selqY4fz3cupMEWuq8mCJEOW3 hEGnluMvZ3zoZQYCsTzAXRBH3F3SQZfoptGgOC0c96RJAuov7M15WXNsP1+7GZid600G XXaRp75iqTzUlnNNyXGjiMocFwj9SPFpXfvsXNyBJcLppuYmAMk/zTa3yCmvn5wUEL3S SF2m1j3gxpdVzC3qfSqpIRywoV7syF6MVxEWczdbDnfAKuoFUsENCxFi0pioTrtlCvfw Dbkg== X-Gm-Message-State: APjAAAWCX6E3pfv7vL4MSASwzoFFJAJo3sger5OHfFpnG7k8x0rm0hnZ Y4+Oo3FWjkh0GFD5VvryzARgnipU X-Google-Smtp-Source: APXvYqzY6Y01/TdkEJHzGNj0f5CThANiefbw0cY10KUsoLBnpWUmbwgh/eIxt6ZbOoDsgAJ+sETh0g== X-Received: by 2002:a05:620a:66f:: with SMTP id a15mr12638319qkh.446.1583075881000; Sun, 01 Mar 2020 07:18:01 -0800 (PST) Received: from casantos.remote.com (200.175.82.32.dynamic.adsl.gvt.net.br. [200.175.82.32]) by smtp.gmail.com with ESMTPSA id t37sm8866302qth.0.2020.03.01.07.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Mar 2020 07:18:00 -0800 (PST) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Sun, 1 Mar 2020 12:17:46 -0300 Message-Id: <20200301151747.25723-4-unixmania@gmail.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20200301151747.25723-1-unixmania@gmail.com> References: <20200301151747.25723-1-unixmania@gmail.com> Subject: [Buildroot] [PATCH/next v2 3/4] package/openrc: add libselinux support 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: Adam Duskett , =?utf-8?b?TWljaGHFgiDFgXlzemN6ZWs=?= MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett If the libselinux package is selected, add the package to the dependency list and explicitly set OPENRC_MAKE_OPTS += MKSELINUX=yes Signed-off-by: Adam Duskett Signed-off-by: Carlos Santos --- package/openrc/openrc.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/openrc/openrc.mk b/package/openrc/openrc.mk index 6057451bfe..97536dad37 100644 --- a/package/openrc/openrc.mk +++ b/package/openrc/openrc.mk @@ -18,7 +18,6 @@ OPENRC_MAKE_OPTS = \ LIBNAME=lib \ LIBEXECDIR=/usr/libexec/rc \ MKPKGCONFIG=no \ - MKSELINUX=no \ MKSYSVINIT=yes \ BRANDING="Buildroot $(BR2_VERSION_FULL)" \ CC=$(TARGET_CC) @@ -29,6 +28,13 @@ else OPENRC_MAKE_OPTS += MKSTATICLIBS=yes endif +ifeq ($(BR2_PACKAGE_LIBSELINUX),y) +OPENRC_MAKE_OPTS += MKSELINUX=yes +OPENRC_DEPENDENCIES += libselinux +else +OPENRC_MAKE_OPTS += MKSELINUX=no +endif + define OPENRC_BUILD_CMDS $(MAKE) $(OPENRC_MAKE_OPTS) -C $(@D) endef