From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF9E6C43441 for ; Thu, 22 Nov 2018 13:39:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8485D20672 for ; Thu, 22 Nov 2018 13:39:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="E54LGwas" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8485D20672 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ieee.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391364AbeKWASf (ORCPT ); Thu, 22 Nov 2018 19:18:35 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:37105 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388648AbeKWASf (ORCPT ); Thu, 22 Nov 2018 19:18:35 -0500 Received: by mail-qk1-f196.google.com with SMTP id 131so6865914qkd.4 for ; Thu, 22 Nov 2018 05:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=YrQvi+LYycXivpveuTqPzt7gptYOobaLRYsMKJf9N6Y=; b=E54LGwasVN9tO2VIhJ2I+OOyd2EgpL81+mqUTKXZ1zdAx37nml9fnJfOeKmNpFa4G+ EIBh+NMsWw/IfO87K7a4lMs+9xH+0o0ZNKTDJ5qyr+0CVs+gXnm4FuP4ECT5Fcd57SiP /OfHr/0G6+G3SKEOV38kYN3772LwKXtzEHo20= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YrQvi+LYycXivpveuTqPzt7gptYOobaLRYsMKJf9N6Y=; b=PXMZQ9pFmGbQpns1ar+lhNH0wpdDsnnUayq2mBDuGxmRg6e/a87OOCs1G45mogdXK5 TDXntTWgm37lZHareVF45KEVMq1f8E5RPfADkwjqLw/LNWlbFk74WHoIwLSsv6y2W4nQ fhisvV9nnINECG/9eB67SauCS5zSqAeRGlX7C1bPfo4z6p7fptdcwfE5YyeTS25d0u55 jC6LbCRPxk6/DrkjLzEbML1V+DfRvaEa2levKHx9WJs9YoMlQcHqM1XGBfYWt53mcBsA GBnxVL/3qltuKx8gUV9UDKf4/QV4TUBtE5YdrIgwSr5dFvqmlRBsFWvwRpfXabvEEi06 7z2w== X-Gm-Message-State: AA+aEWaQBrT1N6cbEMAq09qTlNnB1xykOHrtMrLS9FzX1FTaMwDGAp8d H3REQ13m206xaTa1lWcHoNo3RMWaQQ4= X-Google-Smtp-Source: AFSGD/X+ZNt0O/YVR6IfXLk1i1WnhJmAA97WUFkqM0VgcQK3rSG5aTwsYg0v3fkDchlJI357jn7FAw== X-Received: by 2002:a37:99c5:: with SMTP id b188mr10151645qke.100.1542893950157; Thu, 22 Nov 2018 05:39:10 -0800 (PST) Received: from [192.168.1.190] (pool-108-15-23-247.bltmmd.fios.verizon.net. [108.15.23.247]) by smtp.gmail.com with ESMTPSA id n71sm21974442qkh.59.2018.11.22.05.39.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 05:39:08 -0800 (PST) Subject: Re: [PATCH 1/3] build: add config for libc gnu and musl To: Jason Zaman , selinux-refpolicy@vger.kernel.org References: <20181118113738.29532-1-jason@perfinion.com> From: Chris PeBenito Message-ID: Date: Thu, 22 Nov 2018 08:39:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181118113738.29532-1-jason@perfinion.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 11/18/18 6:37 AM, Jason Zaman wrote: > Signed-off-by: Jason Zaman > --- > Makefile | 7 +++++++ > build.conf | 5 +++++ > support/Makefile.devel | 4 ++++ > 3 files changed, 16 insertions(+) > > diff --git a/Makefile b/Makefile > index 57d297c9..8e149345 100644 > --- a/Makefile > +++ b/Makefile > @@ -192,6 +192,10 @@ ifeq "$(DISTRO)" "ubuntu" > M4PARAM += -D distro_debian > endif > > +ifneq ($(LIBC),) > + M4PARAM += -D libc_$(LIBC) > +endif > + > ifeq "$(SYSTEMD)" "y" > M4PARAM += -D init_systemd > endif > @@ -541,6 +545,9 @@ install-headers: $(layerxml) $(tunxml) $(boolxml) > $(verbose) echo "NAME ?= $(NAME)" >> $(headerdir)/build.conf > ifneq "$(DISTRO)" "" > $(verbose) echo "DISTRO ?= $(DISTRO)" >> $(headerdir)/build.conf > +endif > +ifneq "$(LIBC)" "" > + $(verbose) echo "LIBC ?= $(LIBC)" >> $(headerdir)/build.conf > endif > $(verbose) echo "MONOLITHIC ?= n" >> $(headerdir)/build.conf > $(verbose) echo "DIRECT_INITRC ?= $(DIRECT_INITRC)" >> $(headerdir)/build.conf > diff --git a/build.conf b/build.conf > index a2f1a9b5..add0fcf8 100644 > --- a/build.conf > +++ b/build.conf > @@ -29,6 +29,11 @@ NAME = refpolicy > # Fedora users should enable redhat. > #DISTRO = redhat > > +# libc > +# Setting this will configure which libc is used. > +# gnu, musl are the current options. > +LIBC = gnu > + > # Unknown Permissions Handling > # The behavior for handling permissions defined in the > # kernel but missing from the policy. The permissions > diff --git a/support/Makefile.devel b/support/Makefile.devel > index f3daca11..fb296084 100644 > --- a/support/Makefile.devel > +++ b/support/Makefile.devel > @@ -58,6 +58,10 @@ ifneq ($(DISTRO),) > M4PARAM += -D distro_$(DISTRO) > endif > > +ifneq ($(LIBC),) > + M4PARAM += -D libc_$(LIBC) > +endif > + > ifeq "$(SYSTEMD)" "y" > M4PARAM += -D init_systemd > endif I'm not inclined to merge this set. It seems niche, even in terms of Gentoo. -- Chris PeBenito