|
|
6c0556 |
commit fc5bfade69ca12d034967dc6b929dbe3dd715172
|
|
|
6c0556 |
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
|
|
|
6c0556 |
Date: Mon Jun 7 14:22:20 2021 +0530
|
|
|
6c0556 |
|
|
|
6c0556 |
iconvdata: Move gconv-modules configuration to gconv-modules.conf
|
|
|
6c0556 |
|
|
|
6c0556 |
Move all gconv-modules configuration files to gconv-modules.conf.
|
|
|
6c0556 |
That is, the S390 extensions now become gconv-modules-s390.conf. Move
|
|
|
6c0556 |
both configuration files into gconv-modules.d.
|
|
|
6c0556 |
|
|
|
6c0556 |
Now GCONV_PATH/gconv-modules is read only for backward compatibility
|
|
|
6c0556 |
for third-party gconv modules directories.
|
|
|
6c0556 |
|
|
|
6c0556 |
Reviewed-by: DJ Delorie <dj@redhat.com>
|
|
|
6c0556 |
|
|
|
6c0556 |
# Conflicts:
|
|
|
6c0556 |
# iconvdata/Makefile
|
|
|
6c0556 |
|
|
|
6c0556 |
diff --git a/iconvdata/Makefile b/iconvdata/Makefile
|
|
|
6c0556 |
index 32656ad31d9b434b..fc403e8abe3cc11f 100644
|
|
|
6c0556 |
--- a/iconvdata/Makefile
|
|
|
6c0556 |
+++ b/iconvdata/Makefile
|
|
|
6c0556 |
@@ -136,10 +136,13 @@ charmaps = ../localedata/charmaps
|
|
|
6c0556 |
extra-modules-left := $(modules)
|
|
|
6c0556 |
include extra-module.mk
|
|
|
6c0556 |
|
|
|
6c0556 |
+gconv-modules = gconv-modules.conf
|
|
|
6c0556 |
+modpfx = $(objpfx)gconv-modules.d/
|
|
|
6c0556 |
|
|
|
6c0556 |
extra-objs += $(modules.so)
|
|
|
6c0556 |
install-others = $(addprefix $(inst_gconvdir)/, $(modules.so)) \
|
|
|
6c0556 |
- $(inst_gconvdir)/gconv-modules
|
|
|
6c0556 |
+ $(addprefix $(inst_gconvdir)/gconv-modules.d/, \
|
|
|
6c0556 |
+ $(gconv-modules))
|
|
|
6c0556 |
|
|
|
6c0556 |
# We can build the conversion tables for numerous charsets automatically.
|
|
|
6c0556 |
|
|
|
6c0556 |
@@ -181,7 +184,7 @@ generated += $(generated-modules:=.h) $(generated-modules:=.stmp) \
|
|
|
6c0556 |
iconv-test.out iconv-rules tst-loading.mtrace \
|
|
|
6c0556 |
mtrace-tst-loading.out tst-tables.out iconv-test.xxx
|
|
|
6c0556 |
ifdef objpfx
|
|
|
6c0556 |
-generated += gconv-modules
|
|
|
6c0556 |
+generated += $(addprefix gconv-modules.d/,$(gconv-modules))
|
|
|
6c0556 |
endif
|
|
|
6c0556 |
|
|
|
6c0556 |
# Rules to generate the headers.
|
|
|
6c0556 |
@@ -249,7 +252,8 @@ headers: $(addprefix $(objpfx), $(generated-modules:=.h))
|
|
|
6c0556 |
$(addprefix $(inst_gconvdir)/, $(modules.so)): \
|
|
|
6c0556 |
$(inst_gconvdir)/%: $(objpfx)% $(+force)
|
|
|
6c0556 |
$(do-install-program)
|
|
|
6c0556 |
-$(inst_gconvdir)/gconv-modules: $(objpfx)gconv-modules $(+force)
|
|
|
6c0556 |
+$(addprefix $(inst_gconvdir)/gconv-modules.d/, $(gconv-modules)): \
|
|
|
6c0556 |
+ $(inst_gconvdir)/gconv-modules.d/%: $(modpfx)% $(+force)
|
|
|
6c0556 |
$(do-install)
|
|
|
6c0556 |
ifeq (no,$(cross-compiling))
|
|
|
6c0556 |
# Update the $(prefix)/lib/gconv/gconv-modules.cache file. This is necessary
|
|
|
6c0556 |
@@ -297,29 +301,30 @@ $(objpfx)mtrace-tst-loading.out: $(objpfx)tst-loading.out
|
|
|
6c0556 |
$(common-objpfx)malloc/mtrace $(objpfx)tst-loading.mtrace > $@; \
|
|
|
6c0556 |
$(evaluate-test)
|
|
|
6c0556 |
|
|
|
6c0556 |
-$(objpfx)bug-iconv1.out: $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)bug-iconv1.out: $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so))
|
|
|
6c0556 |
-$(objpfx)bug-iconv2.out: $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)bug-iconv2.out: $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so))
|
|
|
6c0556 |
$(objpfx)bug-iconv3: $(libdl)
|
|
|
6c0556 |
-$(objpfx)bug-iconv3.out: $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)bug-iconv3.out: $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so))
|
|
|
6c0556 |
-$(objpfx)bug-iconv5.out: $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)bug-iconv5.out: $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so))
|
|
|
6c0556 |
-$(objpfx)tst-loading.out: $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)tst-loading.out: $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so))
|
|
|
6c0556 |
-$(objpfx)tst-iconv4.out: $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)tst-iconv4.out: $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so))
|
|
|
6c0556 |
-$(objpfx)tst-iconv7.out: $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)tst-iconv7.out: $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so))
|
|
|
6c0556 |
-$(objpfx)bug-iconv10.out: $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)bug-iconv10.out: $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so))
|
|
|
6c0556 |
-$(objpfx)bug-iconv12.out: $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)bug-iconv12.out: $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so))
|
|
|
6c0556 |
-$(objpfx)bug-iconv14.out: $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)bug-iconv14.out: $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so))
|
|
|
6c0556 |
|
|
|
6c0556 |
-$(objpfx)iconv-test.out: run-iconv-test.sh $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)iconv-test.out: run-iconv-test.sh \
|
|
|
6c0556 |
+ $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so)) \
|
|
|
6c0556 |
$(common-objdir)/iconv/iconv_prog TESTS
|
|
|
6c0556 |
iconv_modules="$(modules)" \
|
|
|
6c0556 |
@@ -327,7 +332,8 @@ $(objpfx)iconv-test.out: run-iconv-test.sh $(objpfx)gconv-modules \
|
|
|
6c0556 |
'$(run-program-env)' > $@; \
|
|
|
6c0556 |
$(evaluate-test)
|
|
|
6c0556 |
|
|
|
6c0556 |
-$(objpfx)tst-tables.out: tst-tables.sh $(objpfx)gconv-modules \
|
|
|
6c0556 |
+$(objpfx)tst-tables.out: tst-tables.sh \
|
|
|
6c0556 |
+ $(addprefix $(modpfx), $(gconv-modules)) \
|
|
|
6c0556 |
$(addprefix $(objpfx),$(modules.so)) \
|
|
|
6c0556 |
$(objpfx)tst-table-from $(objpfx)tst-table-to
|
|
|
6c0556 |
$(SHELL) $< $(common-objpfx) $(common-objpfx)iconvdata/ \
|
|
|
6c0556 |
@@ -340,5 +346,8 @@ do-tests-clean common-mostlyclean: tst-tables-clean
|
|
|
6c0556 |
tst-tables-clean:
|
|
|
6c0556 |
-rm -f $(objpfx)tst-*.table $(objpfx)tst-EUC-TW.irreversible
|
|
|
6c0556 |
|
|
|
6c0556 |
-$(objpfx)gconv-modules: gconv-modules
|
|
|
6c0556 |
- cat $(sysdeps-gconv-modules) $^ > $@
|
|
|
6c0556 |
+$(modpfx):
|
|
|
6c0556 |
+ mkdir -p $@
|
|
|
6c0556 |
+
|
|
|
6c0556 |
+$(modpfx)%: % $(modpfx)
|
|
|
6c0556 |
+ cp $< $@
|
|
|
6c0556 |
diff --git a/iconvdata/gconv-modules b/iconvdata/gconv-modules.conf
|
|
|
6c0556 |
similarity index 100%
|
|
|
6c0556 |
rename from iconvdata/gconv-modules
|
|
|
6c0556 |
rename to iconvdata/gconv-modules.conf
|
|
|
6c0556 |
diff --git a/localedata/Makefile b/localedata/Makefile
|
|
|
6c0556 |
index 14fcc37fed21e740..a5ca7a31f43d50c3 100644
|
|
|
6c0556 |
--- a/localedata/Makefile
|
|
|
6c0556 |
+++ b/localedata/Makefile
|
|
|
6c0556 |
@@ -179,7 +179,7 @@ install-others := $(addprefix $(inst_i18ndir)/, \
|
|
|
6c0556 |
$(locales))
|
|
|
6c0556 |
endif
|
|
|
6c0556 |
|
|
|
6c0556 |
-tests: $(objdir)/iconvdata/gconv-modules
|
|
|
6c0556 |
+tests: $(objdir)/iconvdata/gconv-modules.d/gconv-modules.conf
|
|
|
6c0556 |
|
|
|
6c0556 |
tests-static += tst-langinfo-newlocale-static tst-langinfo-setlocale-static
|
|
|
6c0556 |
|
|
|
6c0556 |
@@ -442,5 +442,5 @@ $(objpfx)mtrace-tst-leaks.out: $(objpfx)tst-leaks.out
|
|
|
6c0556 |
bug-setlocale1-ENV-only = LOCPATH=$(objpfx) LC_CTYPE=de_DE.UTF-8
|
|
|
6c0556 |
bug-setlocale1-static-ENV-only = $(bug-setlocale1-ENV-only)
|
|
|
6c0556 |
|
|
|
6c0556 |
-$(objdir)/iconvdata/gconv-modules:
|
|
|
6c0556 |
+$(objdir)/iconvdata/gconv-modules.d/gconv-modules.conf:
|
|
|
6c0556 |
$(MAKE) -C ../iconvdata subdir=iconvdata $@
|
|
|
6c0556 |
diff --git a/sysdeps/s390/Makefile b/sysdeps/s390/Makefile
|
|
|
6c0556 |
index 8bc82e523f9049db..5c8e1170b4d799ba 100644
|
|
|
6c0556 |
--- a/sysdeps/s390/Makefile
|
|
|
6c0556 |
+++ b/sysdeps/s390/Makefile
|
|
|
6c0556 |
@@ -21,13 +21,25 @@ lib := iconvdata
|
|
|
6c0556 |
include $(patsubst %,$(..)libof-iterator.mk,$(cpp-srcs-left))
|
|
|
6c0556 |
|
|
|
6c0556 |
extra-objs += $(addsuffix .so, $(s390x-iconv-modules))
|
|
|
6c0556 |
-install-others += $(patsubst %, $(inst_gconvdir)/%.so, $(s390x-iconv-modules))
|
|
|
6c0556 |
+install-others += $(patsubst %, $(inst_gconvdir)/%.so, \
|
|
|
6c0556 |
+ $(s390x-iconv-modules)) \
|
|
|
6c0556 |
+ $(inst_gconvdir)/gconv-modules.d/gconv-modules-s390.conf
|
|
|
6c0556 |
|
|
|
6c0556 |
$(patsubst %, $(inst_gconvdir)/%.so, $(s390x-iconv-modules)) : \
|
|
|
6c0556 |
$(inst_gconvdir)/%.so: $(objpfx)%.so $(+force)
|
|
|
6c0556 |
$(do-install-program)
|
|
|
6c0556 |
|
|
|
6c0556 |
-sysdeps-gconv-modules = ../sysdeps/s390/gconv-modules
|
|
|
6c0556 |
+ifdef objpfx
|
|
|
6c0556 |
+generated += gconv-modules.d/gconv-modules-s390.conf
|
|
|
6c0556 |
+endif
|
|
|
6c0556 |
+
|
|
|
6c0556 |
+$(inst_gconvdir)/gconv-modules.d/gconv-modules-s390.conf: \
|
|
|
6c0556 |
+ $(modpfx)gconv-modules-s390.conf $(+force)
|
|
|
6c0556 |
+ $(do-install)
|
|
|
6c0556 |
+
|
|
|
6c0556 |
+$(modpfx)gconv-modules-s390.conf: ../sysdeps/s390/gconv-modules-s390.conf \
|
|
|
6c0556 |
+ $(modpfx)
|
|
|
6c0556 |
+ cp $< $@
|
|
|
6c0556 |
endif
|
|
|
6c0556 |
|
|
|
6c0556 |
ifeq ($(subdir),string)
|
|
|
6c0556 |
diff --git a/sysdeps/s390/gconv-modules b/sysdeps/s390/gconv-modules-s390.conf
|
|
|
6c0556 |
similarity index 100%
|
|
|
6c0556 |
rename from sysdeps/s390/gconv-modules
|
|
|
6c0556 |
rename to sysdeps/s390/gconv-modules-s390.conf
|