pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/benchmarks/randread Patch out use of sys/disklabel.h a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f74488ebb096
branches:  trunk
changeset: 643882:f74488ebb096
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Thu Jan 01 09:22:23 2015 +0000

description:
Patch out use of sys/disklabel.h and sys/ioctl.h (neither is actually used)
and remove associated unnecessary ONLY_FOR_PLATFORM restriction.

diffstat:

 benchmarks/randread/Makefile                 |   4 +---
 benchmarks/randread/distinfo                 |   3 ++-
 benchmarks/randread/patches/patch-randread.c |  16 ++++++++++++++++
 3 files changed, 19 insertions(+), 4 deletions(-)

diffs (53 lines):

diff -r 356df4e81faf -r f74488ebb096 benchmarks/randread/Makefile
--- a/benchmarks/randread/Makefile      Thu Jan 01 09:14:31 2015 +0000
+++ b/benchmarks/randread/Makefile      Thu Jan 01 09:22:23 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2014/10/09 14:06:00 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2015/01/01 09:22:23 dholland Exp $
 #
 
 DISTNAME=      randread-0.2
@@ -10,8 +10,6 @@
 COMMENT=       Program to help benchmark random disk read performance
 LICENSE=       public-domain
 
-ONLY_FOR_PLATFORM=     DragonFly-*-* FreeBSD-*-* NetBSD-*-* OpenBSD-*-*
-
 BUILD_TARGET=  randread
 WRKSRC=                ${WRKDIR}/${DISTNAME}
 
diff -r 356df4e81faf -r f74488ebb096 benchmarks/randread/distinfo
--- a/benchmarks/randread/distinfo      Thu Jan 01 09:14:31 2015 +0000
+++ b/benchmarks/randread/distinfo      Thu Jan 01 09:22:23 2015 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2011/02/03 14:15:12 obache Exp $
+$NetBSD: distinfo,v 1.6 2015/01/01 09:22:23 dholland Exp $
 
 SHA1 (randread-0.2.tar.gz) = 5085d07cb6c4395d018addb4ab81f060473ea620
 RMD160 (randread-0.2.tar.gz) = e8806da27cc231748b9416b16949c4921abc1d91
@@ -6,4 +6,5 @@
 SHA1 (patch-Makefile) = 0b709cc55687b274eda350cd263477644964c6e9
 SHA1 (patch-filelist.c) = eee8bb8586cdcc568e8cf44965465d5f1885cd93
 SHA1 (patch-filelist__test.c) = 15bf7f34db587812061f2e9aa5bf743c72ad458a
+SHA1 (patch-randread.c) = a9a1a156a3b25dec68f2b95e2a223b80b70141d2
 SHA1 (patch-test.c) = 0257aea93fdc12840c12e3818672fc8e4c2fb232
diff -r 356df4e81faf -r f74488ebb096 benchmarks/randread/patches/patch-randread.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmarks/randread/patches/patch-randread.c      Thu Jan 01 09:22:23 2015 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-randread.c,v 1.1 2015/01/01 09:22:23 dholland Exp $
+
+This does not actually use either disklabel.h or ioctl.h, so improve
+portability by not including them.
+
+--- randread.c~        2002-09-11 06:25:46.000000000 +0000
++++ randread.c
+@@ -9,8 +9,6 @@ char VERSION[] = "@(#) randread v0.2 200
+ 
+ #include <sys/types.h>
+ 
+-#include <sys/disklabel.h>
+-#include <sys/ioctl.h>
+ #include <sys/stat.h>
+ #include <sys/time.h>
+ #include <errno.h>



Home | Main Index | Thread Index | Old Index