From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Chris Vine Newsgroups: gmane.lisp.guile.devel Subject: Re: source and compiled file installtion locations Date: Sun, 6 May 2018 09:56:55 +0100 Message-ID: <20180506095655.19db65e8414956e1a91aff38@gmail.com> References: <20180503021534.0abd1de5@capac> <20180505210314.7339730a@capac> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1525596902 18497 195.159.176.226 (6 May 2018 08:55:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 May 2018 08:55:02 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun May 06 10:54:58 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 1fFFRa-0004hH-IP for guile-devel@m.gmane.org; Sun, 06 May 2018 10:54:58 +0200 Original-Received: from localhost ([::1]:41360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFFTh-0004De-Cs for guile-devel@m.gmane.org; Sun, 06 May 2018 04:57:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFFTa-0004DO-AS for guile-devel@gnu.org; Sun, 06 May 2018 04:57:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFFTX-00031B-8x for guile-devel@gnu.org; Sun, 06 May 2018 04:57:02 -0400 Original-Received: from mail-wr0-x22a.google.com ([2a00:1450:400c:c0c::22a]:42352) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fFFTX-00030Z-0y for guile-devel@gnu.org; Sun, 06 May 2018 04:56:59 -0400 Original-Received: by mail-wr0-x22a.google.com with SMTP id v5-v6so24960071wrf.9 for ; Sun, 06 May 2018 01:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=ZJFHekR0G44l825baP5FCWFzvmvHos6GcuHBSRUKtDM=; b=cbs33+mDeGf725J1rrsTf5u9EpVrpAT96SvtLtH7U8ugT431sxlKsog0Y5U8Ojf1v5 l7T5S6X31h03iHkTs/Noa+J8818oX8jva7RvWNY2JrqL4fjj4Ukgcc7ajZeZ8fMxeklY PnifT98FN60Om38kEwOMxvCH7sa12Ss6vvGsjand3fyaIEQpYp+pC1JXih1h1Buq1fc6 wZXyRgWsO3zSTNjXT0LiN6GihRLlNfSpIHT4WAAbxATrBSR8gR+NPAZYTdhIdpSO+wMO zNqZ/bL3n+gEfYBC1T1IeL8ksZas0t5iup9brg9gYTLReLfpXr+nl8TlGbEAZZNxqPOu UgIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZJFHekR0G44l825baP5FCWFzvmvHos6GcuHBSRUKtDM=; b=VSrcSPvygBGRFbs/3tGbY2MUCOeBPhuzgQ82j/kgvMeDXp4/L0beLsVWVksucdT1N2 snp/L9aJsvEo4X3j6fuA6nH8xYoslsJYE4J8XwsQZ7jVKlDwMycCc+XHGBrzoxv4W0LT 0yoM6D8askHoc+z+44IixIDlgSSkxRRUrFDha0alAfWd8Z6XIA7SXEGQbmgwv9GUvdoM oyDyX3+88ssCxCyFnDmyZe8K5jTcSDjSCZWidseUsWaG0Pk6yLBCxkLfciNvS3C4JIMp itU4dA6V5NY/TMi+FC4mJ4IUhhG842ZY6Bil8R+WQeXd9xhPgXN8T9khM1OQyWbAxbwE c0qA== X-Gm-Message-State: ALQs6tDUosvawUOu7dAOOvqC/q+xYY4xwFBt/HT+UhkIHSqTfhSGNOSz MjEs+gsG+c+d0l7iYSvqWBrSxg== X-Google-Smtp-Source: AB8JxZrIEQE/PkT6bVuc0wSfI25grXTOXGmBL2QY3dRHG9ywMZ00sqyRJ6uQeqS/FEZ81JMBV3DX8Q== X-Received: by 2002:adf:c908:: with SMTP id m8-v6mr27793770wrh.6.1525597017407; Sun, 06 May 2018 01:56:57 -0700 (PDT) Original-Received: from bother.homenet ([2.24.141.86]) by smtp.gmail.com with ESMTPSA id c27-v6sm26145169wrg.75.2018.05.06.01.56.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 May 2018 01:56:56 -0700 (PDT) Original-Received: from bother.homenet (localhost [127.0.0.1]) by bother.homenet (Postfix) with SMTP id 26F2C26152F for ; Sun, 6 May 2018 09:56:55 +0100 (BST) In-Reply-To: <20180505210314.7339730a@capac> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22a 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:19519 Archived-At: On Sat, 5 May 2018 21:03:14 -0300 David Pirotte wrote: > Hello Guilers, > > > 1- no --use-guile-site > > > > in this case, imo, locations should be > > > > $(datarootdir)/ [ source > > FWIW, > > This is what guile-gnome does, and it also does it in $(libdir), $(includedir) ..., > > 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: > > $(datarootdir)/guile-gnome-2 > > [ except for the doc, installed in > [ $(docdor)/guile-gnome-platform/ > > The only module that guile-gnome installs in $(datarootdir)/guile/site (and not > $(datarootdir)/guile/site/GUILE_EFFECTIVE_VERSION as I also claim we should not do > this) is gnome-2, a module that users import to 'inform' guile of source, lib > locations (which they also can do sing the guile-gnome-2 script ...) 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. That is presumably why 'sitedir' and 'siteccachedir' are exposed by pkgconfig. Chris