• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

ベンチマークに使うツール関連


Commit MetaInfo

修订版f0fee2ae0d4e94f3438500c51e5c73f903827863 (tree)
时间2012-08-22 05:19:13
作者hylom <hylom@hylo...>
Commiterhylom

Log Message

update unixbench SPEC

更改概述

差异

--- a/unixbench.spec
+++ b/unixbench.spec
@@ -1,6 +1,6 @@
11 Name: unixbench
22 Version: 5.1.3
3-Release: hy1
3+Release: hy2
44 Group: Utilities
55 Vendor: hylom
66 URL: http://code.google.com/p/byte-unixbench/
@@ -11,6 +11,7 @@ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
1111 Source: UnixBench%{version}.tgz
1212 Requires: perl-Time-HiRes
1313 Requires: make
14+Patch: unixbench0.patch
1415
1516 %description
1617 UnixBench is the original BYTE UNIX benchmark suite, updated and revised by many people over the years.
@@ -18,6 +19,7 @@ Portable, fully-threaded I/O benchmark program
1819
1920 %prep
2021 %setup -q -n UnixBench
22+%patch -p1
2123
2224 %build
2325 make
--- /dev/null
+++ b/unixbench0.patch
@@ -0,0 +1,19 @@
1+diff -u UnixBench.old/Run UnixBench/Run
2+--- UnixBench.old/Run 2011-01-18 15:44:53.000000000 +0900
3++++ UnixBench/Run 2012-08-22 05:13:00.546380531 +0900
4+@@ -784,15 +784,6 @@
5+ # Set the language.
6+ $ENV{'LANG'} = $language;
7+
8+- # Check that the required files are in the proper places.
9+- system("make check");
10+- if ($? != 0) {
11+- system("make all");
12+- if ($? != 0) {
13+- abortRun("\"make all\" failed");
14+- }
15+- }
16+-
17+ # Create a script to kill this run.
18+ system("echo \"kill -9 $$\" > \"${TMPDIR}/kill_run\"");
19+ chmod(0755, $TMPDIR . "/kill_run");