1 |
markusle 08/08/27 23:01:41 |
2 |
|
3 |
Modified: ChangeLog R-2.7.1.ebuild R-2.6.1-r1.ebuild |
4 |
Added: R-2.7.2.ebuild |
5 |
Removed: R-2.6.2.ebuild R-2.7.0.ebuild |
6 |
Log: |
7 |
Added patch from Debian to fix insecure tempfile handling in javareconf (fixes bug #235822). NOTE: R-2.2.1-r1.ebuild is not vulnerable since it does not include the javereconf script. Also removed old ebuilds and removed two tests from the test suite since they fail with portage. |
8 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-SENTINEL-2 i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.126 dev-lang/R/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/ChangeLog?rev=1.126&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/ChangeLog?rev=1.126&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/ChangeLog?r1=1.125&r2=1.126 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v |
20 |
retrieving revision 1.125 |
21 |
retrieving revision 1.126 |
22 |
diff -u -r1.125 -r1.126 |
23 |
--- ChangeLog 18 Jul 2008 12:45:45 -0000 1.125 |
24 |
+++ ChangeLog 27 Aug 2008 23:01:40 -0000 1.126 |
25 |
@@ -1,6 +1,18 @@ |
26 |
# ChangeLog for dev-lang/R |
27 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.125 2008/07/18 12:45:45 markusle Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.126 2008/08/27 23:01:40 markusle Exp $ |
30 |
+ |
31 |
+*R-2.7.2 (27 Aug 2008) |
32 |
+ |
33 |
+ 27 Aug 2008; Markus Dittrich <markusle@g.o> |
34 |
+ +files/R-javareconf.patch, +files/R-2.7.1-test-fix.patch, |
35 |
+ -2.6.1-r1.ebuild, -R-2.6.2.ebuild, -R-2.7.0.ebuild, |
36 |
+ R-2.7.1.ebuild, +R-2.7.2.ebuild: |
37 |
+ Added patch from Debian to fix insecure tempfile handling in |
38 |
+ javareconf (fixes bug #235822). NOTE: R-2.2.1-r1.ebuild is not |
39 |
+ vulnerable since it does not include the javereconf script. |
40 |
+ Also removed old ebuilds and removed two tests from the test |
41 |
+ suite since they fail with portage. |
42 |
|
43 |
18 Jul 2008; Markus Dittrich <markusle@g.o> R-2.7.1.ebuild: |
44 |
Added missing cairo use flag (see bug #231970). |
45 |
|
46 |
|
47 |
|
48 |
1.3 dev-lang/R/R-2.7.1.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.7.1.ebuild?rev=1.3&view=markup |
51 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.7.1.ebuild?rev=1.3&content-type=text/plain |
52 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.7.1.ebuild?r1=1.2&r2=1.3 |
53 |
|
54 |
Index: R-2.7.1.ebuild |
55 |
=================================================================== |
56 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.7.1.ebuild,v |
57 |
retrieving revision 1.2 |
58 |
retrieving revision 1.3 |
59 |
diff -u -r1.2 -r1.3 |
60 |
--- R-2.7.1.ebuild 18 Jul 2008 12:45:45 -0000 1.2 |
61 |
+++ R-2.7.1.ebuild 27 Aug 2008 23:01:40 -0000 1.3 |
62 |
@@ -1,6 +1,6 @@ |
63 |
# Copyright 1999-2008 Gentoo Foundation |
64 |
# Distributed under the terms of the GNU General Public License v2 |
65 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.7.1.ebuild,v 1.2 2008/07/18 12:45:45 markusle Exp $ |
66 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.7.1.ebuild,v 1.3 2008/08/27 23:01:40 markusle Exp $ |
67 |
|
68 |
inherit fortran flag-o-matic bash-completion |
69 |
|
70 |
@@ -65,6 +65,15 @@ |
71 |
filter-ldflags -Wl,-Bdirect -Bdirect |
72 |
} |
73 |
|
74 |
+ |
75 |
+src_unpack() { |
76 |
+ unpack ${A} |
77 |
+ cd "${S}" |
78 |
+ epatch "${FILESDIR}"/${PN}-javareconf.patch |
79 |
+ epatch "${FILESDIR}"/${P}-test-fix.patch |
80 |
+} |
81 |
+ |
82 |
+ |
83 |
src_compile() { |
84 |
# fix packages.html for doc (bug #205103) |
85 |
# check in later versions if fixed |
86 |
@@ -116,6 +125,12 @@ |
87 |
emake -j1 -C src/nmath/standalone || die "emake math library failed" |
88 |
} |
89 |
|
90 |
+src_test() { |
91 |
+ # we need to unset R_HOME otherwise some of the diff based |
92 |
+ # tests fail due to warnings in the output |
93 |
+ R_HOME="" make check || die "Some of the tests failed" |
94 |
+} |
95 |
+ |
96 |
src_install() { |
97 |
# -j1 because creates various dirs sequentially (hit should be small) |
98 |
emake -j1 DESTDIR="${D}" install || die "emake install failed" |
99 |
|
100 |
|
101 |
|
102 |
1.13 dev-lang/R/R-2.6.1-r1.ebuild |
103 |
|
104 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.6.1-r1.ebuild?rev=1.13&view=markup |
105 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.6.1-r1.ebuild?rev=1.13&content-type=text/plain |
106 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.6.1-r1.ebuild?r1=1.12&r2=1.13 |
107 |
|
108 |
Index: R-2.6.1-r1.ebuild |
109 |
=================================================================== |
110 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.6.1-r1.ebuild,v |
111 |
retrieving revision 1.12 |
112 |
retrieving revision 1.13 |
113 |
diff -u -r1.12 -r1.13 |
114 |
--- R-2.6.1-r1.ebuild 15 Apr 2008 15:27:19 -0000 1.12 |
115 |
+++ R-2.6.1-r1.ebuild 27 Aug 2008 23:01:40 -0000 1.13 |
116 |
@@ -1,6 +1,6 @@ |
117 |
# Copyright 1999-2008 Gentoo Foundation |
118 |
# Distributed under the terms of the GNU General Public License v2 |
119 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.6.1-r1.ebuild,v 1.12 2008/04/15 15:27:19 armin76 Exp $ |
120 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.6.1-r1.ebuild,v 1.13 2008/08/27 23:01:40 markusle Exp $ |
121 |
|
122 |
inherit fortran flag-o-matic bash-completion |
123 |
|
124 |
@@ -57,6 +57,13 @@ |
125 |
use ppc64 && append-flags -mminimal-toc |
126 |
} |
127 |
|
128 |
+src_unpack() { |
129 |
+ unpack ${A} |
130 |
+ cd "${S}" |
131 |
+ epatch "${FILESDIR}"/${PN}-javareconf.patch |
132 |
+} |
133 |
+ |
134 |
+ |
135 |
src_compile() { |
136 |
# fix packages.html for doc (bug #205103) |
137 |
# check in later versions if fixed |
138 |
|
139 |
|
140 |
|
141 |
1.1 dev-lang/R/R-2.7.2.ebuild |
142 |
|
143 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.7.2.ebuild?rev=1.1&view=markup |
144 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.7.2.ebuild?rev=1.1&content-type=text/plain |
145 |
|
146 |
Index: R-2.7.2.ebuild |
147 |
=================================================================== |
148 |
# Copyright 1999-2008 Gentoo Foundation |
149 |
# Distributed under the terms of the GNU General Public License v2 |
150 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.7.2.ebuild,v 1.1 2008/08/27 23:01:40 markusle Exp $ |
151 |
|
152 |
inherit fortran flag-o-matic bash-completion |
153 |
|
154 |
DESCRIPTION="Language and environment for statistical computing and graphics" |
155 |
HOMEPAGE="http://www.r-project.org/" |
156 |
SRC_URI="mirror://cran/src/base/R-2/${P}.tar.gz |
157 |
bash-completion? ( mirror://gentoo/R.bash_completion.bz2 )" |
158 |
|
159 |
LICENSE="GPL-2 LGPL-2.1" |
160 |
SLOT="0" |
161 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
162 |
|
163 |
IUSE="doc java jpeg lapack minimal nls png readline tk X cairo" |
164 |
|
165 |
# common depends |
166 |
CDEPEND="dev-lang/perl |
167 |
>=dev-libs/libpcre-7.3 |
168 |
app-arch/bzip2 |
169 |
virtual/blas |
170 |
virtual/ghostscript |
171 |
cairo? ( x11-libs/cairo x11-libs/pango ) |
172 |
readline? ( sys-libs/readline ) |
173 |
jpeg? ( media-libs/jpeg ) |
174 |
png? ( media-libs/libpng ) |
175 |
lapack? ( virtual/lapack ) |
176 |
tk? ( dev-lang/tk ) |
177 |
X? ( x11-libs/libXmu x11-misc/xdg-utils )" |
178 |
|
179 |
DEPEND="${CDEPEND} |
180 |
dev-util/pkgconfig |
181 |
doc? ( virtual/latex-base |
182 |
|| ( dev-texlive/texlive-fontsrecommended virtual/tetex ) )" |
183 |
|
184 |
RDEPEND="${CDEPEND} |
185 |
app-arch/unzip |
186 |
app-arch/zip |
187 |
java? ( >=virtual/jre-1.5 )" |
188 |
|
189 |
R_HOME=/usr/$(get_libdir)/${PN} |
190 |
|
191 |
pkg_setup() { |
192 |
FORTRAN="gfortran ifc g77" |
193 |
fortran_pkg_setup |
194 |
export FFLAGS="${FFLAGS:--O2}" |
195 |
[[ ${FORTRANC} = gfortran || ${FORTRANC} = if* ]] && \ |
196 |
export FCFLAGS="${FCFLAGS:-${FFLAGS}}" |
197 |
|
198 |
# make sure cairo and pango are both compiled with "X" |
199 |
# use flag (see bug #231970) |
200 |
if use cairo; then |
201 |
if ( ! built_with_use x11-libs/cairo X ); then |
202 |
eerror "x11-libs/cairo needs to be built with USE=\"X\"" |
203 |
die "Please rebuild x11-libs/cairo with USE=\"X\"" |
204 |
fi |
205 |
|
206 |
if ( ! built_with_use x11-libs/pango X ); then |
207 |
eerror "x11-libs/pango needs to be built with USE=\"X\"" |
208 |
die "Please rebuild x11-libs/pango with USE=\"X\"" |
209 |
fi |
210 |
fi |
211 |
|
212 |
filter-ldflags -Wl,-Bdirect -Bdirect |
213 |
} |
214 |
|
215 |
src_unpack() { |
216 |
unpack ${A} |
217 |
cd "${S}" |
218 |
epatch "${FILESDIR}"/${PN}-javareconf.patch |
219 |
epatch "${FILESDIR}"/${PN}-2.7.1-test-fix.patch |
220 |
} |
221 |
|
222 |
src_test() { |
223 |
# we need to unset R_HOME otherwise some of the diff based |
224 |
# tests fail due to warnings in the output |
225 |
R_HOME="" make check || die "Some of the tests failed" |
226 |
} |
227 |
|
228 |
src_compile() { |
229 |
# fix packages.html for doc (bug #205103) |
230 |
# check in later versions if fixed |
231 |
sed -i \ |
232 |
-e "s:../../library:../../../../$(get_libdir)/R/library:g" \ |
233 |
src/library/tools/R/packageshtml.R \ |
234 |
|| die "sed failed" |
235 |
|
236 |
# fix Rscript |
237 |
sed -i \ |
238 |
-e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_HOME}\"':" \ |
239 |
src/unix/Makefile.in || die "sed unix Makefile failed" |
240 |
|
241 |
use lapack && \ |
242 |
export LAPACK_LIBS="$(pkg-config --libs lapack)" |
243 |
|
244 |
if use X; then |
245 |
export R_BROWSER="$(type -p xdg-open)" |
246 |
export R_PDFVIEWER="$(type -p xdg-open)" |
247 |
fi |
248 |
|
249 |
econf \ |
250 |
--enable-R-profiling \ |
251 |
--enable-memory-profiling \ |
252 |
--enable-R-shlib \ |
253 |
--enable-linux-lfs \ |
254 |
--with-system-zlib \ |
255 |
--with-system-bzlib \ |
256 |
--with-system-pcre \ |
257 |
--with-blas="$(pkg-config --libs blas)" \ |
258 |
--docdir=/usr/share/doc/${PF} \ |
259 |
rdocdir=/usr/share/doc/${PF} \ |
260 |
$(use_enable nls) \ |
261 |
$(use_with lapack) \ |
262 |
$(use_with tk tcltk) \ |
263 |
$(use_with jpeg jpeglib) \ |
264 |
$(use_with !minimal recommended-packages) \ |
265 |
$(use_with png libpng) \ |
266 |
$(use_with readline) \ |
267 |
$(use_with cairo) \ |
268 |
$(use_with X x) \ |
269 |
|| die "econf failed" |
270 |
emake || die "emake failed" |
271 |
if use doc; then |
272 |
export VARTEXFONTS="${T}/fonts" |
273 |
emake info pdf || die "emake docs failed" |
274 |
fi |
275 |
|
276 |
emake -j1 -C src/nmath/standalone || die "emake math library failed" |
277 |
} |
278 |
|
279 |
src_install() { |
280 |
# -j1 because creates various dirs sequentially (hit should be small) |
281 |
emake -j1 DESTDIR="${D}" install || die "emake install failed" |
282 |
|
283 |
if use doc; then |
284 |
emake DESTDIR="${D}" \ |
285 |
install-info install-pdf || die "emake install docs failed" |
286 |
fi |
287 |
|
288 |
emake -j1 \ |
289 |
-C src/nmath/standalone \ |
290 |
DESTDIR="${D}" install \ |
291 |
|| die "emake install math library failed" |
292 |
|
293 |
# env file |
294 |
cat > 99R <<-EOF |
295 |
LDPATH=${R_HOME}/lib |
296 |
R_HOME=${R_HOME} |
297 |
EOF |
298 |
doenvd 99R || die "doenvd failed" |
299 |
|
300 |
dobashcompletion "${WORKDIR}"/R.bash_completion |
301 |
} |
302 |
|
303 |
pkg_config() { |
304 |
if use java; then |
305 |
einfo "Re-initializing java paths for ${P}" |
306 |
R CMD javareconf |
307 |
fi |
308 |
} |