1 |
blueness 12/12/01 17:51:26 |
2 |
|
3 |
Modified: metadata.xml ramspeed-3.5.0.ebuild |
4 |
ramspeed-2.6.0.ebuild ChangeLog |
5 |
Added: ramspeed-3.5.0-r1.ebuild |
6 |
Log: |
7 |
Fix to build on hardened/PIE, but #442778 |
8 |
|
9 |
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) |
10 |
|
11 |
Revision Changes Path |
12 |
1.4 app-benchmarks/ramspeed/metadata.xml |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/metadata.xml?rev=1.4&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/metadata.xml?rev=1.4&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/metadata.xml?r1=1.3&r2=1.4 |
17 |
|
18 |
Index: metadata.xml |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/metadata.xml,v |
21 |
retrieving revision 1.3 |
22 |
retrieving revision 1.4 |
23 |
diff -u -r1.3 -r1.4 |
24 |
--- metadata.xml 23 Sep 2011 21:22:08 -0000 1.3 |
25 |
+++ metadata.xml 1 Dec 2012 17:51:26 -0000 1.4 |
26 |
@@ -7,5 +7,7 @@ |
27 |
</maintainer> |
28 |
<longdescription lang="en"> |
29 |
</longdescription> |
30 |
+ <use> |
31 |
+ <flag name='pic'>Force shared libraries to be built as PIC (this is slower)</flag> |
32 |
+ </use> |
33 |
</pkgmetadata> |
34 |
- |
35 |
|
36 |
|
37 |
|
38 |
1.2 app-benchmarks/ramspeed/ramspeed-3.5.0.ebuild |
39 |
|
40 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/ramspeed-3.5.0.ebuild?rev=1.2&view=markup |
41 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/ramspeed-3.5.0.ebuild?rev=1.2&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/ramspeed-3.5.0.ebuild?r1=1.1&r2=1.2 |
43 |
|
44 |
Index: ramspeed-3.5.0.ebuild |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ramspeed-3.5.0.ebuild,v |
47 |
retrieving revision 1.1 |
48 |
retrieving revision 1.2 |
49 |
diff -u -r1.1 -r1.2 |
50 |
--- ramspeed-3.5.0.ebuild 22 Oct 2011 18:59:34 -0000 1.1 |
51 |
+++ ramspeed-3.5.0.ebuild 1 Dec 2012 17:51:26 -0000 1.2 |
52 |
@@ -1,6 +1,6 @@ |
53 |
-# Copyright 1999-2011 Gentoo Foundation |
54 |
+# Copyright 1999-2012 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ramspeed-3.5.0.ebuild,v 1.1 2011/10/22 18:59:34 patrick Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ramspeed-3.5.0.ebuild,v 1.2 2012/12/01 17:51:26 blueness Exp $ |
58 |
|
59 |
EAPI=2 |
60 |
inherit flag-o-matic toolchain-funcs |
61 |
@@ -15,7 +15,7 @@ |
62 |
LICENSE="Alasir" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~x86" |
65 |
-IUSE="sse" |
66 |
+IUSE="sse pic" |
67 |
|
68 |
src_prepare(){ |
69 |
tc-export CC AS |
70 |
@@ -35,6 +35,11 @@ |
71 |
append-ldflags -Wl,-z,noexecstack |
72 |
obj=( ramsmp.o ${arch_prefix}{fltmark,fltmem,intmark,intmem}.o ) |
73 |
|
74 |
+ #avoid pic unfriendly assembly, bug #442778 |
75 |
+ if use pic; then |
76 |
+ append-ldflags -nopie |
77 |
+ fi |
78 |
+ |
79 |
if use x86; then |
80 |
obj=( "${obj[@]}" ${arch_prefix}{cpuinfo/cpuinfo_main,cpuinfo/cpuinfo_ext}.o ) |
81 |
fi |
82 |
|
83 |
|
84 |
|
85 |
1.4 app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild |
86 |
|
87 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild?rev=1.4&view=markup |
88 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild?rev=1.4&content-type=text/plain |
89 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild?r1=1.3&r2=1.4 |
90 |
|
91 |
Index: ramspeed-2.6.0.ebuild |
92 |
=================================================================== |
93 |
RCS file: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild,v |
94 |
retrieving revision 1.3 |
95 |
retrieving revision 1.4 |
96 |
diff -u -r1.3 -r1.4 |
97 |
--- ramspeed-2.6.0.ebuild 27 Aug 2010 23:32:42 -0000 1.3 |
98 |
+++ ramspeed-2.6.0.ebuild 1 Dec 2012 17:51:26 -0000 1.4 |
99 |
@@ -1,6 +1,6 @@ |
100 |
-# Copyright 1999-2010 Gentoo Foundation |
101 |
+# Copyright 1999-2012 Gentoo Foundation |
102 |
# Distributed under the terms of the GNU General Public License v2 |
103 |
-# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild,v 1.3 2010/08/27 23:32:42 hwoarang Exp $ |
104 |
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild,v 1.4 2012/12/01 17:51:26 blueness Exp $ |
105 |
|
106 |
EAPI=2 |
107 |
inherit flag-o-matic toolchain-funcs |
108 |
@@ -12,7 +12,7 @@ |
109 |
LICENSE="Alasir" |
110 |
SLOT="0" |
111 |
KEYWORDS="amd64 x86" |
112 |
-IUSE="sse" |
113 |
+IUSE="sse pic" |
114 |
|
115 |
src_prepare(){ |
116 |
tc-export CC AS |
117 |
@@ -29,6 +29,11 @@ |
118 |
append-ldflags -Wl,-z,noexecstack |
119 |
obj=( ramspeed.o ${arch_prefix}{fltmark,fltmem,intmark,intmem}.o ) |
120 |
|
121 |
+ #avoid pic unfriendly assembly, bug #442778 |
122 |
+ if use pic; then |
123 |
+ append-ldflags -nopie |
124 |
+ fi |
125 |
+ |
126 |
if use x86; then |
127 |
obj=( "${obj[@]}" ${arch_prefix}{cpuinfo/cpuinfo_main,cpuinfo/cpuinfo_ext}.o ) |
128 |
fi |
129 |
|
130 |
|
131 |
|
132 |
1.6 app-benchmarks/ramspeed/ChangeLog |
133 |
|
134 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/ChangeLog?rev=1.6&view=markup |
135 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/ChangeLog?rev=1.6&content-type=text/plain |
136 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/ChangeLog?r1=1.5&r2=1.6 |
137 |
|
138 |
Index: ChangeLog |
139 |
=================================================================== |
140 |
RCS file: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ChangeLog,v |
141 |
retrieving revision 1.5 |
142 |
retrieving revision 1.6 |
143 |
diff -u -r1.5 -r1.6 |
144 |
--- ChangeLog 22 Oct 2011 18:59:34 -0000 1.5 |
145 |
+++ ChangeLog 1 Dec 2012 17:51:26 -0000 1.6 |
146 |
@@ -1,6 +1,13 @@ |
147 |
# ChangeLog for app-benchmarks/ramspeed |
148 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
149 |
-# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ChangeLog,v 1.5 2011/10/22 18:59:34 patrick Exp $ |
150 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
151 |
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ChangeLog,v 1.6 2012/12/01 17:51:26 blueness Exp $ |
152 |
+ |
153 |
+*ramspeed-3.5.0-r1 (01 Dec 2012) |
154 |
+ |
155 |
+ 01 Dec 2012; Anthony G. Basile <blueness@g.o> |
156 |
+ +ramspeed-3.5.0-r1.ebuild, metadata.xml, ramspeed-2.6.0.ebuild, |
157 |
+ ramspeed-3.5.0.ebuild: |
158 |
+ Fix to build on hardened/PIE, but #442778 |
159 |
|
160 |
*ramspeed-3.5.0 (22 Oct 2011) |
161 |
|
162 |
@@ -23,4 +30,3 @@ |
163 |
+metadata.xml: |
164 |
Moved from sunrise overlay. Fixes bug #304101. Thanks to Dane Smith |
165 |
<smithdanea@×××××.com> for the ebuild. He will proxy-maintain this one |
166 |
- |
167 |
|
168 |
|
169 |
|
170 |
1.1 app-benchmarks/ramspeed/ramspeed-3.5.0-r1.ebuild |
171 |
|
172 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/ramspeed-3.5.0-r1.ebuild?rev=1.1&view=markup |
173 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ramspeed/ramspeed-3.5.0-r1.ebuild?rev=1.1&content-type=text/plain |
174 |
|
175 |
Index: ramspeed-3.5.0-r1.ebuild |
176 |
=================================================================== |
177 |
# Copyright 1999-2012 Gentoo Foundation |
178 |
# Distributed under the terms of the GNU General Public License v2 |
179 |
# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ramspeed-3.5.0-r1.ebuild,v 1.1 2012/12/01 17:51:26 blueness Exp $ |
180 |
|
181 |
EAPI="4" |
182 |
inherit flag-o-matic toolchain-funcs |
183 |
|
184 |
MY_PN="ramsmp" |
185 |
MY_P=${MY_PN}-${PV} |
186 |
|
187 |
DESCRIPTION="Benchmarking for memory and cache" |
188 |
HOMEPAGE="http://www.alasir.com/software/ramspeed/" |
189 |
SRC_URI="http://www.alasir.com/software/${PN}/${MY_P}.tar.gz" |
190 |
|
191 |
LICENSE="Alasir" |
192 |
SLOT="0" |
193 |
KEYWORDS="~amd64 ~x86" |
194 |
IUSE="sse pic" |
195 |
|
196 |
src_prepare(){ |
197 |
tc-export CC AS |
198 |
|
199 |
# Deal with changed package name and file name |
200 |
mv ${MY_P} ${P} |
201 |
} |
202 |
|
203 |
src_configure(){ |
204 |
local obj |
205 |
local arch_prefix=./ |
206 |
|
207 |
use x86 && arch_prefix=i386/ |
208 |
use amd64 && arch_prefix=amd64/ |
209 |
|
210 |
#fix the stack |
211 |
append-ldflags -Wl,-z,noexecstack |
212 |
obj=( ramsmp.o ${arch_prefix}{fltmark,fltmem,intmark,intmem}.o ) |
213 |
|
214 |
if use pic; then |
215 |
append-ldflags -nopie |
216 |
fi |
217 |
|
218 |
if use amd64; then |
219 |
sed -i \ |
220 |
-e 's/call.*free/call\tfree@PLT/' \ |
221 |
-e 's/call.*gettimeofday/call\tgettimeofday@PLT/' \ |
222 |
-e 's/call.*malloc/call\tmalloc@PLT/' \ |
223 |
${arch_prefix}/*.s |
224 |
fi |
225 |
|
226 |
if use x86; then |
227 |
obj=( "${obj[@]}" ${arch_prefix}{cpuinfo/cpuinfo_main,cpuinfo/cpuinfo_ext}.o ) |
228 |
fi |
229 |
|
230 |
if use sse; then |
231 |
use x86 && append-flags "-DLINUX -DI386_ASM" |
232 |
use amd64 && append-flags "-DLINUX -DAMD64_ASM" |
233 |
obj=( "${obj[@]}" ${arch_prefix}{mmxmark,mmxmem,ssemark,ssemem}.o ) |
234 |
fi |
235 |
|
236 |
echo "ramsmp: ${obj[@]}" > Makefile |
237 |
} |
238 |
|
239 |
src_install(){ |
240 |
dobin ramsmp |
241 |
dosym /usr/bin/ramsmp /usr/bin/ramspeed |
242 |
dodoc HISTORY README |
243 |
} |