179894
commit 06a1b794073c4d6adbfb2e4b11339985a14d7a00
179894
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
179894
Date:   Mon Jun 14 11:09:56 2021 +0530
179894
179894
    Reinstate gconv-modules as the default configuration file
179894
    
179894
    Reinstate gconv-modules as the main file so that the configuration
179894
    files in gconv-modules.d/ become add-on configuration.  With this, the
179894
    effective user visible change is that GCONV_PATH can now have
179894
    supplementary configuration in GCONV_PATH/gconv-modules.d/ in addition
179894
    to the main GCONV_PATH/gconv-modules file.
179894
179894
# Conflicts:
179894
#	iconvdata/Makefile
179894
179894
diff --git a/iconvdata/Makefile b/iconvdata/Makefile
179894
index d682a98b5c4a8003..95e5fb8f722a513b 100644
179894
--- a/iconvdata/Makefile
179894
+++ b/iconvdata/Makefile
179894
@@ -136,13 +136,12 @@ charmaps = ../localedata/charmaps
179894
 extra-modules-left := $(modules)
179894
 include extra-module.mk
179894
 
179894
-gconv-modules = gconv-modules.conf gconv-modules-extra.conf
179894
+gconv-modules = gconv-modules gconv-modules.d/gconv-modules-extra.conf
179894
 modpfx = $(objpfx)gconv-modules.d/
179894
 
179894
 extra-objs	+= $(modules.so)
179894
 install-others	= $(addprefix $(inst_gconvdir)/, $(modules.so))	\
179894
-		  $(addprefix $(inst_gconvdir)/gconv-modules.d/, \
179894
-			      $(gconv-modules))
179894
+		  $(addprefix $(inst_gconvdir)/, $(gconv-modules))
179894
 
179894
 # We can build the conversion tables for numerous charsets automatically.
179894
 
179894
@@ -184,7 +183,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 += $(addprefix gconv-modules.d/,$(gconv-modules))
179894
+generated += $(gconv-modules)
179894
 endif
179894
 
179894
 # Rules to generate the headers.
179894
@@ -252,8 +251,8 @@ headers: $(addprefix $(objpfx), $(generated-modules:=.h))
179894
 $(addprefix $(inst_gconvdir)/, $(modules.so)): \
179894
     $(inst_gconvdir)/%: $(objpfx)% $(+force)
179894
 	$(do-install-program)
179894
-$(addprefix $(inst_gconvdir)/gconv-modules.d/, $(gconv-modules)): \
179894
-    $(inst_gconvdir)/gconv-modules.d/%: $(modpfx)% $(+force)
179894
+$(addprefix $(inst_gconvdir)/, $(gconv-modules)): \
179894
+    $(inst_gconvdir)/%: $(objpfx)% $(+force)
179894
 	$(do-install)
179894
 ifeq (no,$(cross-compiling))
179894
 # Update the $(prefix)/lib/gconv/gconv-modules.cache file. This is necessary
179894
@@ -301,30 +300,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: $(addprefix $(modpfx), $(gconv-modules)) \
179894
+$(objpfx)bug-iconv1.out: $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			 $(addprefix $(objpfx),$(modules.so))
179894
-$(objpfx)bug-iconv2.out: $(addprefix $(modpfx), $(gconv-modules)) \
179894
+$(objpfx)bug-iconv2.out: $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			 $(addprefix $(objpfx),$(modules.so))
179894
 $(objpfx)bug-iconv3: $(libdl)
179894
-$(objpfx)bug-iconv3.out: $(addprefix $(modpfx), $(gconv-modules)) \
179894
+$(objpfx)bug-iconv3.out: $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			 $(addprefix $(objpfx),$(modules.so))
179894
-$(objpfx)bug-iconv5.out: $(addprefix $(modpfx), $(gconv-modules)) \
179894
+$(objpfx)bug-iconv5.out: $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			 $(addprefix $(objpfx),$(modules.so))
179894
-$(objpfx)tst-loading.out: $(addprefix $(modpfx), $(gconv-modules)) \
179894
+$(objpfx)tst-loading.out: $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			  $(addprefix $(objpfx),$(modules.so))
179894
-$(objpfx)tst-iconv4.out: $(addprefix $(modpfx), $(gconv-modules)) \
179894
+$(objpfx)tst-iconv4.out: $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			 $(addprefix $(objpfx),$(modules.so))
179894
-$(objpfx)tst-iconv7.out: $(addprefix $(modpfx), $(gconv-modules)) \
179894
+$(objpfx)tst-iconv7.out: $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			 $(addprefix $(objpfx),$(modules.so))
179894
-$(objpfx)bug-iconv10.out: $(addprefix $(modpfx), $(gconv-modules)) \
179894
+$(objpfx)bug-iconv10.out: $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			  $(addprefix $(objpfx),$(modules.so))
179894
-$(objpfx)bug-iconv12.out: $(addprefix $(modpfx), $(gconv-modules)) \
179894
+$(objpfx)bug-iconv12.out: $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			  $(addprefix $(objpfx),$(modules.so))
179894
-$(objpfx)bug-iconv14.out: $(addprefix $(modpfx), $(gconv-modules)) \
179894
+$(objpfx)bug-iconv14.out: $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			  $(addprefix $(objpfx),$(modules.so))
179894
 
179894
 $(objpfx)iconv-test.out: run-iconv-test.sh \
179894
-			 $(addprefix $(modpfx), $(gconv-modules)) \
179894
+			 $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			 $(addprefix $(objpfx),$(modules.so)) \
179894
 			 $(common-objdir)/iconv/iconv_prog TESTS
179894
 	iconv_modules="$(modules)" \
179894
@@ -333,7 +332,7 @@ $(objpfx)iconv-test.out: run-iconv-test.sh \
179894
 	$(evaluate-test)
179894
 
179894
 $(objpfx)tst-tables.out: tst-tables.sh \
179894
-			 $(addprefix $(modpfx), $(gconv-modules)) \
179894
+			 $(addprefix $(objpfx), $(gconv-modules)) \
179894
 			 $(addprefix $(objpfx),$(modules.so)) \
179894
 			 $(objpfx)tst-table-from $(objpfx)tst-table-to
179894
 	$(SHELL) $< $(common-objpfx) $(common-objpfx)iconvdata/ \
179894
@@ -351,3 +350,6 @@ $(modpfx):
179894
 
179894
 $(modpfx)%: % $(modpfx)
179894
 	cp $< $@
179894
+
179894
+$(objpfx)gconv-modules: gconv-modules
179894
+	cp $^ $@
179894
diff --git a/iconvdata/gconv-modules.conf b/iconvdata/gconv-modules
179894
similarity index 100%
179894
rename from iconvdata/gconv-modules.conf
179894
rename to iconvdata/gconv-modules
179894
diff --git a/localedata/Makefile b/localedata/Makefile
179894
index a5ca7a31f43d50c3..14fcc37fed21e740 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.d/gconv-modules.conf
179894
+tests: $(objdir)/iconvdata/gconv-modules
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.d/gconv-modules.conf:
179894
+$(objdir)/iconvdata/gconv-modules:
179894
 	$(MAKE) -C ../iconvdata subdir=iconvdata $@