patches/gdb/6.3/680-debian_sim-destdir.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu May 17 16:22:51 2007 +0000 (2007-05-17)
changeset 96 aa1a9fbd6eb8
permissions -rw-r--r--
Debug facilities:
- add a framework to easily add new ones
- add gdb as a first debug facility
- add patches for gdb
After the kernel checked its installed headers, clean up the mess of .checked.* files.
Reorder scripts/crosstool.sh:
- dump the configuration early
- renice early
- get info about build system early, when setting up the environment
- when in cross or native, the host tools are those of the build system, and only in this case
- elapsed time calculations moved to scripts/functions
Remove handling of the color: it's gone once and for all.
Update tools/addToolVersion.sh:
- handle debug facilities
- commonalise some code
- remove dead tools (cygwin, tcc)
Point to my address for bug reports.
yann@96
     1
Fix some missing uses of DESTDIR in the sim/ directories.  The Debian
yann@96
     2
packages use DESTDIR to build.
yann@96
     3
yann@96
     4
%patch
yann@96
     5
Index: gdb-6.3/sim/Makefile.in
yann@96
     6
===================================================================
yann@96
     7
--- gdb-6.3.orig/sim/Makefile.in	2003-09-03 14:46:52.000000000 -0400
yann@96
     8
+++ gdb-6.3/sim/Makefile.in	2004-11-10 00:39:25.381315738 -0500
yann@96
     9
@@ -93,6 +93,7 @@ FLAGS_TO_PASS = \
yann@96
    10
 	"CC=$(CC)" \
yann@96
    11
 	"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
yann@96
    12
 	"CFLAGS=$(CFLAGS)" \
yann@96
    13
+	"DESTDIR=$(DESTDIR)" \
yann@96
    14
 	"RANLIB=$(RANLIB)" \
yann@96
    15
 	"MAKEINFO=$(MAKEINFO)" \
yann@96
    16
 	"INSTALL=$(INSTALL)" \
yann@96
    17
Index: gdb-6.3/sim/common/Make-common.in
yann@96
    18
===================================================================
yann@96
    19
--- gdb-6.3.orig/sim/common/Make-common.in	2003-09-08 13:24:59.000000000 -0400
yann@96
    20
+++ gdb-6.3/sim/common/Make-common.in	2004-11-10 00:39:25.383315347 -0500
yann@96
    21
@@ -581,14 +581,14 @@ install: install-common $(SIM_EXTRA_INST
yann@96
    22
 
yann@96
    23
 install-common: installdirs
yann@96
    24
 	n=`echo run | sed '$(program_transform_name)'`; \
yann@96
    25
-	$(INSTALL_PROGRAM) run$(EXEEXT) $(bindir)/$$n$(EXEEXT)
yann@96
    26
+	$(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
yann@96
    27
 	n=`echo libsim.a | sed s/libsim.a/lib$(target_alias)-sim.a/`; \
yann@96
    28
-	$(INSTALL_DATA) libsim.a $(libdir)/$$n ; \
yann@96
    29
-	( cd $(libdir) ; $(RANLIB) $$n )
yann@96
    30
+	$(INSTALL_DATA) libsim.a $(DESTDIR)$(libdir)/$$n ; \
yann@96
    31
+	( cd $(DESTDIR)$(libdir) ; $(RANLIB) $$n )
yann@96
    32
 
yann@96
    33
 installdirs:
yann@96
    34
-	$(SHELL) $(srcdir)/../../mkinstalldirs $(bindir)
yann@96
    35
-	$(SHELL) $(srcdir)/../../mkinstalldirs $(libdir)
yann@96
    36
+	$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir)
yann@96
    37
+	$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir)
yann@96
    38
 
yann@96
    39
 check:
yann@96
    40
 	cd ../testsuite && $(MAKE) check RUNTESTFLAGS="$(RUNTESTFLAGS)"
yann@96
    41
Index: gdb-6.3/sim/erc32/Makefile.in
yann@96
    42
===================================================================
yann@96
    43
--- gdb-6.3.orig/sim/erc32/Makefile.in	2000-03-07 10:32:49.000000000 -0500
yann@96
    44
+++ gdb-6.3/sim/erc32/Makefile.in	2004-11-10 00:39:25.385314957 -0500
yann@96
    45
@@ -53,7 +53,7 @@ end.h: end
yann@96
    46
 # Copy the files into directories where they will be run.
yann@96
    47
 install-sis: installdirs
yann@96
    48
 	n=`echo sis | sed '$(program_transform_name)'`; \
yann@96
    49
-	$(INSTALL_PROGRAM) sis$(EXEEXT) $(bindir)/$$n$(EXEEXT)
yann@96
    50
+	$(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
yann@96
    51
 
yann@96
    52
 clean-sis:
yann@96
    53
 	rm -f sis end end.h