summaryrefslogtreecommitdiff
path: root/benchmarks/fio/patches/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/fio/patches/patch-Makefile')
-rw-r--r--benchmarks/fio/patches/patch-Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/benchmarks/fio/patches/patch-Makefile b/benchmarks/fio/patches/patch-Makefile
new file mode 100644
index 00000000000..3c06fe90cf0
--- /dev/null
+++ b/benchmarks/fio/patches/patch-Makefile
@@ -0,0 +1,29 @@
+$NetBSD: patch-Makefile,v 1.1 2017/02/04 12:50:23 ryoon Exp $
+
+Convert the fmt(1) command to a tr(1) one (the fmt(1) old syntax command is not
+supported on all Unix systems).
+
+--- Makefile.orig 2017-01-17 15:51:31.000000000 +0000
++++ Makefile
+@@ -319,8 +319,8 @@ override CFLAGS += -DFIO_VERSION='"$(FIO
+ @$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(SRCDIR)/$*.c > $*.d
+ @mv -f $*.d $*.d.tmp
+ @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d
+- @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -w 1 | \
+- sed -e 's/^ *//' -e 's/$$/:/' >> $*.d
++ @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | tr -cs "[:graph:]" "\n" | \
++ sed -e 's/^ *//' -e '/^$$/ d' -e 's/$$/:/' >> $*.d
+ @rm -f $*.d.tmp
+
+ ifdef CONFIG_ARITHMETIC
+@@ -358,8 +358,8 @@ init.o: init.c FIO-VERSION-FILE
+ @$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(SRCDIR)/$*.c > $*.d
+ @mv -f $*.d $*.d.tmp
+ @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d
+- @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -w 1 | \
+- sed -e 's/^ *//' -e 's/$$/:/' >> $*.d
++ @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | tr -cs "[:graph:]" "\n" | \
++ sed -e 's/^ *//' -e '/^$$/ d' -e 's/$$/:/' >> $*.d
+ @rm -f $*.d.tmp
+
+ gcompat.o: gcompat.c gcompat.h