8208463: jdk.internal.vm.compiler's module-info.java.extra contains duplicated provides of the same service interface
authorkvn
Tue, 14 Aug 2018 14:08:04 -0700
changeset 51404 c5461fe16efb
parent 51403 0f3bfea3acf1
child 51405 8b23aa7cef47
8208463: jdk.internal.vm.compiler's module-info.java.extra contains duplicated provides of the same service interface Reviewed-by: mchung
make/gensrc/Gensrc-jdk.internal.vm.compiler.gmk
--- a/make/gensrc/Gensrc-jdk.internal.vm.compiler.gmk	Tue Aug 14 14:58:14 2018 -0400
+++ b/make/gensrc/Gensrc-jdk.internal.vm.compiler.gmk	Tue Aug 14 14:08:04 2018 -0700
@@ -124,7 +124,7 @@
 	($(CD) $(GENSRC_DIR)/META-INF/providers && \
 	    p=""; \
 	    impl=""; \
-	    for i in $$($(LS) | $(SORT)); do \
+	    for i in $$($(GREP) '^' * | $(SORT) -t ':' -k 2 | $(SED) 's/:.*//'); do \
 	      c=$$($(CAT) $$i | $(TR) -d '\n\r'); \
 	      if test x$$p != x$$c; then \
                 if test x$$p != x; then \