1 |
vapier 15/07/06 16:37:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libpcre-8.37-r2.ebuild |
5 |
Log: |
6 |
Add backport from upstream for CVE-2015-3210 #551240 by Thomas D. Add backport from upstream for CVE-2015-5073 #553300 by Agostino Sarubbo. |
7 |
|
8 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200) |
9 |
|
10 |
Revision Changes Path |
11 |
1.258 dev-libs/libpcre/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libpcre/ChangeLog?rev=1.258&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libpcre/ChangeLog?rev=1.258&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libpcre/ChangeLog?r1=1.257&r2=1.258 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/libpcre/ChangeLog,v |
20 |
retrieving revision 1.257 |
21 |
retrieving revision 1.258 |
22 |
diff -u -r1.257 -r1.258 |
23 |
--- ChangeLog 9 Jun 2015 14:41:45 -0000 1.257 |
24 |
+++ ChangeLog 6 Jul 2015 16:37:06 -0000 1.258 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for dev-libs/libpcre |
27 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/ChangeLog,v 1.257 2015/06/09 14:41:45 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/ChangeLog,v 1.258 2015/07/06 16:37:06 vapier Exp $ |
30 |
+ |
31 |
+*libpcre-8.37-r2 (06 Jul 2015) |
32 |
+ |
33 |
+ 06 Jul 2015; Mike Frysinger <vapier@g.o> |
34 |
+ +files/libpcre-8.37-CVE-2015-3210.patch, |
35 |
+ +files/libpcre-8.37-CVE-2015-5073.patch, +libpcre-8.37-r2.ebuild: |
36 |
+ Add backport from upstream for CVE-2015-3210 #551240 by Thomas D. Add |
37 |
+ backport from upstream for CVE-2015-5073 #553300 by Agostino Sarubbo. |
38 |
|
39 |
09 Jun 2015; Justin Lecher <jlec@g.o> metadata.xml: |
40 |
Updating remote-id in metadata.xml |
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-libs/libpcre/libpcre-8.37-r2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libpcre/libpcre-8.37-r2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libpcre/libpcre-8.37-r2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: libpcre-8.37-r2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2015 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/libpcre-8.37-r2.ebuild,v 1.1 2015/07/06 16:37:06 vapier Exp $ |
54 |
|
55 |
EAPI="4" |
56 |
|
57 |
inherit eutils multilib libtool flag-o-matic toolchain-funcs multilib-minimal |
58 |
|
59 |
DESCRIPTION="Perl-compatible regular expression library" |
60 |
HOMEPAGE="http://www.pcre.org/" |
61 |
MY_P="pcre-${PV/_rc/-RC}" |
62 |
if [[ ${PV} != *_rc* ]] ; then |
63 |
# Only the final releases are available here. |
64 |
SRC_URI="mirror://sourceforge/pcre/${MY_P}.tar.bz2 |
65 |
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.tar.bz2" |
66 |
else |
67 |
SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/${MY_P}.tar.bz2" |
68 |
fi |
69 |
|
70 |
LICENSE="BSD" |
71 |
SLOT="3" |
72 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
73 |
IUSE="bzip2 +cxx +jit libedit pcre16 pcre32 +readline +recursion-limit static-libs unicode zlib" |
74 |
REQUIRED_USE="readline? ( !libedit ) |
75 |
libedit? ( !readline )" |
76 |
|
77 |
RDEPEND="bzip2? ( app-arch/bzip2 ) |
78 |
zlib? ( sys-libs/zlib ) |
79 |
libedit? ( dev-libs/libedit ) |
80 |
readline? ( sys-libs/readline )" |
81 |
DEPEND="${RDEPEND} |
82 |
virtual/pkgconfig |
83 |
userland_GNU? ( >=sys-apps/findutils-4.4.0 )" |
84 |
RDEPEND="${RDEPEND} |
85 |
abi_x86_32? ( |
86 |
!<=app-emulation/emul-linux-x86-baselibs-20131008-r2 |
87 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
88 |
)" |
89 |
|
90 |
S=${WORKDIR}/${MY_P} |
91 |
|
92 |
MULTILIB_CHOST_TOOLS=( |
93 |
/usr/bin/pcre-config |
94 |
) |
95 |
|
96 |
src_prepare() { |
97 |
epatch "${FILESDIR}"/${P}-CVE-2015-3210.patch #551240 |
98 |
epatch "${FILESDIR}"/${P}-CVE-2015-5073.patch #553300 |
99 |
sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die |
100 |
elibtoolize |
101 |
} |
102 |
|
103 |
multilib_src_configure() { |
104 |
ECONF_SOURCE="${S}" econf \ |
105 |
--with-match-limit-recursion=$(usex recursion-limit 8192 MATCH_LIMIT) \ |
106 |
$(multilib_native_use_enable bzip2 pcregrep-libbz2) \ |
107 |
$(use_enable cxx cpp) \ |
108 |
$(use_enable jit) $(use_enable jit pcregrep-jit) \ |
109 |
$(use_enable pcre16) \ |
110 |
$(use_enable pcre32) \ |
111 |
$(multilib_native_use_enable libedit pcretest-libedit) \ |
112 |
$(multilib_native_use_enable readline pcretest-libreadline) \ |
113 |
$(use_enable static-libs static) \ |
114 |
$(use_enable unicode utf) $(use_enable unicode unicode-properties) \ |
115 |
$(multilib_native_use_enable zlib pcregrep-libz) \ |
116 |
--enable-pcre8 \ |
117 |
--enable-shared \ |
118 |
--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
119 |
--docdir="${EPREFIX}"/usr/share/doc/${PF} |
120 |
} |
121 |
|
122 |
multilib_src_compile() { |
123 |
emake V=1 $(multilib_is_native_abi || echo "bin_PROGRAMS=") |
124 |
} |
125 |
|
126 |
multilib_src_install() { |
127 |
emake \ |
128 |
DESTDIR="${D}" \ |
129 |
$(multilib_is_native_abi || echo "bin_PROGRAMS= dist_html_DATA=") \ |
130 |
install |
131 |
multilib_is_native_abi && gen_usr_ldscript -a pcre |
132 |
} |
133 |
|
134 |
multilib_src_install_all() { |
135 |
prune_libtool_files |
136 |
} |
137 |
|
138 |
pkg_preinst() { |
139 |
preserve_old_lib /$(get_libdir)/libpcre.so.0 |
140 |
} |
141 |
|
142 |
pkg_postinst() { |
143 |
preserve_old_lib_notify /$(get_libdir)/libpcre.so.0 |
144 |
} |