From: "Arsen Arsenović" <arsen@aarsen.me>
To: guile-devel <guile-devel@gnu.org>
Cc: "Arsen Arsenović" <arsen@aarsen.me>
Subject: [PATCH] build: Use PKG_INSTALL_DIR
Date: Tue, 18 Apr 2023 12:56:43 +0200 [thread overview]
Message-ID: <20230418105643.1157722-1-arsen@aarsen.me> (raw)
* 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
next reply other threads:[~2023-04-18 10:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-18 10:56 Arsen Arsenović [this message]
2024-03-26 0:44 ` [PATCH] build: Use PKG_INSTALL_DIR David Pirotte
-- strict thread matches above, loose matches on Subject: below --
2023-03-26 22:39 Arsen Arsenović
2023-03-26 22:41 ` Arsen Arsenović
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230418105643.1157722-1-arsen@aarsen.me \
--to=arsen@aarsen.me \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).