Subject: bug#11419: Get rid of ylwrap, and simplify yacc/lex rules

From: Eric Blake <[email-masked]>
Date: Tue, 08 May 2012 08:21:05 -0600

[adding coreutils, bug-gnulib]

On 05/08/2012 04:48 AM, Akim Demaille wrote:

> This is why bison gets (in my VPATH-build where builddir is two
> levels down inside srcdir):
> 
> #line 277 "parse-gram.y"
> #line 2271 "../../../src/parse-gram.c"
> 
> with a properly computed relative path, it should be
> "parse-gram.c".  This is what the patch was fixing.
> 
> This is painful and regularly results in Emacs not being able
> to find the file where the error occurred.
> 
> This should be fixed before 2.5.1 imho.  I'll see if gnulib
> offers something to compute relative paths.

Coreutils has code to compute relative paths; used by both 'realpath'
and 'ln'; maybe it's time to graduate that to a full-blown gnulib module
now that we want to use it elsewhere.

-- 
Eric Blake   [email-masked]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org