Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Misc. module stuff



"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



Messages sorted by: Reverse Date, Date, Thread, Author