Gentoo Archives: gentoo-commits

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