mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Added patch for piozone so that it now builds, and produces a binary, but it as of yet still untested.
This commit is contained in:
40
app-benchmarks/piozone/patches/piozone-1.0.patch
Normal file
40
app-benchmarks/piozone/patches/piozone-1.0.patch
Normal file
@@ -0,0 +1,40 @@
|
||||
diff -urN piozone-1.0/piozone.c piozone-1.0-haiku/piozone.c
|
||||
--- piozone-1.0/piozone.c 2002-01-28 08:14:54.022282240 +0000
|
||||
+++ piozone-1.0-haiku/piozone.c 2012-07-18 19:03:17.767295488 +0000
|
||||
@@ -12,7 +12,9 @@
|
||||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
+#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
@@ -73,7 +75,7 @@
|
||||
int count = 0;
|
||||
int nr = 0;
|
||||
|
||||
- llseek(fd, off, SEEK_SET);
|
||||
+ lseek(fd, off, SEEK_SET);
|
||||
signal(SIGALRM, sigalrm_handler);
|
||||
stopf = 0;
|
||||
printf("Testing... ");
|
||||
@@ -121,7 +123,7 @@
|
||||
printf("Testing... ");
|
||||
alarm(ts);
|
||||
while (!stopf &&
|
||||
- llseek(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 &&
|
||||
+ lseek(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 &&
|
||||
(nr = read(fd, iobuf, len)) == len)
|
||||
{
|
||||
print_dial();
|
||||
@@ -159,7 +161,7 @@
|
||||
off = 0;
|
||||
del = 64*GiB;
|
||||
|
||||
- while (del > 8*KiB && llseek(fd, off+del, SEEK_SET) != -1)
|
||||
+ while (del > 8*KiB && lseek(fd, off+del, SEEK_SET) != -1)
|
||||
{
|
||||
if (read(fd, buf, 8*KiB) < 0)
|
||||
del >>= 1;
|
||||
@@ -3,7 +3,7 @@ HOMEPAGE="http://www.lysator.se/~pen/piozone/"
|
||||
SRC_URI="ftp://ftp.lysator.liu.se/pub/unix/piozone/piozone-1.0.tar.gz"
|
||||
CHECKSUM_MD5="e48370a9aa80aed212b18e16c08b9056"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="broken"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd piozone-1.0
|
||||
@@ -11,7 +11,9 @@ BUILD {
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
|
||||
cd piozone-1.0
|
||||
mkdir -p $DESTDIR/`finddir B_COMMON_BIN_DIRECTORY`
|
||||
cp -a piozone $DESTDIR/`finddir B_COMMON_BIN_DIRECTORY`/piozone
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
|
||||
Reference in New Issue
Block a user