zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Misc. module stuff
Date: Wed, 1 Mar 2000 18:21:39 +0000	[thread overview]
Message-ID: <1000301182139.ZM11795@candle.brasslantern.com> (raw)

"make check" now fails for statically linked zsh because zpty is not a
standard linked-in module.  I can't think of any reasonable fix except
to make the failure somewhat less noisy by attempting to load zpty in
the %prep section of 53completion.ztst.

Then while attempting to get zpty linked in so that I could run the test,
I discovered that INSTALL is somewhat out of date with respect to usage
of mymods.conf, and that adding a mymods.conf did not cause a rebuild of
modules-bltin and its dependents, nor did editing xmods.conf directly.

I added a dummy rule for building mymods.conf so that make won't choke
on a dependency on it for modules-bltin.

Index: INSTALL
===================================================================
@@ -97,6 +97,13 @@
 module name per line with no punctuation and no suffix.  See the zshmodules
 manual page for the list of available modules.
 
+Note that mymods.conf replaces the standard list of linked-in modules from
+Src/xmods.conf.  If you wish to add to the standard list, copy the lines
+that begin with "L " from xmods.conf into mymods.conf and remove the "L "
+from each such line in mymods.conf.  Then add the names of other modules
+that you want to link.  Module names typically must begin with "zsh/";
+only modules appearing in Src/Aliases/*.mdd may omit the "zsh/" prefix.
+
 Note that the modules depending on zle or complete (e.g.: complist and
 deltochar) cannot be loaded dynamically on systems which do not allow symbols
 in one dynamically loaded library to be visible from another; this is true,
Index: Src/Makefile.in
===================================================================
@@ -128,7 +128,10 @@
 
 # ========== LINKING IN MODULES ==========
 
-modules-bltin: Makefile
+mymods.conf:
+	@echo Linking with the standard modules.
+
+modules-bltin: Makefile $(sdir)/xmods.conf mymods.conf
 	if test -f mymods.conf; then \
 	    cat mymods.conf > $@; \
 	elif test @D@ = N; then \
Index: Test/53completion.ztst
===================================================================
@@ -1,6 +1,7 @@
 # Tests for completion system.
 
 %prep
+  zmodload -i zsh/zpty
 
   comptest () { $ZTST_testdir/../Src/zsh -f $ZTST_srcdir/comptest -z $ZTST_testdir/../Src/zsh -d $ZTST_testdir/compdump.tmp "$@" }
 
Index: Test/comptest
===================================================================
@@ -1,6 +1,6 @@
 #!/usr/local/bin/zsh -f
 
-zmodload zsh/zpty
+zmodload -i zsh/zpty
 setopt extendedglob
 
 debug=

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


             reply	other threads:[~2000-03-01 18:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-01 18:21 Bart Schaefer [this message]
2000-03-01 18:40 ` Bart Schaefer
2000-03-01 19:01   ` Tanaka Akira

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1000301182139.ZM11795@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).