Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Modules that load but do nothing
- X-seq: zsh-workers 34339
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Modules that load but do nothing
- Date: Thu, 22 Jan 2015 05:05:43 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UKvFuiA6JH/zXnboYbLCvj0zuTnfIGq0lQEqYv+12+k=; b=vW6+RXI+Cm+ALd1/ZxHYMQswO13AdQvlExlKecovEc0zcudDQF2UYOqlBXUhOx0FTp tHubFpQ5A8SW2SVSpZRAljGIgg3ZNdX/kKX+L758teE/9o7z8e2Ha6bQmOsKaaqKfsBc 14N5rTR42UZF4k7q6+pJ5nV5O60qFw1y6hx+ct+LDEGDmLsJPELs/z43cYOU7IOuoUZb /NKelUM60O3ZZ8ZgjyqkcVcHRj0T2xu+3lSknOq8LdFP6VnDPfAl+P7Tca5i6bXP3dNF HznJDshXoLmLJLfhnTAhf0wV/gimyX5+9Csf3qoYB+M3DRZTcS+ioaxSOcvoEgeLTgu5 rjbg==
- In-reply-to: <150121194138.ZM10468@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <150121194138.ZM10468@torch.brasslantern.com>
On Thu, Jan 22, 2015 at 4:41 AM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> 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
I was trying to link zsh against musl the other week to test some
unicode 6.1 stuff, and ended up with a terminfo module that didn't
provide echoti or $terminfo. I haven't looked at any tests in relation
to that though.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author