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:
Scott McCreary
2012-07-18 22:02:47 +00:00
parent 670a160ce6
commit f0abba3eca
2 changed files with 44 additions and 2 deletions

View 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;

View File

@@ -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"