[RFC libX11 2/2] nls: Verify Compose at build

Ran Benita ran234 at gmail.com
Thu Apr 6 18:37:02 UTC 2017


On Sun, Apr 02, 2017 at 10:27:28PM +0500, Mihail Konev wrote:
> Signed-off-by: Mihail Konev <k.mvc at ya.ru>
> ---
>  nls/Makefile.am | 18 +++++++++++-------
>  1 file changed, 11 insertions(+), 7 deletions(-)
> 
> diff --git a/nls/Makefile.am b/nls/Makefile.am
> index 57665fff4282..c0f0d0c7181f 100644
> --- a/nls/Makefile.am
> +++ b/nls/Makefile.am
> @@ -24,7 +24,7 @@ locale.alias: locale.alias.pre
>          < locale.alias.l1 > locale.alias.l2
>  	cat locale.alias.l2 locale.alias.l1 > locale.alias
>  
> -compose.dir: compose.dir.pre
> +compose.dir: compose.dir.pre compose-check
>  	$(AM_V_GEN)$(RAWCPP) $(RAWCPPFLAGS) $(CPP_FILES_FLAGS) < $(srcdir)/compose.dir.pre | $(CPP_SED_MAGIC) > compose.dir.l1
>  	$(SED) -e '/^[^#][^	 ]*:/s/://' -e '/^[^#].*[	 ].*:/d' \
>          < compose.dir.l1 > compose.dir.l2
> @@ -36,12 +36,6 @@ locale.dir: locale.dir.pre
>          < locale.dir.l1 > locale.dir.l2
>  	cat locale.dir.l2 locale.dir.l1 > locale.dir
>  
> -if HAVE_PERL
> -LOG_COMPILER = $(PERL)

I don't think you should remove this. I have no idea what it does, but
it seems to have some function:
https://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=3cdb6c3a1646f670afa03d424ec12ac418181d1e

Ran

> -TESTS = compose-check.pl
> -endif HAVE_PERL
> -
> -
>  # Per-locale data files
>  
>  XI18N_FILES = $(locales:%=%/XI18N_OBJS)
> @@ -54,3 +48,13 @@ nobase_x11locale_DATA = $(XLC_FILES) $(COMPOSE_FILES)
>  EXTRA_DIST += $(nobase_x11locale_DATA:%=%.pre)
>  CLEANFILES += $(nobase_x11locale_DATA)
>  
> +# Checks for per-locale data files
> +
> +compose-check: $(COMPOSE_FILES)
> +if HAVE_PERL
> +	@ $(PERL) $(srcdir)/compose-check.pl
> +else !HAVE_PERL
> +	@:
> +endif !HAVE_PERL
> +
> +.PHONY: compose-check
> -- 
> 2.9.2


More information about the xorg-devel mailing list