1 |
pva 08/02/29 12:02:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ghostscript-gnu-8.60.0-r2.ebuild |
5 |
Log: |
6 |
Fixed security issue (CVE-2008-0411), bug #208999, thank Robert Buchholz for report and coordination. |
7 |
(Portage version: 2.1.4.4, RepoMan options: --force) |
8 |
|
9 |
Revision Changes Path |
10 |
1.36 app-text/ghostscript-gnu/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gnu/ChangeLog?rev=1.36&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gnu/ChangeLog?rev=1.36&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gnu/ChangeLog?r1=1.35&r2=1.36 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ghostscript-gnu/ChangeLog,v |
19 |
retrieving revision 1.35 |
20 |
retrieving revision 1.36 |
21 |
diff -u -r1.35 -r1.36 |
22 |
--- ChangeLog 14 Nov 2007 06:23:41 -0000 1.35 |
23 |
+++ ChangeLog 29 Feb 2008 12:02:39 -0000 1.36 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for app-text/ghostscript-gnu |
26 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gnu/ChangeLog,v 1.35 2007/11/14 06:23:41 corsair Exp $ |
28 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gnu/ChangeLog,v 1.36 2008/02/29 12:02:39 pva Exp $ |
30 |
+ |
31 |
+*ghostscript-gnu-8.60.0-r2 (29 Feb 2008) |
32 |
+ |
33 |
+ 29 Feb 2008; <pva@g.o> +files/ghostscript-8.60-CVE-2008-0411.diff, |
34 |
+ +ghostscript-gnu-8.60.0-r2.ebuild: |
35 |
+ Fixed security issue (CVE-2008-0411), bug #208999, thank Robert Buchholz for |
36 |
+ report and coordination. |
37 |
|
38 |
14 Nov 2007; Markus Rothe <corsair@g.o> |
39 |
ghostscript-gnu-8.60.0-r1.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-text/ghostscript-gnu/ghostscript-gnu-8.60.0-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gnu/ghostscript-gnu-8.60.0-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gnu/ghostscript-gnu-8.60.0-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: ghostscript-gnu-8.60.0-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2008 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gnu/ghostscript-gnu-8.60.0-r2.ebuild,v 1.1 2008/02/29 12:02:39 pva Exp $ |
53 |
|
54 |
WANT_AUTOMAKE=1.9 |
55 |
|
56 |
inherit autotools elisp-common eutils versionator flag-o-matic |
57 |
|
58 |
DESCRIPTION="GNU Ghostscript - patched GPL Ghostscript" |
59 |
HOMEPAGE="http://www.gnu.org/software/ghostscript/" |
60 |
|
61 |
MY_P=gnu-ghostscript-${PV} |
62 |
PVM=$(get_version_component_range 1-2) |
63 |
SRC_URI="cjk? ( ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200406.tar.gz |
64 |
ftp://ftp.gyve.org/pub/gs-cjk/acro5-cmaps-2001.tar.gz ) |
65 |
mirror://gnu/ghostscript/${MY_P}.tar.bz2" |
66 |
|
67 |
LICENSE="GPL-2" |
68 |
SLOT="0" |
69 |
KEYWORDS="~alpha ~amd64 ~ppc ppc64 ~sparc ~x86 ~x86-fbsd" |
70 |
IUSE="X cups cjk gtk jpeg2k" |
71 |
|
72 |
DEP="virtual/libc |
73 |
>=media-libs/jpeg-6b |
74 |
>=media-libs/libpng-1.2.5 |
75 |
>=sys-libs/zlib-1.1.4 |
76 |
>=media-libs/tiff-3.7 |
77 |
X? ( x11-libs/libXt x11-libs/libXext ) |
78 |
gtk? ( >=x11-libs/gtk+-2.0 ) |
79 |
cups? ( >=net-print/cups-1.1.20 ) |
80 |
!app-text/ghostscript-esp |
81 |
!app-text/ghostscript-gpl" |
82 |
|
83 |
RDEPEND="${DEP} |
84 |
cjk? ( media-fonts/arphicfonts |
85 |
media-fonts/kochi-substitute |
86 |
media-fonts/baekmuk-fonts ) |
87 |
media-fonts/gnu-gs-fonts-std" |
88 |
|
89 |
DEPEND="${DEP} |
90 |
gtk? ( dev-util/pkgconfig )" |
91 |
|
92 |
S=${WORKDIR}/${MY_P} |
93 |
|
94 |
src_unpack() { |
95 |
unpack ${A/adobe-cmaps-200406.tar.gz acro5-cmaps-2001.tar.gz} |
96 |
if use cjk; then |
97 |
cat "${FILESDIR}"/ghostscript-esp-8.15.2-cidfmap.cjk >> "${S}"/lib/cidfmap |
98 |
cat "${FILESDIR}"/ghostscript-esp-8.15.2-FAPIcidfmap.cjk >> "${S}"/lib/FAPIcidfmap |
99 |
cd "${S}"/Resource |
100 |
unpack adobe-cmaps-200406.tar.gz |
101 |
unpack acro5-cmaps-2001.tar.gz |
102 |
cd "${WORKDIR}" |
103 |
fi |
104 |
|
105 |
cd "${S}" |
106 |
|
107 |
epatch "${FILESDIR}"/ghostscript-CVE-2007-2721.patch |
108 |
epatch "${FILESDIR}"/ghostscript-8.60-CVE-2008-0411.diff |
109 |
|
110 |
# search path fix |
111 |
sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \ |
112 |
-e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \ |
113 |
-e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \ |
114 |
-e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \ |
115 |
-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \ |
116 |
Makefile.in src/*.mak || die "sed failed" |
117 |
} |
118 |
|
119 |
src_compile() { |
120 |
econf $(use_with X x) \ |
121 |
$(use_with jpeg2k jasper) \ |
122 |
$(use_enable cups) \ |
123 |
$(use_enable gtk) \ |
124 |
--with-ijs \ |
125 |
--with-jbig2dec \ |
126 |
--disable-compile-inits \ |
127 |
--enable-dynamic \ |
128 |
|| die "econf failed" |
129 |
|
130 |
emake -j1 so all || die "emake failed" |
131 |
|
132 |
cd ijs |
133 |
econf || die "ijs econf failed" |
134 |
emake || die "ijs emake failed" |
135 |
} |
136 |
|
137 |
src_install() { |
138 |
emake DESTDIR="${D}" install-so install || die "emake install failed" |
139 |
|
140 |
rm -fr "${D}"/usr/share/doc/${PF}/html/{README,PUBLIC} |
141 |
dodoc doc/README |
142 |
|
143 |
cd "${S}"/ijs |
144 |
emake DESTDIR="${D}" install || die "emake ijs install failed" |
145 |
} |
146 |
|
147 |
|
148 |
|
149 |
-- |
150 |
gentoo-commits@l.g.o mailing list |