bc: minor fixes.

* get tests running.
This commit is contained in:
Adrien Destugues
2014-10-14 15:00:08 +02:00
parent 2f69ff1c01
commit b625ac2ec2
3 changed files with 50 additions and 13 deletions

View File

@@ -22,6 +22,7 @@ PROVIDES="
REQUIRES="
haiku >= $haikuVersion
lib:libfl >= 2
"
BUILD_REQUIRES="
@@ -52,5 +53,7 @@ INSTALL()
TEST()
{
timetest
make check
cd Test
./timetest
}

View File

@@ -1,12 +0,0 @@
diff -urN bc-1.06/Test/timetest bc-1.06-haiku/Test/timetest
--- bc-1.06/Test/timetest 2000-07-07 23:34:10.023592960 +0000
+++ bc-1.06-haiku/Test/timetest 2010-12-13 09:35:03.000000000 +0000
@@ -2,7 +2,7 @@
#
# Time the functions.
#
-SYSBC=/usr/bin/bc
+SYSBC=/boot/common/bin/bc
if [ x$BC = x ] ; then
BC=../bc/bc
fi

View File

@@ -0,0 +1,46 @@
From 0c328c9104371b5e135c130ee87c410830f5689b Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Tue, 14 Oct 2014 14:54:27 +0200
Subject: applying patch bc-1.06.patch
diff --git a/Test/timetest b/Test/timetest
index 1a4d0ea..46896fc 100755
--- a/Test/timetest
+++ b/Test/timetest
@@ -2,7 +2,7 @@
#
# Time the functions.
#
-SYSBC=/usr/bin/bc
+SYSBC=/boot/common/bin/bc
if [ x$BC = x ] ; then
BC=../bc/bc
fi
--
1.8.3.4
From 3de7ccc77eff91b40e0a5b2332ad63c898e288a0 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Tue, 14 Oct 2014 14:59:13 +0200
Subject: Fix some paths in timetest.
/boot/common is gone.
diff --git a/Test/timetest b/Test/timetest
index 46896fc..0b1ea8e 100755
--- a/Test/timetest
+++ b/Test/timetest
@@ -2,7 +2,7 @@
#
# Time the functions.
#
-SYSBC=/boot/common/bin/bc
+SYSBC=/bin/bc
if [ x$BC = x ] ; then
BC=../bc/bc
fi
--
1.8.3.4