zsh-workers
 help / color / mirror / code / Atom feed
From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: Re: pcre test failures
Date: Wed, 26 Oct 2011 19:49:17 +0900	[thread overview]
Message-ID: <a06001001cacd95106de1@kba.biglobe.ne.jp> (raw)
In-Reply-To: <20111026062750.GA27151@redoubt.spodhuis.org>

I got similar errors with the recent CVS head.

Vin Shelton has reported two types of errors from V07pcre.ztst:

[1] V07pcre.ztst is run even if the module pcre.so is not built
(i.e., if --enable-pcre is not specified for ./configure).
Then the test fails with an error like "failed to load module 'zsh/pcre'".
This is quite annoying.
To avoid this the "%prep" section of the V07pcre.ztst must be modified
as follows:

if zmodload zsh/pcre 2>/dev/null; then
  ....(current %prep section goes into here)
else
  ZTST_unimplemented="the zsh/pcre module is not available"
fi

[2] If --enable-pcre is specified for ./configure
but the pcre-config command is not installed on the host,
then virtually empty pcre.so is built.
I guess this is the second case in the Vin's post.
pcre-config (and pcre.h etc.) are in pcre-dev (or similar) package in
many Linux distros. Once I installed this package it worked fine
(tested on Fedora14).

I think it would be better to modify configure.ac so that enable-pcre
is reset to "no" if pcre-config command is not found. 


  reply	other threads:[~2011-10-26 11:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-26  1:58 Vin Shelton
2011-10-26  6:27 ` Phil Pennock
2011-10-26 10:49   ` Jun T. [this message]
2011-10-26 12:48     ` Peter Stephenson
2011-10-26 18:15       ` Vin Shelton
2011-10-26 18:30     ` Bart Schaefer
2011-10-26 23:32       ` Phil Pennock
2011-10-26 11:34   ` Vin Shelton

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=a06001001cacd95106de1@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --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).