From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Newsgroups: gmane.lisp.guile.devel Subject: [PATCH] build: Use PKG_INSTALL_DIR Date: Tue, 18 Apr 2023 12:56:43 +0200 Message-ID: <20230418105643.1157722-1-arsen@aarsen.me> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5764"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Apr 18 12:58:52 2023 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1poj2y-0001IR-6W for guile-devel@m.gmane-mx.org; Tue, 18 Apr 2023 12:58:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poj2l-0006x5-KK; Tue, 18 Apr 2023 06:58:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poj2j-0006wm-MQ for guile-devel@gnu.org; Tue, 18 Apr 2023 06:58:37 -0400 Original-Received: from mout-p-202.mailbox.org ([80.241.56.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1poj2h-0001rU-DV for guile-devel@gnu.org; Tue, 18 Apr 2023 06:58:37 -0400 Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4Q119v6vDMz9spL; Tue, 18 Apr 2023 12:58:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1681815507; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=sIeFfGoMDis+qQx9dihpaAO9afdBxtBjXOoO5F+T7eA=; b=hbpFst0vyyK5z0B8euThJepvihUl3NGdCGigi7JFUR412fZXZnzd9IQaVopM/Hb8gFaTmj sBrxQca+BFAcxh1sM490M+vGaI2ewg95WykPr0iNqWW57DjhIz3vjuQ8aYhrU9wkAI0i++ 8aiuo6r1O72YnZb+X+j9rPFlgPr3Dph1cgQKbyj1y4eRls+Kq2/ga0QQfPvBSQjGR6NvzS OAWAUDJAYhTM5nOg5TEzSZaV4XpFDxPZGHVyEsIxpn+JJUe5a1JEkeyXZ4q49NDDcDiuqU GoubQCuCzub5a6U7+OQ9qXi8awyWhOVwUaE8Co+K5TPb+iUYrX96i/Gy+FpSuQ== X-Rspamd-Queue-Id: 4Q119v6vDMz9spL Received-SPF: pass client-ip=80.241.56.172; envelope-from=arsen@aarsen.me; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21806 Archived-At: * configure.ac: Call PKG_INSTALL_DIR to set pkgconfigdir. * Makefile.am (pkgconfigdir): Remove. Will be set via AC_SUBST. --- Hi there, This patch is in a similar vein to my earlier patch to Guile itself posted at https://lists.gnu.org/archive/html/guile-devel/2023-03/msg00040.html These came up while I was working on packaging Guile in Gentoo. My current plan with this is to install the guile-lib pkg-config file alongside its matching Guile versions, in order to support parallel installation, seeing as otherwise two guile-lib builds against two Guile versions collide in the pkg-config file they install. Also, on a similar note, guile-lib installs to /usr/share/guile/site/ rather than /usr/share/guile/site/$EV (i.e. %global-site-dir instead of %site-dir) like other packages do. Why is that the case? In this instance, it's probably okay as guile-lib installs identical Scheme code for different Guile effective versions, but I'm not sure that can be said about the general case. Should guile-lib use %site-dir? Thanks in advance, have a lovely day. Makefile.am | 1 - configure.ac | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 4f981d1..47805b3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,7 +25,6 @@ #### -pkgconfigdir=$(libdir)/pkgconfig pkgconfig_DATA=meta/guile-lib-1.0.pc SUBDIRS = \ diff --git a/configure.ac b/configure.ac index 7171296..3070aa4 100644 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,7 @@ GUILE_SITE_DIR GUILE_GLOBAL_SITE_DIR GUILE_SITE_CCACHE_DIR GUILE_FLAGS +PKG_INSTALLDIR dnl This argument is passed to guild; it ensures cross-compiling uses dnl the right target. -- 2.40.0