--- bonnie-1.6.orig/Bonnie.c
+++ bonnie-1.6/Bonnie.c
@@ -64,7 +64,7 @@
  *  or consequential damage, loss, costs or fees or expenses of any
  *  nature or kind.
  */
-/* $Id: Bonnie.c,v 1.5 2016/02/17 13:09:47 garloff Exp $ */
+/* $Id: Bonnie.c,v 1.6 2018/11/23 09:45:08 garloff Exp $ */
 
 #include <unistd.h>
 #include <stdio.h>
@@ -449,7 +449,7 @@
 
   /* read them all back with getc() */
   for(volcnt = 0; volcnt < volumes; volcnt++)
-    newfile(name, &fd[volcnt], &stream[volcnt], 0, volcnt, o_direct);
+    newfile(name, &fd[volcnt], &stream[volcnt], 0, volcnt, 0/*+o_direct*/);
   for (words = 0; words < 256; words++)
     chars[words] = 0;
   off_t gsz = size/8;
--- bonnie-1.6.orig/debian/bonnie.install
+++ bonnie-1.6/debian/bonnie.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/bin/bonnie
+debian/tmp/usr/share/man/man1/bonnie.1.gz
--- bonnie-1.6.orig/debian/changelog
+++ bonnie-1.6/debian/changelog
@@ -0,0 +1,155 @@
+bonnie (1.6-0) stable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Sun, 17 May 2026 11:09:48 +0000
+
+bonnie (1.6-2) stable; urgency=low
+
+  * bonnie-fix-o_direct.diff: Don't use O_DIRECT for character input,
+    as newer kernels don't allow this.
+
+ -- Kurt Garloff <kurt@garloff.de>  Fri, 11 Jan 2019 11:17:49 +0100
+
+bonnie (1.6-1) stable; urgency=low
+
+  * Update to bonnie-1.6:
+    - Use 16 threads by default
+    - Smaller 4k reads (seeking)
+    - Larger blocks in intelligent read/write
+    - Smaller I/O size for char in/out
+    - More digits for formatting.
+
+ -- Kurt Garloff <kurt@garloff.de>  Fri, 11 Jan 2019 11:17:02 +0100
+
+bonnie (1.5-3) stable; urgency=low
+
+  * Use url for source
+  * Tiny spec file cleanups
+
+ -- M Pluskal <mpluskal@suse.com>  Thu, 30 Jun 2016 13:21:33 +0000
+
+bonnie (1.5-2) stable; urgency=low
+
+  * Cleanup spec file with spec-cleaner
+  * Remove ctcs packages
+
+ -- M Pluskal <mpluskal@suse.com>  Thu,  9 Apr 2015 10:56:17 +0000
+
+bonnie (1.5-1) stable; urgency=low
+
+  * Update to 1.5: Minor changes.
+
+ -- Jeff Mahoney <jeffm@suse.de>  Thu,  1 Mar 2012 16:48:56 +0100
+
+bonnie (1.4-10) stable; urgency=low
+
+  * disable ctcs for > 11.4, not available
+
+ -- Stephan Kulow <coolo@suse.com>  Wed, 21 Sep 2011 07:10:59 +0000
+
+bonnie (1.4-9) stable; urgency=low
+
+  * Remove redundant tags/sections from specfile
+  * Use %_smp_mflags for parallel build
+
+ -- Jengelh Medozas <jengelh@medozas.de>  Sat, 17 Sep 2011 20:27:30 +0000
+
+bonnie (1.4-8) stable; urgency=low
+
+  * Fix last change.
+
+ -- Andreas Jaeger <aj@suse.de>  Sun, 30 Aug 2009 15:29:18 +0000
+
+bonnie (1.4-7) stable; urgency=low
+
+  * make patch0 usage consistent
+
+ -- Michael Schroeder <mls@suse.de>  Wed, 26 Aug 2009 12:53:54 +0200
+
+bonnie (1.4-6) stable; urgency=low
+
+  * added subpackage for CTCS2 integration
+
+ -- V Marsik <vmarsik@suse.cz>  Fri, 26 Sep 2008 18:31:00 +0200
+
+bonnie (1.4-5) stable; urgency=low
+
+  * remove unused header file
+
+ -- Stephan Kulow <coolo@suse.de>  Sat, 26 Apr 2008 07:18:49 +0200
+
+bonnie (1.4-4) stable; urgency=low
+
+  * Don't build as root.
+  * Don't strip binaries.
+
+ -- Andreas Schwab <schwab@suse.de>  Mon, 22 May 2006 17:21:45 +0200
+
+bonnie (1.4-3) stable; urgency=low
+
+  * fix build on ppc64 (define PAGE_MASK if not done) 
+
+ -- Ruediger Oertel <ro@suse.de>  Fri, 19 May 2006 15:27:05 +0200
+
+bonnie (1.4-2) stable; urgency=low
+
+  * converted neededforbuild to BuildRequires
+
+ -- Michael Schroeder <mls@suse.de>  Wed, 25 Jan 2006 21:34:43 +0100
+
+bonnie (1.4-1) stable; urgency=low
+
+  * Version-1.4:
+    - Fix seek benchmark: 1.3 read too large chunks (1MB instead
+      of 16k) after every seek, resulting in too low seek numbers.
+      bug #15642
+
+ -- Kurt Garloff <garloff@suse.de>  Thu,  4 Apr 2002 15:16:23 +0200
+
+bonnie (1.3-2) stable; urgency=low
+
+  * Compile fix for archs not supporting O_DIRECT (typo)
+  * Use O_DIRECT from fcntl.h if present.
+
+ -- Kurt Garloff <garloff@suse.de>  Sat, 23 Feb 2002 23:20:39 +0100
+
+bonnie (1.3-1) stable; urgency=low
+
+  * Update to bonnie-1.3:
+    - Fixed HTML output (thanks to Rupert Kolb for notfying/patch)
+    - Optionally use O_DIRECT (patch by Chris Mason / Andrea Arc.)
+
+ -- Kurt Garloff <garloff@suse.de>  Wed, 20 Feb 2002 19:31:46 +0100
+
+bonnie (1.2-1) stable; urgency=low
+
+  * Update to 1.2:
+    - New option -u for getc_/putc_unlocked. 
+    - Fixed CPU percentage reports if equal or in excess of 100%. 
+    - Machine name defaults to hostname now.
+  * Use BuildRoot.  
+
+ -- Kurt Garloff <garloff@suse.de>  Wed, 30 Aug 2000 19:35:37 +0200
+
+bonnie (1.1-3) stable; urgency=low
+
+  * Moved manpage to /usr/share/man
+  * new options -y, -S, -p
+  * Add warning if test-size smaller memsize
+
+ -- Kurt Garloff <garloff@suse.de>  Sun, 13 Feb 2000 23:31:57 +0100
+
+bonnie (1.1-2) stable; urgency=low
+
+  * ran old prepare_spec on spec file to switch to new prepare_spec.
+
+ -- Burchard Steinbild <bs@suse.de>  Mon, 13 Sep 1999 17:23:57 +0200
+
+bonnie (1.1-1) stable; urgency=low
+
+  * Initial check in of Big Bonnie.
+  * Added breakhandler to remove temporary files.
+
+ -- Kurt Garloff <garloff@suse.de>  Tue, 20 Jul 1999 16:48:46 +0200
+
--- bonnie-1.6.orig/debian/compat
+++ bonnie-1.6/debian/compat
@@ -0,0 +1 @@
+10
--- bonnie-1.6.orig/debian/control
+++ bonnie-1.6/debian/control
@@ -0,0 +1,19 @@
+Source: bonnie
+Section: SystemUtilities
+Priority: optional
+Maintainer: Kurt Garloff <kurt@garloff.de>
+Build-Depends: debhelper (>= 4.1.16), bc, cdbs
+
+Package: bonnie
+Architecture: any
+Depends: ${shlibs:Depends}
+Suggests: bc
+Description: Bonnie is a popular performance benchmark that targets various aspects
+ of Unix file systems.
+ .
+ Authors:
+ --------
+    Tim Bray <tbray@textuality.com>
+    Kurt Garloff <garloff@suse.de>
+
+
--- bonnie-1.6.orig/debian/rules
+++ bonnie-1.6/debian/rules
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2003 Jeff Bailey <jbailey@debian.org>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+#DEB_DH_INSTALLINIT_ARGS := '--no-start'
+#DEB_DH_LINK_ARGS := ../init.d/hdparm /etc/rcS.d/S07hdparm.first
+#DEB_UPDATE_RCD_PARAMS := 'start 07 S . '
+#DEB_FIXPERMS_EXCLUDE:= 20hdparm
+
+#include /usr/share/cdbs/1/rules/dpatch.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk
+
+DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(CURDIR)/debian/tmp
+
+common-install-prehook-arch::
+	install -d $(CURDIR)/debian/tmp/usr/bin
