X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=tools%2Fdosfstools%2Fpatches%2F0008-Makefile-avoid-using-install-D.patch;fp=tools%2Fdosfstools%2Fpatches%2F0008-Makefile-avoid-using-install-D.patch;h=ad59577c1661ba572ca40226be646121503076ae;hb=223468546da753b4d98479de2fc74e5a5d70edb3;hp=0000000000000000000000000000000000000000;hpb=3c0ea6ecede0319f4ce1d448c65dd11c95b05720;p=openwrt%2Fstaging%2Fwigyori.git diff --git a/tools/dosfstools/patches/0008-Makefile-avoid-using-install-D.patch b/tools/dosfstools/patches/0008-Makefile-avoid-using-install-D.patch new file mode 100644 index 0000000000..ad59577c16 --- /dev/null +++ b/tools/dosfstools/patches/0008-Makefile-avoid-using-install-D.patch @@ -0,0 +1,43 @@ +From 02b5a6d9a407daebe903fe64fb1b22673aaa7e92 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= +Date: Thu, 26 Feb 2015 12:51:23 +0100 +Subject: [PATCH 08/14] Makefile: avoid using install -D +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +OS X and FreeBSD are not compatible with this option + +Signed-off-by: Álvaro Fernández Rojas +Signed-off-by: Andreas Bombe +--- + Makefile | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index d25510f..1593f3d 100644 +--- a/Makefile ++++ b/Makefile +@@ -62,7 +62,8 @@ install-man: + for MANPAGE in manpages/en/*; \ + do \ + SECTION="8"; \ +- install -D -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/man$${SECTION}/$$(basename $${MANPAGE}); \ ++ mkdir -p $(DESTDIR)/$(MANDIR)/man$${SECTION}/; \ ++ install -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/man$${SECTION}/$$(basename $${MANPAGE}); \ + done + + for LANGUAGE in $(LANGUAGES); \ +@@ -70,7 +71,8 @@ install-man: + for MANPAGE in manpages/$${LANGUAGE}/*; \ + do \ + SECTION="8"; \ +- install -D -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \ ++ mkdir -p $(DESTDIR)/$(MANDIR)/$${LANGUAGE}/man$${SECTION}/; \ ++ install -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \ + done; \ + done + install-symlinks: install-bin install-man +-- +1.9.1 +