1 |
aballier 07/11/06 23:28:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: texlive-core-2007-r5.ebuild |
5 |
Removed: texlive-core-2007-r3.ebuild |
6 |
texlive-core-2007-r4.ebuild |
7 |
Log: |
8 |
fixes for buffer overflow in dviljk, bug #198229 |
9 |
(Portage version: 2.1.3.18) |
10 |
|
11 |
Revision Changes Path |
12 |
1.24 app-text/texlive-core/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.24&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.24&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?r1=1.23&r2=1.24 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v |
21 |
retrieving revision 1.23 |
22 |
retrieving revision 1.24 |
23 |
diff -u -r1.23 -r1.24 |
24 |
--- ChangeLog 2 Nov 2007 10:02:06 -0000 1.23 |
25 |
+++ ChangeLog 6 Nov 2007 23:28:02 -0000 1.24 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for app-text/texlive-core |
28 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.23 2007/11/02 10:02:06 aballier Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.24 2007/11/06 23:28:02 aballier Exp $ |
31 |
+ |
32 |
+*texlive-core-2007-r5 (06 Nov 2007) |
33 |
+ |
34 |
+ 06 Nov 2007; Alexis Ballier <aballier@g.o> |
35 |
+ -texlive-core-2007-r3.ebuild, -texlive-core-2007-r4.ebuild, |
36 |
+ +texlive-core-2007-r5.ebuild: |
37 |
+ fixes for buffer overflow in dviljk, bug #198229 |
38 |
|
39 |
02 Nov 2007; Alexis Ballier <aballier@g.o> |
40 |
files/2007/texmf.d/10standardpaths.cnf: |
41 |
|
42 |
|
43 |
|
44 |
1.1 app-text/texlive-core/texlive-core-2007-r5.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/texlive-core-2007-r5.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/texlive-core-2007-r5.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: texlive-core-2007-r5.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2007 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/texlive-core-2007-r5.ebuild,v 1.1 2007/11/06 23:28:02 aballier Exp $ |
54 |
|
55 |
inherit eutils flag-o-matic toolchain-funcs libtool autotools texlive-common |
56 |
|
57 |
DESCRIPTION="A complete TeX distribution" |
58 |
HOMEPAGE="http://tug.org/texlive/" |
59 |
SLOT="0" |
60 |
LICENSE="GPL-2 LPPL-1.3c" |
61 |
|
62 |
TEXLIVE_BASICBIN_CONTENTS="bin-bibtex bin-dialog bin-dvipdfmx bin-dvipsk bin-etex bin-getnonfreefonts bin-gsftopk bin-kpathsea bin-makeindex bin-metafont bin-mfware bin-pdftex bin-tetex bin-tex bin-texconfig lib-regex lib-zlib" |
63 |
|
64 |
TEXLIVE_BINEXTRA_CONTENTS="bin-bibtex8 bin-chktex bin-ctie bin-cweb bin-detex bin-dtl bin-dvi2tty bin-dvicopy bin-dvidvi bin-dviljk bin-lacheck bin-patgen bin-pdftools bin-seetexk bin-texdoc bin-texware bin-thumbpdf bin-tie bin-tpic2pdftex bin-vpe bin-web bin-xpdf cweb mkind-english" |
65 |
|
66 |
TEXLIVE_FONTBIN_CONTENTS="bin-afm2pl bin-fontware bin-ps2pkm fontinst mft" |
67 |
|
68 |
TEXLIVE_CORE_EXTRA_BUILT_BINARIES="bin-xetex bin-aleph bin-omega" |
69 |
|
70 |
TEXLIVE_CORE_INCLUDED_TEXMF="${TEXLIVE_BASICBIN_CONTENTS} ${TEXLIVE_FONTBIN_CONTENTS} ${TEXLIVE_BINEXTRA_CONTENTS} ${TEXLIVE_CORE_EXTRA_BUILT_BINARIES}" |
71 |
|
72 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
73 |
mirror://gentoo/${P}-dviljk-security-fixes.patch.bz2" |
74 |
|
75 |
for i in ${TEXLIVE_CORE_INCLUDED_TEXMF}; do |
76 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip" |
77 |
done |
78 |
|
79 |
# Ship an updated config.ps, see bug #195815 comment 51 |
80 |
# Or alternatively: http://tug.org/texlive/bugs.html |
81 |
SRC_URI="${SRC_URI} mirror://gentoo/${P}-updated-config.ps.bz2" |
82 |
|
83 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc64 ~sparc ~x86" |
84 |
IUSE="X doc" |
85 |
|
86 |
MODULAR_X_DEPEND="X? ( |
87 |
x11-libs/libXmu |
88 |
x11-libs/libXp |
89 |
x11-libs/libXpm |
90 |
x11-libs/libICE |
91 |
x11-libs/libSM |
92 |
x11-libs/libXaw |
93 |
x11-libs/libXfont |
94 |
)" |
95 |
|
96 |
DEPEND="${MODULAR_X_DEPEND} |
97 |
!app-text/ptex |
98 |
!app-text/cstetex |
99 |
!app-text/tetex |
100 |
!<app-text/texlive-2007 |
101 |
!app-text/xetex |
102 |
!dev-tex/xmltex |
103 |
!dev-tex/vntex |
104 |
sys-apps/ed |
105 |
sys-libs/zlib |
106 |
>=media-libs/libpng-1.2.1 |
107 |
app-arch/unzip |
108 |
=media-libs/freetype-2* |
109 |
media-libs/fontconfig" |
110 |
|
111 |
RDEPEND="${DEPEND} |
112 |
dev-lang/ruby" |
113 |
|
114 |
S="${WORKDIR}" |
115 |
|
116 |
src_unpack() { |
117 |
unpack ${A} |
118 |
cd "${S}" |
119 |
|
120 |
epatch "${FILESDIR}/${PV}/${P}-mpware.patch" |
121 |
epatch "${FILESDIR}/${PV}/${P}-libteckit-asneeded.patch" |
122 |
|
123 |
# it is also affected by bug 170861 |
124 |
epatch "${FILESDIR}/${PV}/tetex-3.0-CVE-2007-0650.patch" |
125 |
|
126 |
# Bug #188172 and bug #185225 |
127 |
epatch "${FILESDIR}/${PV}/tetex-3.0_p1-xpdf-CVE-2007-3387.patch" |
128 |
|
129 |
# Do not require exec stacks for asm generated by icu genccode program |
130 |
# it would be better to use system icu... but it doesn't seem that well |
131 |
# supported |
132 |
epatch "${FILESDIR}/${PV}/${P}-icu-xetex-execstacks.patch" |
133 |
|
134 |
# See http://permalink.gmane.org/gmane.comp.tex.live/14939 |
135 |
epatch "${FILESDIR}/${PV}/${P}-dvips_bufferoverflow.patch" |
136 |
|
137 |
# dviljk buffer overflow issues, bug #198229 |
138 |
epatch "${WORKDIR}/${P}-dviljk-security-fixes.patch" |
139 |
|
140 |
|
141 |
sed -i -e "/mktexlsr/,+3d" -e "s/\(updmap-sys\)/\1 --nohash/" \ |
142 |
Makefile.in || die "sed failed" |
143 |
|
144 |
elibtoolize |
145 |
|
146 |
cd libs/teckit |
147 |
eautoreconf |
148 |
|
149 |
# Ship an updated config.ps, see bug #195815 comment 51 |
150 |
# Or alternatively: http://tug.org/texlive/bugs.html |
151 |
cp -f "${WORKDIR}/${P}-updated-config.ps" "${S}/texmf/dvips/config/config.ps" |
152 |
} |
153 |
|
154 |
src_compile() { |
155 |
local my_conf |
156 |
|
157 |
export LC_ALL=C |
158 |
tc-export CC CXX |
159 |
|
160 |
econf --bindir=/usr/bin \ |
161 |
--datadir="${S}" \ |
162 |
--with-system-freetype2 \ |
163 |
--with-freetype2-include=/usr/include \ |
164 |
--with-system-zlib \ |
165 |
--with-system-pnglib \ |
166 |
--without-texinfo \ |
167 |
--without-dialog \ |
168 |
--without-texi2html \ |
169 |
--disable-multiplatform \ |
170 |
--with-epsfwin \ |
171 |
--with-mftalkwin \ |
172 |
--with-regiswin \ |
173 |
--with-tektronixwin \ |
174 |
--with-unitermwin \ |
175 |
--with-ps=gs \ |
176 |
--without-psutils \ |
177 |
--without-sam2p \ |
178 |
--without-t1utils \ |
179 |
--enable-ipc \ |
180 |
--without-etex \ |
181 |
--with-xetex \ |
182 |
--without-dvipng \ |
183 |
--without-dvipdfm \ |
184 |
--without-dvipdfmx \ |
185 |
--without-xdvipdfmx \ |
186 |
--without-lcdf-typetools \ |
187 |
--without-pdfopen \ |
188 |
--without-detex \ |
189 |
--without-ttf2pk \ |
190 |
--without-tex4htk \ |
191 |
--without-xdvik --without-oxdvik \ |
192 |
--enable-shared \ |
193 |
$(use_with X x) \ |
194 |
${my_conf} || die "econf failed" |
195 |
|
196 |
cd "${S}/libs/icu-xetex" |
197 |
emake -j1 texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake of icu-xetex failed" |
198 |
cd "${S}" |
199 |
emake texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake failed" |
200 |
|
201 |
# Mimic updmap --syncwithtrees to enable only fonts installed |
202 |
# Code copied from updmap script |
203 |
for i in `egrep '^(Mixed)?Map' "texmf/web2c/updmap.cfg" | sed 's@.* @@'`; do |
204 |
texlive-common_is_file_present_in_texmf "$i" || echo "$i" |
205 |
done > "${T}/updmap_update" |
206 |
{ |
207 |
sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
208 |
sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
209 |
} > "${T}/updmap_update2" |
210 |
sed -f "${T}/updmap_update2" "texmf/web2c/updmap.cfg" > "${T}/updmap_update3"\ |
211 |
&& cat "${T}/updmap_update3" > "texmf/web2c/updmap.cfg" |
212 |
} |
213 |
|
214 |
src_test() { |
215 |
ewarn "Due to modular layout of texlive ebuilds," |
216 |
ewarn "It would not make much sense to use tests into the ebuild" |
217 |
ewarn "And tests would fail anyway" |
218 |
ewarn "Alternatively you can try to compile any tex file" |
219 |
ewarn "Tex warnings should be considered as errors and reported" |
220 |
ewarn "You can also run fmtutil-sys --all and check for errors/warnings there" |
221 |
} |
222 |
|
223 |
src_install() { |
224 |
insinto /usr/share |
225 |
doins -r texmf texmf-dist |
226 |
|
227 |
dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c |
228 |
einstall bindir="${D}/usr/bin" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" || die "einstall failed" |
229 |
|
230 |
dosbin "${FILESDIR}/texmf-update" |
231 |
|
232 |
docinto texk |
233 |
cd "${S}/texk" |
234 |
dodoc ChangeLog README |
235 |
|
236 |
docinto kpathesa |
237 |
cd "${S}/texk/kpathsea" |
238 |
dodoc BUGS ChangeLog NEWS PROJECTS README |
239 |
|
240 |
docinto dviljk |
241 |
cd "${S}/texk/dviljk" |
242 |
dodoc ChangeLog README NEWS |
243 |
|
244 |
docinto dvipsk |
245 |
cd "${S}/texk/dvipsk" |
246 |
dodoc ChangeLog README |
247 |
|
248 |
docinto makeindexk |
249 |
cd "${S}/texk/makeindexk" |
250 |
dodoc ChangeLog NEWS NOTES README |
251 |
|
252 |
docinto ps2pkm |
253 |
cd "${S}/texk/ps2pkm" |
254 |
dodoc ChangeLog README README.14m |
255 |
|
256 |
docinto web2c |
257 |
cd "${S}/texk/web2c" |
258 |
dodoc ChangeLog NEWS PROJECTS README |
259 |
|
260 |
use doc || rm -rf "${D}/usr/share/texmf/doc" |
261 |
use doc || rm -rf "${D}/usr/share/texmf-dist/doc" |
262 |
|
263 |
dodir /var/cache/fonts |
264 |
|
265 |
dodir /etc/env.d |
266 |
echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c"' > "${D}/etc/env.d/98texlive" |
267 |
# populate /etc/texmf |
268 |
keepdir /etc/texmf/web2c |
269 |
|
270 |
# take care of updmap.cfg, fmtutil.cnf and texmf.cnf |
271 |
dodir /etc/texmf/{updmap.d,fmtutil.d,texmf.d} |
272 |
|
273 |
# Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
274 |
# by texmf-update |
275 |
rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf" |
276 |
|
277 |
# Remove default texmf.cnf to ship our own, greatly based on texlive dvd's |
278 |
# texmf.cnf |
279 |
# It will also be generated from /etc/texmf/texmf.d files by texmf-update |
280 |
rm -f "${D}${TEXMF_PATH}/web2c/texmf.cnf" |
281 |
|
282 |
insinto /etc/texmf/texmf.d |
283 |
doins "${FILESDIR}/${PV}/texmf.d/"{00header,05searchpaths,10standardpaths,15options,20sizes,25misc}.cnf |
284 |
|
285 |
mv "${D}${TEXMF_PATH}/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" |
286 |
|
287 |
# Create symlinks from format to engines |
288 |
# This will avoid having to call texlinks in texmf-update |
289 |
cd "${S}" |
290 |
for i in texmf/fmtutil/format*.cnf; do |
291 |
[ -f "${i}" ] && etexlinks "${i}" |
292 |
done |
293 |
|
294 |
texlive-common_handle_config_files |
295 |
|
296 |
keepdir /usr/share/texmf-site |
297 |
|
298 |
dosym /etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf |
299 |
dosym /etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf |
300 |
dosym /etc/texmf/web2c/updmap.cfg ${TEXMF_PATH}/web2c/updmap.cfg |
301 |
|
302 |
# the virtex symlink is not installed |
303 |
# The links has to be relative, since the targets |
304 |
# is not present at this stage and MacOS doesn't |
305 |
# like non-existing targets |
306 |
dosym tex /usr/bin/virtex |
307 |
dosym pdftex /usr/bin/pdfvirtex |
308 |
} |
309 |
|
310 |
pkg_postinst() { |
311 |
if [ "$ROOT" = "/" ] ; then |
312 |
/usr/sbin/texmf-update |
313 |
fi |
314 |
|
315 |
elog |
316 |
elog "If you have configuration files in /etc/texmf to merge," |
317 |
elog "please update them and run /usr/sbin/texmf-update." |
318 |
elog |
319 |
} |
320 |
|
321 |
|
322 |
|
323 |
-- |
324 |
gentoo-commits@g.o mailing list |