zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: <zsh-workers@zsh.org>
Subject: Modules that load but do nothing
Date: Wed, 21 Jan 2015 19:41:38 -0800	[thread overview]
Message-ID: <150121194138.ZM10468@torch.brasslantern.com> (raw)

If you configure --disable-dynamic and then force modules to be linked
by changing config.modules to "link=static", the build will create the
necessary .a file so that the linking phase completes, and loading the
module with "zmodload" will return a zero status; but it is possible in
this case for some modules to load with no features.

The plainest example of this is zsh/pcre, which will compile and link
but fail the V07 test suite.

Are there other such modules?  zsh/regex and zsh/curses, perhaps?  There
are no tests applied to the latter; the former is tested in C02.

I'd suggest that at least we do the following:

diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst
index 3a65331..3c25be2 100644
--- a/Test/V07pcre.ztst
+++ b/Test/V07pcre.ztst
@@ -1,6 +1,6 @@
 %prep
 
-  if ! zmodload zsh/pcre 2>/dev/null
+  if ! zmodload -F zsh/pcre C:pcre-match 2>/dev/null
   then
     ZTST_unimplemented="the zsh/pcre module is not available"
     return 0


             reply	other threads:[~2015-01-22  3:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-22  3:41 Bart Schaefer [this message]
2015-01-22  4:05 ` Mikael Magnusson

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=150121194138.ZM10468@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.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.
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).