Patch: PR 6081
Tom Tromey
tromey@redhat.com
Tue Apr 9 18:19:00 GMT 2002
Rainer (et al)
Could you try this patch? It fixes PR 6081. It works fine on my
Linux box, but of course that doesn't help us test for the bug, it
just verifies that I didn't break anything.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
Fix for PR libgcj/6081:
* Makefile.in: Rebuilt.
* Makefile.am (install-data-local): Use GNU make trick to avoid
shell limit.
Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.am,v
retrieving revision 1.202.2.8
diff -u -r1.202.2.8 Makefile.am
--- Makefile.am 26 Mar 2002 00:53:16 -0000 1.202.2.8
+++ Makefile.am 10 Apr 2002 01:16:10 -0000
@@ -346,13 +346,17 @@
## hand.
install-data-local:
$(PRE_INSTALL)
- @for f in $(nat_headers) $(extra_headers); do \
+## We use a GNU make trick here so that we don't go over the command
+## length limit of some shells.
+ @: $(shell echo Creating list of headers to install...) $(shell rm -f tmp-ilist || :) $(shell touch tmp-ilist) $(foreach hdr,$(nat_headers) $(extra_headers),$(shell echo $(hdr) >> tmp-ilist))
+ @cat tmp-ilist | while read f; do \
d="`echo $$f | sed -e 's,/[^/]*$$,,'`"; \
$(mkinstalldirs) $(DESTDIR)$(includedir)/$$d; \
if test -f $(srcdir)/$$f; then p=$(srcdir)/$$f; else p=$$f; fi; \
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/$$f"; \
$(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/$$f; \
done
+ -@rm -f tmp-ilist
## FIXME: the obvious approach using lib_DATA doesn't work with
## automake 1.4.
$(mkinstalldirs) $(DESTDIR)$(secdir)
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.in,v
retrieving revision 1.216.2.11
diff -u -r1.216.2.11 Makefile.in
--- Makefile.in 27 Mar 2002 16:40:17 -0000 1.216.2.11
+++ Makefile.in 10 Apr 2002 01:16:15 -0000
@@ -3357,13 +3357,15 @@
install-data-local:
$(PRE_INSTALL)
- @for f in $(nat_headers) $(extra_headers); do \
+ @: $(shell echo Creating list of headers to install...) $(shell rm -f tmp-ilist || :) $(shell touch tmp-ilist) $(foreach hdr,$(nat_headers) $(extra_headers),$(shell echo $(hdr) >> tmp-ilist))
+ @cat tmp-ilist | while read f; do \
d="`echo $$f | sed -e 's,/[^/]*$$,,'`"; \
$(mkinstalldirs) $(DESTDIR)$(includedir)/$$d; \
if test -f $(srcdir)/$$f; then p=$(srcdir)/$$f; else p=$$f; fi; \
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/$$f"; \
$(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/$$f; \
done
+ -@rm -f tmp-ilist
$(mkinstalldirs) $(DESTDIR)$(secdir)
@for f in classpath.security libgcj.security; do \
echo " $(INSTALL_DATA) $(srcdir)/java/security/$$f $(DESTDIR)$(secdir)/$$f"; \
More information about the Java-patches
mailing list