From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vmicros1.altlinux.org (vmicros1.altlinux.org [194.107.17.57]) by sourceware.org (Postfix) with ESMTP id 5F3FB3841887 for ; Wed, 29 Jun 2022 20:08:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5F3FB3841887 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=altlinux.org Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 45E2472C8B1; Wed, 29 Jun 2022 23:08:58 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 2DF307CF64B; Wed, 29 Jun 2022 23:08:58 +0300 (MSK) Date: Wed, 29 Jun 2022 23:08:58 +0300 From: "Dmitry V. Levin" To: Mark Wielaard Cc: "Frank Ch. Eigler" , elfutils-devel@sourceware.org Subject: Re: [PATCH] config: Remove unnecessary setting/unsetting of prefix in profiles Message-ID: <20220629200857.GA12368@altlinux.org> References: <20220629164819.18486-1-mark@klomp.org> <20220629172904.GB30593@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2022 20:09:00 -0000 Hi, On Wed, Jun 29, 2022 at 08:33:19PM +0200, Mark Wielaard wrote: > Hi Frank, > > On Wed, Jun 29, 2022 at 01:29:04PM -0400, Frank Ch. Eigler wrote: > > > In both profile.csh.in and profile.sh.in we set and then unset > > > prefix, but never use it. > > > > It is used, because the autoconf @sysconfdir@ macro expands to a > > string like "$prefix/...", which requires the shell variable $prefix > > to be set. > > O, I see. Indeed the default is '${prefix}/etc'. But I never saw that > because in a package install configure is called with everything > expanded [*]. Should have tried by hand. This is not the first time when a patch removing these definitions of "prefix" variable is proposed. In fact, I applied a similar patch in my tree last year because I always use --sysconfdir=/etc and "prefix" is a very generic name so I prefer not to tamper with it in profile scripts. -- ldv