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