From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: pkg-config support Date: Sun, 04 May 2008 22:06:58 +0200 Message-ID: <878wypesv1.fsf@gnu.org> References: <87lk2xd5qp.fsf@gnu.org> <87r6cpf11e.fsf@ambire.localdomain> <87r6cna7gl.fsf@gnu.org> <87fxt3scez.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1209931652 3375 80.91.229.12 (4 May 2008 20:07:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 May 2008 20:07:32 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun May 04 22:08:08 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JskVE-0005Ed-5v for guile-devel@m.gmane.org; Sun, 04 May 2008 22:08:08 +0200 Original-Received: from localhost ([127.0.0.1]:48165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JskUW-00062e-JS for guile-devel@m.gmane.org; Sun, 04 May 2008 16:07:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JskUR-00062R-9i for guile-devel@gnu.org; Sun, 04 May 2008 16:07:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JskUP-00062E-P3 for guile-devel@gnu.org; Sun, 04 May 2008 16:07:19 -0400 Original-Received: from [199.232.76.173] (port=58899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JskUP-00062B-GZ for guile-devel@gnu.org; Sun, 04 May 2008 16:07:17 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JskUP-0004uG-2t for guile-devel@gnu.org; Sun, 04 May 2008 16:07:17 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JskUI-0005pt-Gb for guile-devel@gnu.org; Sun, 04 May 2008 20:07:10 +0000 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 May 2008 20:07:10 +0000 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 May 2008 20:07:10 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 54 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 =?iso-8859-1?Q?Flor=E9al?= an 216 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i686-pc-linux-gnu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:afO23dk4ZP10R58BFL67Qwq11HU= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7209 Archived-At: Hi, Thien-Thi Nguyen writes: > () ludo@gnu.org (Ludovic Courtès) > () Wed, 30 Apr 2008 13:49:14 +0200 > > Having a package that installs its modules to $(GUILE_SITE) instead > of $prefix/something is Bad(tm) as it breaks user expectations and > the GCS (see "Variables for Installation Directories") > > I guess i will disagree on user expectations. I'm a (strange, granted) > user and when i install Emacs Lisp, i expect there to be a `lispdir' > (with defaults under Emacs' tree, but customizable, of course), and > likewise for both .scm and .so files, under GUILE_SITE and > GUILE_LIBSITE, respectively. What I meant by "it breaks user expectations and the GCS" is that, if a package installs its modules to GUILE_SITE regardless of the user-provided $prefix, then it breaks the expectation that everything the package installs falls under $prefix unless explicitly asked to do otherwise. > This is because Emacs advertizes its "site" directory and nicely handles > third-party files installed there. Likewise Guile w/ its "site". In > Guile 1.4.x (and, as you may know, also for Guile 1.6.x), specially > crafted shared object files somewhere under %load-path (either "site" or > "libsite") can be handled just as well as scheme files, w/o any libtool > hassles. Sure, but that's the same problem if one installs a library under /foo instead of /lib or /usr/lib: the linker/loader search path has to be upgraded accordingly, and Libtool actually warns you about it at installation time. In several `configure.ac', I have this: if test "$guilemoduledir" != "$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 `GUILE_SITE' ($GUILE_SITE).]) AC_MSG_WARN([Make sure to adjust the `GUILE_LOAD_PATH' environment variable accordingly,]) AC_MSG_WARN([or re-run `configure' with `--with-guilemoduledir=$GUILE_SITE'.]) fi > and it makes it impossible to run `distcheck' anyway. > > Could you please explain this (or point me to some relevant docs)? Often, installing to GUILE_SITE requires root privileges, which prevents `distcheck' from working when run as a user. I hope this clarifies my position. Thanks, Ludovic.