From c132498b1719595e377c3b651124bd10e4fc29d3 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sun, 19 Sep 2004 04:32:53 +0000 Subject: Support DESTDIR on upstream makefiles. --- debian/changelog | 1 + debian/patches/01_makefiles_DESTDIR.patch | 43 +++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 debian/patches/01_makefiles_DESTDIR.patch (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 2bf38f5..be33014 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ gnumach (1:20040915-1) unstable; urgency=low * Added myself to Uploaders. * Cleaned and updated debian/copyright file. * Honour DEB_BUILD_OPTIONS. + * Support DESTDIR on upstream makefiles. * Split patches into debian/patches/. * Allow to build natively on non GNU/Hurd systems. * Enable i386, kfreebsd-i386 and knetbsd-i386 on all packages. diff --git a/debian/patches/01_makefiles_DESTDIR.patch b/debian/patches/01_makefiles_DESTDIR.patch new file mode 100644 index 0000000..e2a1a14 --- /dev/null +++ b/debian/patches/01_makefiles_DESTDIR.patch @@ -0,0 +1,43 @@ +#DPATCHLEVEL=1 + +2004-09-19 Guillem Jover + + * Makefile.in: Honour DESTDIR on installation targets. + + +diff -Naur gnumach-20040915.orig/Makefile.in gnumach-20040915/Makefile.in +--- gnumach-20040915.orig/Makefile.in 2004-09-19 05:35:01.000000000 +0200 ++++ gnumach-20040915/Makefile.in 2004-09-19 05:31:17.000000000 +0200 +@@ -334,23 +334,25 @@ + install: install-headers install-kernel + + $(installed-headers-names): $(includedir)/%: $(srcdir)/include/% +- $(INSTALL_DATA) $< $@ ++ $(INSTALL_DATA) $< $(DESTDIR)$@ + + $(installed-sysdep-headers-names): $(includedir)/%: $(sysdep)/include/% +- $(INSTALL_DATA) $< $@ ++ $(INSTALL_DATA) $< $(DESTDIR)$@ + + install-headers: mkheaderdirs $(installed-headers-names) $(installed-sysdep-headers-names) +- ln -sf $(systype) $(includedir)/mach/machine ++ ln -sf $(systype) $(DESTDIR)$(includedir)/mach/machine + + install-kernel: kernel mkkerneldirs +- $(INSTALL_PROGRAM) kernel $(bootdir)/gnumach ++ $(INSTALL_PROGRAM) kernel $(DESTDIR)$(bootdir)/gnumach + + mkheaderdirs: +- mkdir -p $(includedir) $(includedir)/device $(includedir)/mach \ +- $(includedir)/mach/$(systype) $(includedir)/mach/exec ++ mkdir -p $(DESTDIR)$(includedir) $(DESTDIR)$(includedir)/device \ ++ $(DESTDIR)$(includedir)/mach \ ++ $(DESTDIR)$(includedir)/mach/$(systype) \ ++ $(DESTDIR)$(includedir)/mach/exec + + mkkerneldirs: +- mkdir -p $(bootdir) ++ mkdir -p $(DESTDIR)$(bootdir) + + + # -- cgit v1.2.3