From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27195 invoked by alias); 22 Jan 2015 04:06:00 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34339 Received: (qmail 27793 invoked from network); 22 Jan 2015 04:05:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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== MIME-Version: 1.0 X-Received: by 10.50.79.228 with SMTP id m4mr9399087igx.43.1421899543969; Wed, 21 Jan 2015 20:05:43 -0800 (PST) In-Reply-To: <150121194138.ZM10468@torch.brasslantern.com> References: <150121194138.ZM10468@torch.brasslantern.com> Date: Thu, 22 Jan 2015 05:05:43 +0100 Message-ID: Subject: Re: Modules that load but do nothing From: Mikael Magnusson To: Bart Schaefer Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On Thu, Jan 22, 2015 at 4:41 AM, Bart Schaefer 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