unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: pkg-config support
Date: Sun, 04 May 2008 22:06:58 +0200	[thread overview]
Message-ID: <878wypesv1.fsf@gnu.org> (raw)
In-Reply-To: 87fxt3scez.fsf@ambire.localdomain

Hi,

Thien-Thi Nguyen <ttn@gnuvola.org> 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.





  reply	other threads:[~2008-05-04 20:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-28 21:33 pkg-config support Ludovic Courtès
2008-04-29  9:44 ` Thien-Thi Nguyen
2008-04-30 11:49   ` Ludovic Courtès
2008-04-30 13:24     ` Thien-Thi Nguyen
2008-05-04 20:06       ` Ludovic Courtès [this message]
2008-05-25 18:17         ` Thien-Thi Nguyen
2008-05-01 16:21     ` Andy Wingo
2008-05-05  7:28       ` Ludovic Courtès
2008-05-01  8:59 ` Neil Jerram
2008-05-04 20:36   ` Ludovic Courtès

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=878wypesv1.fsf@gnu.org \
    --to=ludo@gnu.org \
    --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).