Subject: bug#12830: charset.alias incorrect path

From: Eric Blake <[email-masked]>
Date: Wed, 07 Nov 2012 17:59:19 -0700

On 11/07/2012 05:52 PM, Matias A. fonzo wrote:
> Hi there,
> 
> The path for the installed file "charset.alias" is already set by
> $(libdir), it is composed as $(libdir)/lib wrongly in Makefile.in. This
> is at the line 3001 on Makefile.in (coreutils 8.20):
> 
> charset_alias = $(DESTDIR)$(libdir)/charset.alias
> 
> I provide a difference fixing the path:
> 
> --- Makefile.in.orig	2012-10-23 13:26:32.000000000 -0300
> +++ Makefile.in	2012-11-07 17:04:26.000000000 -0300
> @@ -2998,7 +2998,7 @@
>  	lib/waitpid.c lib/wcrtomb.c lib/wcswidth.c lib/wcwidth.c \
>  	lib/write.c lib/xstrtod.c
>  GPERF = gperf
> -charset_alias = $(DESTDIR)$(libdir)/lib/charset.alias
> +charset_alias = $(DESTDIR)$(libdir)/charset.alias
>  charset_tmp = $(DESTDIR)$(libdir)/charset.tmp

Thanks for the report.  Hmm, this snippet is originally copied in from
gnulib, but in gnulib, it was already correct:

modules/localcharset:charset_alias = $(DESTDIR)$(libdir)/charset.alias

So I suspect a bug in the bootstrap script that is converting things
incorrectly when it attempts to normalize path names during a gnulib import.

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