From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.devel Subject: Re: source and compiled file installtion locations Date: Sun, 6 May 2018 19:17:42 -0300 Message-ID: <20180506191742.27548736@capac> References: <20180503021534.0abd1de5@capac> <20180505210314.7339730a@capac> <20180506095655.19db65e8414956e1a91aff38@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_//M2C6WA91BZcP0t_pTbgLU_"; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1525644961 16401 195.159.176.226 (6 May 2018 22:16:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 May 2018 22:16:01 +0000 (UTC) Cc: guile-devel@gnu.org To: Chris Vine Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon May 07 00:15:57 2018 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFRwj-0004B3-26 for guile-devel@m.gmane.org; Mon, 07 May 2018 00:15:57 +0200 Original-Received: from localhost ([::1]:43427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFRyq-0003Dm-1Q for guile-devel@m.gmane.org; Sun, 06 May 2018 18:18:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFRyg-0003CX-Vm for guile-devel@gnu.org; Sun, 06 May 2018 18:18:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFRyd-0002le-Qo for guile-devel@gnu.org; Sun, 06 May 2018 18:17:58 -0400 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:48944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFRyd-0002jy-I7 for guile-devel@gnu.org; Sun, 06 May 2018 18:17:55 -0400 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 6F314A04C11B; Mon, 7 May 2018 00:17:54 +0200 (CEST) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id L3-fdx5gWbaS; Mon, 7 May 2018 00:17:50 +0200 (CEST) Original-Received: from capac (unknown [179.210.16.188]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 6037AA04C111; Mon, 7 May 2018 00:17:49 +0200 (CEST) In-Reply-To: <20180506095655.19db65e8414956e1a91aff38@gmail.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 79.99.200.102 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19520 Archived-At: --Sig_//M2C6WA91BZcP0t_pTbgLU_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Chris, > On Sat, 5 May 2018 21:03:14 -0300 > David Pirotte wrote: > > Hello Guilers, > > =20 > > > 1- no --use-guile-site > > >=20 > > > in this case, imo, locations should be > > >=20 > > > $(datarootdir)/ [ source =20 > >=20 > > FWIW, > >=20 > > This is what guile-gnome does, and it also does it in $(libdir), > > $(includedir) ..., > >=20 > > It does it using guile-gnome API version, not guile effective version, = which I > > also think 'projects' should do, so currently, guile-gnome pure scheme = modules > > land in: > >=20 > > $(datarootdir)/guile-gnome-2 > >=20 > > [ except for the doc, installed in > > [ $(docdor)/guile-gnome-platform/ > >=20 > > The only module that guile-gnome installs in $(datarootdir)/guile/site = (and not > > $(datarootdir)/guile/site/GUILE_EFFECTIVE_VERSION as I also claim we sh= ould not > > do this) is gnome-2, a module that users import to 'inform' guile of so= urce, lib > > locations (which they also can do sing the guile-gnome-2 script ...) =20 > Instead of using the project's $(libdir), $(datarootdir), and so forth, > I use pkgconfig to interogate guile-2.2.pc or guile-2.0.pc, and install > source (.scm) files in its revealed 'sitedir' and compiled (.go) files > in its revealed 'siteccachedir', with the base project module name > added to the path in each case. That way, even if the project > (including any of its shared library files) are installed in, say, > the /usr/local prefix, the scheme files are installed in the correct > prefix for guile. Yes, we all do this, as said in my first email, though we generally use var= iables defined by the guile m4 macros instead, GUILE_SITE .... for those who would= not know, the complete set of these variables is also in %guile-build-info ... But as I wrote in the first email as well, I believe this not the right thi= ng to do: (1) it does not respect GNU standards (without the user consent, to me this= is wrong) and (2) because, and that is a real problem, it disrespect --prefix = if given (it is very often given), and Daniel Llorens recently complained about this= (wrt guile-lib), and I agree with him ... So I started to think a bit more about this :), and came to the conclusion = that unless the user explicitly ask to 'disrespect' the GNU standards (filesyste= m), through an option, --with-guile-site or --use-guile-site [1], all projects = should respect it, which is what guile-gnome does ... This way, both --prefix and/= or --use-guile-site would work ... This approach actually correctly honors all= demands. David [1] I asked on #autotools, and they answered that although the manual impli= es --with-* is for enabling external libraries, they actually use this prefix for 'what ever...' :) I still thnk --use-guile-site is better though --Sig_//M2C6WA91BZcP0t_pTbgLU_ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAlrvfwYACgkQ83T9k6MF etf0BQf/RsuLtO5iAi2PYMYu3TOO3EZAH9R0y2J0l2tN5W7HrFus7p1pzDMHLlKs ULRGo5eva11cmkLH5miYPqg4L/dGMBl0/UiqxS7NayyTYzrNIeRJ6ssS3Hb7NkrX F9d4dugEbE2FuB0ygIU0X6/e6zuxrMEHvm4GruecCrBXEzQSo3Un/DPkh8FzaOS8 GxsHAVUPq7X/W9HKoRGf3LzVBFLFc8tB7RaeNuxoilFFhSVkmoCPlKtrY89Coung gjNnXeAT1zo6XCZ811Dx0N06HisuWQCu741Sf6WvFWDwd6WW7u+4Dw0nfZcSWkGA pDpuYZG+u2/gB4NtDf+nGmT5qgmDcw== =yzhN -----END PGP SIGNATURE----- --Sig_//M2C6WA91BZcP0t_pTbgLU_--