1 |
dirtyepic 11/07/31 07:03:37 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freetype-2.4.6.ebuild |
5 |
Removed: freetype-2.4.5.ebuild freetype-2.4.4.ebuild |
6 |
Log: |
7 |
Version bump. This version fixes CVE-2011-0226 which allows an attacker to |
8 |
execute arbitrary code. All users must upgrade ASAP. (bug #377143) |
9 |
|
10 |
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-0226 |
11 |
|
12 |
Remove vulnerable versions. |
13 |
|
14 |
(Portage version: 2.2.0_alpha49/cvs/Linux x86_64) |
15 |
|
16 |
Revision Changes Path |
17 |
1.294 media-libs/freetype/ChangeLog |
18 |
|
19 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.294&view=markup |
20 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.294&content-type=text/plain |
21 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?r1=1.293&r2=1.294 |
22 |
|
23 |
Index: ChangeLog |
24 |
=================================================================== |
25 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v |
26 |
retrieving revision 1.293 |
27 |
retrieving revision 1.294 |
28 |
diff -u -r1.293 -r1.294 |
29 |
--- ChangeLog 25 Jun 2011 20:27:04 -0000 1.293 |
30 |
+++ ChangeLog 31 Jul 2011 07:03:37 -0000 1.294 |
31 |
@@ -1,6 +1,17 @@ |
32 |
# ChangeLog for media-libs/freetype |
33 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
34 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.293 2011/06/25 20:27:04 dirtyepic Exp $ |
35 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.294 2011/07/31 07:03:37 dirtyepic Exp $ |
36 |
+ |
37 |
+*freetype-2.4.6 (31 Jul 2011) |
38 |
+ |
39 |
+ 31 Jul 2011; Ryan Hill <dirtyepic@g.o> -freetype-2.4.4.ebuild, |
40 |
+ -freetype-2.4.5.ebuild, +freetype-2.4.6.ebuild: |
41 |
+ Version bump. This version fixes CVE-2011-0226 which allows an attacker to |
42 |
+ execute arbitrary code. All users must upgrade ASAP. (bug #377143) |
43 |
+ |
44 |
+ http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-0226 |
45 |
+ |
46 |
+ Remove vulnerable versions. |
47 |
|
48 |
*freetype-2.4.5 (25 Jun 2011) |
49 |
|
50 |
|
51 |
|
52 |
|
53 |
1.1 media-libs/freetype/freetype-2.4.6.ebuild |
54 |
|
55 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/freetype-2.4.6.ebuild?rev=1.1&view=markup |
56 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/freetype-2.4.6.ebuild?rev=1.1&content-type=text/plain |
57 |
|
58 |
Index: freetype-2.4.6.ebuild |
59 |
=================================================================== |
60 |
# Copyright 1999-2011 Gentoo Foundation |
61 |
# Distributed under the terms of the GNU General Public License v2 |
62 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.4.6.ebuild,v 1.1 2011/07/31 07:03:37 dirtyepic Exp $ |
63 |
|
64 |
EAPI="4" |
65 |
|
66 |
inherit autotools-utils eutils flag-o-matic libtool |
67 |
|
68 |
DESCRIPTION="A high-quality and portable font engine" |
69 |
HOMEPAGE="http://www.freetype.org/" |
70 |
SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2 |
71 |
utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2 ) |
72 |
doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2 )" |
73 |
|
74 |
LICENSE="FTL GPL-2" |
75 |
SLOT="2" |
76 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
77 |
IUSE="X auto-hinter bindist debug doc fontforge static-libs utils" |
78 |
|
79 |
DEPEND="sys-libs/zlib |
80 |
X? ( x11-libs/libX11 |
81 |
x11-libs/libXau |
82 |
x11-libs/libXdmcp )" |
83 |
|
84 |
RDEPEND="${DEPEND}" |
85 |
|
86 |
src_prepare() { |
87 |
enable_option() { |
88 |
sed -i -e "/#define $1/a #define $1" \ |
89 |
include/freetype/config/ftoption.h \ |
90 |
|| die "unable to enable option $1" |
91 |
} |
92 |
|
93 |
disable_option() { |
94 |
sed -i -e "/#define $1/ { s:^:/*:; s:$:*/: }" \ |
95 |
include/freetype/config/ftoption.h \ |
96 |
|| die "unable to disable option $1" |
97 |
} |
98 |
|
99 |
if ! use bindist; then |
100 |
# See http://freetype.org/patents.html |
101 |
# ClearType is covered by several Microsoft patents in the US |
102 |
enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING |
103 |
fi |
104 |
|
105 |
if use auto-hinter; then |
106 |
disable_option TT_CONFIG_OPTION_BYTECODE_INTERPRETER |
107 |
enable_option TT_CONFIG_OPTION_UNPATENTED_HINTING |
108 |
fi |
109 |
|
110 |
if use debug; then |
111 |
enable_option FT_DEBUG_LEVEL_TRACE |
112 |
enable_option FT_DEBUG_MEMORY |
113 |
fi |
114 |
|
115 |
disable_option FT_CONFIG_OPTION_OLD_INTERNALS |
116 |
|
117 |
epatch "${FILESDIR}"/${PN}-2.3.2-enable-valid.patch |
118 |
|
119 |
if use utils; then |
120 |
cd "${WORKDIR}/ft2demos-${PV}" |
121 |
sed -i -e "s:\.\.\/freetype2$:../freetype-${PV}:" Makefile || die |
122 |
# Disable tests needing X11 when USE="-X". (bug #177597) |
123 |
if ! use X; then |
124 |
sed -i -e "/EXES\ +=\ ftdiff/ s:^:#:" Makefile || die |
125 |
fi |
126 |
fi |
127 |
|
128 |
elibtoolize |
129 |
epunt_cxx |
130 |
} |
131 |
|
132 |
src_configure() { |
133 |
append-flags -fno-strict-aliasing |
134 |
type -P gmake &> /dev/null && export GNUMAKE=gmake |
135 |
econf $(use_enable static-libs static) |
136 |
} |
137 |
|
138 |
src_compile() { |
139 |
emake |
140 |
|
141 |
if use utils; then |
142 |
cd "${WORKDIR}/ft2demos-${PV}" |
143 |
emake |
144 |
fi |
145 |
} |
146 |
|
147 |
src_install() { |
148 |
emake DESTDIR="${D}" install |
149 |
|
150 |
dodoc ChangeLog README |
151 |
dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PROBLEMS,TODO} |
152 |
|
153 |
use doc && dohtml -r docs/* |
154 |
|
155 |
if use utils; then |
156 |
rm "${WORKDIR}"/ft2demos-${PV}/bin/README |
157 |
for ft2demo in ../ft2demos-${PV}/bin/*; do |
158 |
./builds/unix/libtool --mode=install $(type -P install) -m 755 "$ft2demo" \ |
159 |
"${D}"/usr/bin |
160 |
done |
161 |
fi |
162 |
|
163 |
if use fontforge; then |
164 |
# Probably fontforge needs less but this way makes things simplier... |
165 |
einfo "Installing internal headers required for fontforge" |
166 |
find src/truetype include/freetype/internal -name '*.h' | \ |
167 |
while read header; do |
168 |
mkdir -p "${D}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" |
169 |
cp ${header} "${D}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" |
170 |
done |
171 |
fi |
172 |
|
173 |
if ! use static-libs; then |
174 |
remove_libtool_files || die "failed removing libtool files" |
175 |
fi |
176 |
} |
177 |
|
178 |
pkg_postinst() { |
179 |
elog "The TrueType bytecode interpreter is no longer patented and thus no" |
180 |
elog "longer controlled by the bindist USE flag. Enable the auto-hinter" |
181 |
elog "USE flag if you want the old USE="bindist" hinting behavior." |
182 |
} |