From: Richard Todd <richardt@vzavenue.net>
Subject: PATCH for guile-readline/Makefile.am
Date: Wed, 7 Jan 2004 15:56:37 -0600 [thread overview]
Message-ID: <20040107215637.GA5971@pazuzu> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 998 bytes --]
Please consider the following patch for inclusion in guile.
Problem: The guile-readline/Makefile unconditionally removes and
remakes a link from ice-9/readline.scm to ../readline.scm. There are
two problems with this:
1) When you run, say, 'sudo make install', the link is remade as root!
2) When you run a VPATH build, ../readline.scm does not exist.
You'd only notice (2) if you wanted to test (ice-9 readline) prior to
installation. You notice (1) quite often if you want to remove your
build tree, or even if you 'sudo make install' and then 'make' as a
normal user again.
The patch fixes both these issues. It was a bit tricky, and I could
not find a single 'ln -s' line that worked for both in-tree builds and
VPATH builds (it's harder than it sounds!). The patch just does an
'if' on $(top_srcdir) == $(top_builddir) and issues the correct
command.
If you don't like this method and can find a better way, please do so,
because we need a change to this file!
thanks,
Richard Todd
[-- Attachment #1.1.2: rdln.patch --]
[-- Type: text/plain, Size: 1015 bytes --]
--- orig/guile-core/guile-readline/ChangeLog
+++ mod/guile-core/guile-readline/ChangeLog
@@ -1,3 +1,9 @@
+2004-01-07 Richard Todd <richardt@vzavenue.net>
+
+ * Makefile.am (ice-9/readline.scm): link to $srcdir, so VPATH builds
+ work. Make the link depend on the source file, so that it doesn't
+ get re-made as a root link during 'sudo make install', for instance.
+
2003-05-04 Marius Vollmer <mvo@zagadka.de>
* configure.in: When checking whether readline clears SA_RESTART,
--- orig/guile-core/guile-readline/Makefile.am
+++ mod/guile-core/guile-readline/Makefile.am
@@ -57,11 +57,15 @@
CLEANFILES = *.x
-ice-9/readline.scm:
+ice-9/readline.scm: readline.scm
-rm ice-9/readline.scm
-rmdir ice-9
mkdir ice-9
- cd ice-9 && ln -s ../readline.scm
+ if [ "$(top_srcdir)" == "$(top_builddir)" ] ; then \
+ (cd ice-9 && $(LN_S) ../$<) \
+ else \
+ (cd ice-9 && $(LN_S) $<) \
+ fi
all-local: ice-9/readline.scm
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next reply other threads:[~2004-01-07 21:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-07 21:56 Richard Todd [this message]
2004-01-10 19:41 ` PATCH for guile-readline/Makefile.am Kevin Ryde
2004-01-10 20:57 ` Marius Vollmer
2004-01-10 23:48 ` Marius Vollmer
2004-01-13 17:38 ` Rob Browning
2004-01-14 0:51 ` Marius Vollmer
2004-01-14 7:41 ` Rob Browning
2004-01-19 18:13 ` Rob Browning
2004-01-19 22:29 ` Kevin Ryde
2004-01-20 6:23 ` Rob Browning
2004-01-20 6:49 ` Rob Browning
2004-01-21 21:31 ` Kevin Ryde
2004-01-14 20:50 ` Kevin Ryde
2004-01-15 1:17 ` Richard Todd
2004-01-16 6:42 ` Rob Browning
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=20040107215637.GA5971@pazuzu \
--to=richardt@vzavenue.net \
/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).