From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.lisp.guile.user Subject: Re: configuring apps for guile Date: Mon, 17 Feb 2020 10:21:50 +0100 Message-ID: <87zhdhbmc1.fsf@gnu.org> References: <5f967b74-9704-bd49-de82-97a2f1c665df@gmail.com> <87tv3q1tco.fsf@gnu.org> <87tv3qza7c.fsf@gnu.org> <52bfb232-34a2-dfa6-8261-9309b97071f8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="115921"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Guile User To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Feb 17 10:22:07 2020 Return-path: Envelope-to: guile-user@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 1j3cbO-000U1g-OI for guile-user@m.gmane-mx.org; Mon, 17 Feb 2020 10:22:06 +0100 Original-Received: from localhost ([::1]:42380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3cbN-0002ws-Kv for guile-user@m.gmane-mx.org; Mon, 17 Feb 2020 04:22:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51139) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3cbB-0002uh-2G for guile-user@gnu.org; Mon, 17 Feb 2020 04:21:53 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j3cbA-0007fL-LZ; Mon, 17 Feb 2020 04:21:52 -0500 Original-Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=46640 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j3cbA-0006dl-1t; Mon, 17 Feb 2020 04:21:52 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 =?utf-8?Q?Pluvi=C3=B4se?= an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: <52bfb232-34a2-dfa6-8261-9309b97071f8@gmail.com> (Matt Wette's message of "Sun, 16 Feb 2020 10:12:42 -0800") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16200 Archived-At: Hi, Matt Wette skribis: > On 2/16/20 9:57 AM, Ludovic Court=C3=A8s wrote: >> Hi, >> >> Matt Wette skribis: >> >>> What if you have a system that gives this (e.g., Ubuntu 18.04): >>> >>> mwette$ /usr/bin/guile -c "(display (assq-ref %guile-build-info >>> 'prefix)) (newline)" >>> /usr >>> >>> mwette$ /usr/bin/guile -c "(display (%site-ccache-dir)) (newline)" >>> /usr/lib/x86_64-linux-gnu/guile/2.2/site-ccache >>> >>> I'm not sure that guile will find .go files installed in >>> /usr/lib/guile/2.2/site-ccache. >> I guess you would run: >> >> ./configure --prefix=3D/usr --libdir=3D/usr/lib/x86_64-linux-gnu >> >> in that case. >> >> Does that make sense? >> >> Ludo=E2=80=99. > Yes, but some naive person (like me, for example) would never guess > that is what is required.=C2=A0 (I ran into this installing bytestructure= s, > IIRC). > And the info is in pkgconfig/guile-2.2.pc, but still requires chasing down > that resource.=C2=A0=C2=A0 Still thinking about it ... Perhaps what =E2=80=98configure.ac=E2=80=99 could do is provide a hint when= there=E2=80=99s a mismatch. In some packages I have: GUILE_SITE_DIR pkgdatadir=3D"$datadir/$PACKAGE_NAME" if test "x$guilemoduledir" =3D "x"; then guilemoduledir=3D"${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION" guileobjectdir=3D"${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache" else guileobjectdir=3D"$guilemoduledir" fi AC_SUBST([guilemoduledir]) AC_SUBST([guileobjectdir]) if test "$guilemoduledir" !=3D "$GUILE_SITE"; then # Guile won't be able to locate the module "out of the box", so # warn the user. AC_MSG_WARN([`guilemoduledir' ($guilemoduledir) is different from `GUI= LE_SITE' ($GUILE_SITE).]) AC_MSG_WARN([Make sure to adjust the `GUILE_LOAD_PATH' environment var= iable accordingly,]) AC_MSG_WARN([or re-run `configure' with `--with-guilemoduledir=3D$GUIL= E_SITE'.]) fi The bottom line is that =E2=80=98configure=E2=80=99 can=E2=80=99t guess wha= t the user wants. Ludo=E2=80=99.