Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/ghostscript-gpl: ChangeLog ghostscript-gpl-8.61-r3.ebuild
Date: Fri, 29 Feb 2008 11:55:44
Message-Id: E1JV3q1-0003V4-KT@stork.gentoo.org
1 pva 08/02/29 11:55:41
2
3 Modified: ChangeLog
4 Added: ghostscript-gpl-8.61-r3.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.43 app-text/ghostscript-gpl/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.43&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.43&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?r1=1.42&r2=1.43
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v
19 retrieving revision 1.42
20 retrieving revision 1.43
21 diff -u -r1.42 -r1.43
22 --- ChangeLog 15 Feb 2008 16:05:55 -0000 1.42
23 +++ ChangeLog 29 Feb 2008 11:55:41 -0000 1.43
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-text/ghostscript-gpl
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.42 2008/02/15 16:05:55 tgurr Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.43 2008/02/29 11:55:41 pva Exp $
29 +
30 +*ghostscript-gpl-8.61-r3 (29 Feb 2008)
31 +
32 + 29 Feb 2008; <pva@g.o> +ghostscript-gpl-8.61-r3.ebuild:
33 + Fixed security issue (CVE-2008-0411), bug #208999, thank Robert Buchholz for
34 + report and coordination.
35
36 15 Feb 2008; Timo Gurr <tgurr@g.o>
37 -files/ghostscript-esp-8.15.2-FAPIcidfmap.cjk,
38
39
40
41 1.1 app-text/ghostscript-gpl/ghostscript-gpl-8.61-r3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.61-r3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.61-r3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ghostscript-gpl-8.61-r3.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.61-r3.ebuild,v 1.1 2008/02/29 11:55:41 pva Exp $
51
52 inherit autotools elisp-common eutils versionator flag-o-matic
53
54 DESCRIPTION="GPL Ghostscript - the most current Ghostscript, AFPL, relicensed"
55 HOMEPAGE="http://ghostscript.com/"
56
57 MY_P=${P/-gpl}
58 GSDJVU_PV=1.3
59 PVM=$(get_version_component_range 1-2)
60 SRC_URI="cjk? ( ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200406.tar.gz
61 ftp://ftp.gyve.org/pub/gs-cjk/acro5-cmaps-2001.tar.gz )
62 !bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )
63 mirror://sourceforge/ghostscript/${MY_P}.tar.bz2
64 mirror://gentoo/${P}-patchset-4.tar.bz2"
65
66 LICENSE="GPL-2 CPL-1.0"
67 SLOT="0"
68 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ppc ppc64 ~sh sparc ~sparc-fbsd x86 ~x86-fbsd"
69 IUSE="bindist cjk cups djvu gtk X"
70
71 COMMON_DEPEND="media-libs/fontconfig
72 >=media-libs/jpeg-6b
73 >=media-libs/libpng-1.2.5
74 >=media-libs/tiff-3.7
75 >=sys-libs/zlib-1.1.4
76 !bindist? ( djvu? ( app-text/djvu ) )
77 cups? ( >=net-print/cups-1.1.20 )
78 gtk? ( >=x11-libs/gtk+-2.0 )
79 X? ( x11-libs/libXt x11-libs/libXext )
80 !app-text/ghostscript-esp
81 !app-text/ghostscript-gnu"
82
83 DEPEND="${COMMON_DEPEND}
84 dev-util/pkgconfig"
85
86 RDEPEND="${COMMON_DEPEND}
87 cjk? ( media-fonts/arphicfonts
88 media-fonts/kochi-substitute
89 media-fonts/baekmuk-fonts )
90 media-fonts/gnu-gs-fonts-std"
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 "${WORKDIR}/patches/ghostscript-esp-8.15.2-cidfmap.cjk" >> "${S}/lib/cidfmap"
98 cat "${WORKDIR}/patches/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 # remove internal copies of jpeg and libpng
108 rm -rf "${S}/jpeg"
109 rm -rf "${S}/libpng"
110
111 # Fedora patches
112 # upstream bug http://bugs.ghostscript.com/show_bug.cgi?id=689393
113 epatch "${WORKDIR}/patches/${PN}-8.60-fPIC.patch"
114 epatch "${WORKDIR}/patches/${PN}-8.61-multilib.patch"
115 epatch "${WORKDIR}/patches/${PN}-8.60-noopt.patch"
116 epatch "${WORKDIR}/patches/${PN}-8.60-scripts.patch"
117
118 # fixed in trunk, upstream bug http://bugs.ghostscript.com/show_bug.cgi?id=689577
119 epatch "${WORKDIR}/patches/${PN}-8.61-gsbug689577.patch"
120
121 # hp ijs patch shipped with net-print/hplip
122 epatch "${WORKDIR}/patches/${PN}-8.61-gdevijs-krgb-1.5.patch"
123
124 # additional Gentoo patch, compile fix
125 epatch "${WORKDIR}/patches/${PN}-8.61-rinkj.patch"
126
127 # Security fix for bug #208999
128 epatch "${WORKDIR}"/patches/ghostscript-8.60-CVE-2008-0411.diff
129
130 if use bindist && use djvu ; then
131 ewarn "You have bindist in your USE, djvu support will NOT be compiled!"
132 ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues."
133 fi
134
135 if ! use bindist && use djvu ; then
136 unpack gsdjvu-${GSDJVU_PV}.tar.gz
137 cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}"
138 cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/src"
139 epatch "${WORKDIR}/patches/${PN}-8.61-gsdjvu-1.3.patch"
140 cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}/lib"
141 cp "${S}/src/contrib.mak" "${S}/src/contrib.mak.gsdjvu"
142 grep -q djvusep "${S}/src/contrib.mak" || \
143 cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/src/contrib.mak"
144
145 # install ps2utf8.ps, bug #197818
146 sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' "${S}/src/unixinst.mak" \
147 || die "sed failed"
148 fi
149
150 if ! use gtk ; then
151 sed -i "s:\$(GSSOX)::" src/*.mak || die "gsx sed failed"
152 sed -i "s:.*\$(GSSOX_XENAME)$::" src/*.mak || die "gsxso sed failed"
153 fi
154
155 # search path fix
156 sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \
157 -e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \
158 -e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \
159 -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \
160 -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \
161 src/Makefile.in src/*.mak || die "sed failed"
162
163 cd "${S}"
164 eautoreconf
165
166 cd "${S}/ijs"
167 eautoreconf
168 }
169
170 src_compile() {
171 econf \
172 $(use_enable cups) \
173 $(use_enable gtk) \
174 $(use_with X x) \
175 --enable-dynamic \
176 --enable-fontconfig \
177 --with-drivers=ALL,rinkj \
178 --with-ijs \
179 --with-jasper \
180 --with-jbig2dec \
181 || die "econf failed"
182
183 if ! use bindist && use djvu ; then
184 sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile
185 fi
186
187 emake -j1 so all || die "emake failed"
188
189 cd "${S}/ijs"
190 econf || die "ijs econf failed"
191 emake || die "ijs emake failed"
192 }
193
194 src_install() {
195 emake DESTDIR="${D}" install-so install || die "emake install failed"
196
197 if ! use bindist && use djvu ; then
198 dobin gsdjvu || die "dobin gsdjvu install failed"
199 fi
200
201 rm -rf "${D}/usr/share/doc/${PF}/html/"{README,PUBLIC}
202 dodoc doc/README || die "dodoc install failed"
203
204 cd "${S}/ijs"
205 emake DESTDIR="${D}" install || die "emake ijs install failed"
206 }
207
208
209
210 --
211 gentoo-commits@l.g.o mailing list