1 |
commit: 0ab1846b289cd3a7c35cb206a5ae80609bf8ede0 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 28 23:53:18 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 29 04:17:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ab1846b |
7 |
|
8 |
app-benchmarks/bonnie: EAPI6->8, use https, tidy patches |
9 |
|
10 |
Also drop the Makefile patch, no reason to even use the Makefile. |
11 |
|
12 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
13 |
|
14 |
...{bonnie-2.0.6-r2.ebuild => bonnie-2.0.6-r3.ebuild} | 19 +++++++++---------- |
15 |
app-benchmarks/bonnie/files/Makefile.patch | 16 ---------------- |
16 |
.../bonnie/files/bonnie-2.0.6-includes.patch | 10 +++------- |
17 |
app-benchmarks/bonnie/files/bonnie-2.0.6-man.patch | 8 ++++++++ |
18 |
app-benchmarks/bonnie/files/bonnie_man.patch | 16 ---------------- |
19 |
5 files changed, 20 insertions(+), 49 deletions(-) |
20 |
|
21 |
diff --git a/app-benchmarks/bonnie/bonnie-2.0.6-r2.ebuild b/app-benchmarks/bonnie/bonnie-2.0.6-r3.ebuild |
22 |
similarity index 60% |
23 |
rename from app-benchmarks/bonnie/bonnie-2.0.6-r2.ebuild |
24 |
rename to app-benchmarks/bonnie/bonnie-2.0.6-r3.ebuild |
25 |
index 9c683b9e65ac..6627f2b54a47 100644 |
26 |
--- a/app-benchmarks/bonnie/bonnie-2.0.6-r2.ebuild |
27 |
+++ b/app-benchmarks/bonnie/bonnie-2.0.6-r3.ebuild |
28 |
@@ -1,29 +1,28 @@ |
29 |
-# Copyright 1999-2020 Gentoo Authors |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
# Distributed under the terms of the GNU General Public License v2 |
32 |
|
33 |
-EAPI=6 |
34 |
+EAPI=8 |
35 |
|
36 |
inherit toolchain-funcs |
37 |
|
38 |
DESCRIPTION="Performance Test of Filesystem I/O using standard C library calls" |
39 |
-HOMEPAGE="http://www.textuality.com/bonnie/" |
40 |
-SRC_URI="http://www.textuality.com/bonnie/bonnie.tar.gz -> ${P}.tar.gz" |
41 |
+HOMEPAGE="https://www.textuality.com/bonnie/" |
42 |
+SRC_URI="https://www.textuality.com/bonnie/bonnie.tar.gz -> ${P}.tar.gz" |
43 |
+S="${WORKDIR}" |
44 |
|
45 |
LICENSE="bonnie" |
46 |
SLOT="0" |
47 |
KEYWORDS="~alpha amd64 ~ia64 ~mips ppc ppc64 sparc x86" |
48 |
-IUSE="" |
49 |
- |
50 |
-S=${WORKDIR} |
51 |
|
52 |
PATCHES=( |
53 |
- "${FILESDIR}"/bonnie_man.patch |
54 |
- "${FILESDIR}"/Makefile.patch |
55 |
"${FILESDIR}"/${P}-includes.patch |
56 |
+ "${FILESDIR}"/${P}-man.patch |
57 |
) |
58 |
|
59 |
-src_configure() { |
60 |
+src_compile() { |
61 |
tc-export CC |
62 |
+ |
63 |
+ emake -f /dev/null Bonnie |
64 |
} |
65 |
|
66 |
src_install() { |
67 |
|
68 |
diff --git a/app-benchmarks/bonnie/files/Makefile.patch b/app-benchmarks/bonnie/files/Makefile.patch |
69 |
deleted file mode 100644 |
70 |
index d803bd077ced..000000000000 |
71 |
--- a/app-benchmarks/bonnie/files/Makefile.patch |
72 |
+++ /dev/null |
73 |
@@ -1,16 +0,0 @@ |
74 |
---- a/Makefile |
75 |
-+++ b/Makefile |
76 |
-@@ -1,11 +1,9 @@ |
77 |
--CFLAGS = -O $(SYSFLAGS) |
78 |
-- |
79 |
- bsd: |
80 |
- @echo 'Options are "make bsd" and "make SysV" - the default is "bsd".' |
81 |
- @echo 'If you get messages about missing functions, try "make SysV."' |
82 |
-- make Bonnie |
83 |
-+ $(MAKE) Bonnie |
84 |
- |
85 |
- SysV: |
86 |
-- make Bonnie 'SYSFLAGS=-DSysV' |
87 |
-+ $(MAKE) Bonnie 'SYSFLAGS=-DSysV' |
88 |
- |
89 |
- Bonnie: |
90 |
|
91 |
diff --git a/app-benchmarks/bonnie/files/bonnie-2.0.6-includes.patch b/app-benchmarks/bonnie/files/bonnie-2.0.6-includes.patch |
92 |
index cfefe953c6f1..8bec1e2ab04d 100644 |
93 |
--- a/app-benchmarks/bonnie/files/bonnie-2.0.6-includes.patch |
94 |
+++ b/app-benchmarks/bonnie/files/bonnie-2.0.6-includes.patch |
95 |
@@ -1,13 +1,9 @@ |
96 |
---- a/Bonnie.c 1996-08-28 18:23:49.000000000 +0200 |
97 |
-+++ b/Bonnie.c 2010-10-12 20:15:26.000000000 +0200 |
98 |
-@@ -29,6 +29,10 @@ |
99 |
- #include <fcntl.h> |
100 |
- #include <sys/types.h> |
101 |
+--- a/Bonnie.c |
102 |
++++ b/Bonnie.c |
103 |
+@@ -31,2 +31,6 @@ |
104 |
#include <sys/time.h> |
105 |
+#include <time.h> |
106 |
+#include <string.h> |
107 |
+#include <stdlib.h> |
108 |
+#include <sys/wait.h> |
109 |
#if defined(SysV) |
110 |
- #include <limits.h> |
111 |
- #include <sys/times.h> |
112 |
|
113 |
diff --git a/app-benchmarks/bonnie/files/bonnie-2.0.6-man.patch b/app-benchmarks/bonnie/files/bonnie-2.0.6-man.patch |
114 |
new file mode 100644 |
115 |
index 000000000000..d492ebd7c922 |
116 |
--- /dev/null |
117 |
+++ b/app-benchmarks/bonnie/files/bonnie-2.0.6-man.patch |
118 |
@@ -0,0 +1,8 @@ |
119 |
+--- a/bonnie.1 |
120 |
++++ b/bonnie.1 |
121 |
+@@ -63 +63 @@ |
122 |
+-.TH Bonnie 1 "2.0.6" Textuality |
123 |
++.TH bonnie 1 "2.0.6" Textuality |
124 |
+@@ -67 +67 @@ |
125 |
+-.B Bonnie |
126 |
++.B bonnie |
127 |
|
128 |
diff --git a/app-benchmarks/bonnie/files/bonnie_man.patch b/app-benchmarks/bonnie/files/bonnie_man.patch |
129 |
deleted file mode 100644 |
130 |
index e4b2fe0a12e3..000000000000 |
131 |
--- a/app-benchmarks/bonnie/files/bonnie_man.patch |
132 |
+++ /dev/null |
133 |
@@ -1,16 +0,0 @@ |
134 |
---- a/bonnie.1 2003-01-07 14:19:29.000000000 -0600 |
135 |
-+++ b/bonnie.1 2003-01-07 14:20:19.000000000 -0600 |
136 |
-@@ -60,11 +60,11 @@ |
137 |
- .fi |
138 |
- .in |
139 |
- .. |
140 |
--.TH Bonnie 1 "2.0.6" Textuality |
141 |
-+.TH bonnie 1 "2.0.6" Textuality |
142 |
- .SH NAME |
143 |
- Bonnie - File system benchmark |
144 |
- .SH "SYNOPSIS" |
145 |
--.B Bonnie |
146 |
-+.B bonnie |
147 |
- .RI "[-d\ scratch-dir]" |
148 |
- .RI "[-html]" |
149 |
- .RI "[-m\ machine-label]" |