From patchwork Thu Jul 8 11:56:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 44217 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A07AA398641D for ; Thu, 8 Jul 2021 11:57:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A07AA398641D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1625745422; bh=6sQDzAh78wpIK55CcnkaVI+UCue0DBfCCU09p2JHPzQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=JuRHIcQw53E3ViLF1O/IiRYUAzrdTJsKFYkWphSYEU8EmzArFHdj3j5diVrewyGIX KQ/SKpunNwN2wLN5RubRDcXDCnjfXqQAQ3udoYw7dCpdwUegHIwHh1VG1ducRT5Cmo FvVdeQRbTdVO5Xpfk/sNiMCZ27sj/9JRkRrHPpIA= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id E75D43850432 for ; Thu, 8 Jul 2021 11:56:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E75D43850432 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-447-QdMuW3VhMayrx_QH_WCgiA-1; Thu, 08 Jul 2021 07:56:37 -0400 X-MC-Unique: QdMuW3VhMayrx_QH_WCgiA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DA78E1023F44; Thu, 8 Jul 2021 11:56:35 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-115-5.ams2.redhat.com [10.36.115.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0E3082EB01; Thu, 8 Jul 2021 11:56:34 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH] nss: Do not produces static linker input files for libnss_files Date: Thu, 08 Jul 2021 13:56:33 +0200 Message-ID: <878s2huiha.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Cc: Andreas Schwab Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" --- nss/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) Tested in i686-linux-gnu, x86_64-linux-gnu. Built with build-many-glibcs.py. “find …/install/glibcs/ | grep libnss_files | grep -vF /libnss_files.so.2” does not show any output. Thanks, Florian diff --git a/nss/Makefile b/nss/Makefile index 63a386af18..bccf9f2806 100644 --- a/nss/Makefile +++ b/nss/Makefile @@ -105,6 +105,14 @@ routines += \ files-initgroups \ # routines +# Build only an empty shared libnss_files. +libnss_files-inhibit-o = $(filter-out .os,$(object-suffixes)) + +# Pretend that libnss_files.so is a linker script, so that the symbolic link +# is not installed. +install-lib-ldscripts = libnss_files.so +$(inst_libdir)/libnss_files.so: + libnss_db-dbs := $(addprefix db-,\ $(filter-out hosts network key alias,\ $(databases))) \