Re: Bug#240887: Package building problem.
- To: Frank K?ster <frank@kuesterei.ch>
- Cc: Kurt Roeckx <Q@ping.be>, 240887@bugs.debian.org, libc6@packages.debian.org
- Subject: Re: Bug#240887: Package building problem.
- From: Herbert Xu <herbert@gondor.apana.org.au>
- Date: Thu, 15 Apr 2004 21:40:05 +1000
- Message-id: <[🔎] 20040415114005.GA31489@gondor.apana.org.au>
- In-reply-to: <87r7uqlqii.fsf@alhambra.bioz.unibas.ch>
- References: <20040329220017.GD11305@preusse-16223.user.cis.dfn.de> <87u0ztwgka.fsf@alhambra.bioz.unibas.ch> <20040409192919.GA13873@ping.be> <87ptadqoqh.fsf@alhambra.bioz.unibas.ch> <20040412150846.GA22974@ping.be> <87hdvpp4sc.fsf@alhambra.bioz.unibas.ch> <20040412163112.GA23168@ping.be> <87vfk40vzv.fsf@alhambra.bioz.unibas.ch> <20040413172054.GA26397@ping.be> <87r7uqlqii.fsf@alhambra.bioz.unibas.ch>
clone 240887 -1
retitle -1 fnmatch breaks on [\]]
submitter -1 herbert@gondor.apana.org.au
reassign -1 libc6
tags 240887 pending
quit
On Wed, Apr 14, 2004 at 01:59:01PM +0200, Frank K?ster wrote:
>
> This is how dash calls it in _some_ subdirectories:
>
> configuring in tetex
> running /bin/sh ./configure --prefix=/usr --enable-ipc --without-dialog\
> --without-texinfo --with-system-ncurses --with-x --with-system-zlib \
> --with-system-pnglib --with-system-tifflib --with-system-wwwlib \
> --with-system-t1lib --disable-multiplatform --enable-shared \
> --mandir=/usr/share/man --infodir=${prefix}/share/info \
> --cache-file=.././config.cache --srcdir=.
> loading cache .././config.cache
>
> That is, dash replaced the first occurence of ${prefix} by the variable
> expansion. This shouldn't happen, because it is enclosed in single
> quotes.
This is caused by dash's use of fnmatch(3) which appears to break
on patterns containing [\]...].
Here is a sample program to demonstrate it.
#include <stdio.h>
#include <fnmatch.h>
int main(int argc, char **argv)
{
printf("%d\n", fnmatch("[\\]a]", "a", 0));
return 0;
}
I will disable fnmatch(3) in dash for now.
--
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Reply to: