This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: cross toolchain vs. info files
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Nick Clifton'" <nickc at redhat dot com>
- Cc: <binutils at sourceware dot org>
- Date: Tue, 10 Jan 2006 10:42:01 -0000
- Subject: RE: cross toolchain vs. info files
Nick Clifton wrote:
> Hi Dave,
>
>
>> Does anyone know why this is? Is there some problem that I can't see?
>
> I assume that this was just an oversight.
>
>> Would it be possible to get "make install" to prepend the target prefix
>> while it's copying the files across?
>
> Yes.
>
>> Would that be all that was needed?
>
> I believe so. Obviously this would need to be tested, but the patch
> ought to be small. Would you like to volunteer to develop it ?
>
> Cheers
> Nick
Would overriding install-info-am in Makefile.am be the proper approach? I
was trying this patch, but don't know if I'm using $transform in the right way
yet, and have run into autotools-spaghetti problems that have prevented me
from actually testing it yet...
Index: Makefile.am
===================================================================
RCS file:
/sources/repository/external_source/gnu/binutils-x.xx/ld/Makefile.am,v
retrieving revision 1.1
diff -p -u -r1.1 Makefile.am
--- Makefile.am 20 May 2004 16:24:27 -0000 1.1
+++ Makefile.am 10 Jan 2006 10:39:34 -0000
@@ -1465,6 +1465,31 @@ ld.dvi: $(srcdir)/ld.texinfo configdoc.t
TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
MAKEINFO="$(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc" $(TEXI2DVI) -I
$(BFDDIR)/doc $(srcdir)/ld.texinfo
+#override with new ver.
+install-info-am: $(INFO_DEPS)
+ @$(NORMAL_INSTALL)
+ $(mkinstalldirs) $(DESTDIR)$(infodir)
+ @list='$(INFO_DEPS)'; \
+ for file in $$list; do \
+ if test -f $$file; then d=.; else d=$(srcdir); fi; \
+ for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`;
do \
+ if test -f $$d/$$ifile; then \
+ inst=`echo $$ifile | sed '$(transform)'`.$$ext; \
+ echo " $(INSTALL_DATA)$$d/$$ifile $(DESTDIR)$(man1dir)/$$inst"; \
+ $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
+ else : ; fi; \
+ done; \
+ done
+ @$(POST_INSTALL)
+ @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i
debian' >/dev/null 2>&1; then \
+ list='$(INFO_DEPS)'; \
+ for file in $$list; do \
+ inst=`echo $$file | sed '$(transform)'`.$$ext; \
+ echo " install-info --info-dir=$(DESTDIR)$(infodir)
$(DESTDIR)$(infodir)/$$inst";\
+ install-info --info-dir=$(DESTDIR)$(infodir)
$(DESTDIR)$(infodir)/$$inst || :;\
+ done; \
+ else : ; fi
+
# Build the man page from the texinfo file
# The sed command removes the no-adjust Nroff command so that
# the man output looks standard.
I keep on running into this problem:
creating ./config.status
creating Makefile
creating po/Makefile.in
creating config.h
make[1]: Entering directory `/repository/gcc-build/binutils/ld'
cd . && /bin/sh ./config.status config.h
Usage: ./config.status [--recheck] [--version] [--help]
make[1]: *** [stamp-h1] Error 1
make[1]: Leaving directory `/repository/gcc-build/binutils/ld'
make: *** [all-ld] Error 2
dk@espanola /repository/gcc-build/binutils>
...which I think is a symptom of new auto* vs. old binutils sources arising in
my cygwin environment. Still working on it.
cheers,
DaveK
--
Can't think of a witty .sigline today....