Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/libarchive: libarchive-3.1.2-r1.ebuild ChangeLog
Date: Sat, 30 Mar 2013 15:19:22
Message-Id: 20130330151917.DC0FF2171D@flycatcher.gentoo.org
1 ssuominen 13/03/30 15:19:17
2
3 Modified: ChangeLog
4 Added: libarchive-3.1.2-r1.ebuild
5 Log:
6 Backport upstream patch for CVE-2013-0211 wrt security #463632 by Agostino Sarubbo
7
8 (Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
9
10 Revision Changes Path
11 1.142 app-arch/libarchive/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/libarchive/ChangeLog?rev=1.142&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/libarchive/ChangeLog?rev=1.142&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/libarchive/ChangeLog?r1=1.141&r2=1.142
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v
20 retrieving revision 1.141
21 retrieving revision 1.142
22 diff -u -r1.141 -r1.142
23 --- ChangeLog 30 Mar 2013 15:13:07 -0000 1.141
24 +++ ChangeLog 30 Mar 2013 15:19:17 -0000 1.142
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-arch/libarchive
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v 1.141 2013/03/30 15:13:07 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v 1.142 2013/03/30 15:19:17 ssuominen Exp $
30 +
31 +*libarchive-3.1.2-r1 (30 Mar 2013)
32 +
33 + 30 Mar 2013; Samuli Suominen <ssuominen@g.o>
34 + +libarchive-3.1.2-r1.ebuild, +files/libarchive-3.1.2-CVE-2013-0211.patch:
35 + Backport upstream patch for CVE-2013-0211 wrt security #463632 by Agostino
36 + Sarubbo
37
38 *libarchive-3.1.2 (30 Mar 2013)
39
40
41
42
43 1.1 app-arch/libarchive/libarchive-3.1.2-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/libarchive/libarchive-3.1.2-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/libarchive/libarchive-3.1.2-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: libarchive-3.1.2-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/libarchive-3.1.2-r1.ebuild,v 1.1 2013/03/30 15:19:17 ssuominen Exp $
53
54 EAPI=5
55 inherit eutils libtool multilib
56
57 DESCRIPTION="BSD tar command"
58 HOMEPAGE="http://www.libarchive.org/"
59 SRC_URI="http://www.libarchive.org/downloads/${P}.tar.gz"
60
61 LICENSE="BSD BSD-2 BSD-4 public-domain"
62 SLOT="0/13"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
64 IUSE="acl +bzip2 +e2fsprogs expat +iconv kernel_linux +lzma lzo nettle static-libs xattr +zlib"
65
66 RDEPEND="dev-libs/openssl:0
67 acl? ( virtual/acl )
68 bzip2? ( app-arch/bzip2 )
69 expat? ( dev-libs/expat )
70 !expat? ( dev-libs/libxml2 )
71 iconv? ( virtual/libiconv )
72 kernel_linux? (
73 xattr? ( sys-apps/attr )
74 )
75 lzma? ( app-arch/xz-utils )
76 lzo? ( >=dev-libs/lzo-2 )
77 nettle? ( dev-libs/nettle )
78 zlib? ( sys-libs/zlib )"
79 DEPEND="${RDEPEND}
80 kernel_linux? (
81 virtual/os-headers
82 e2fsprogs? ( sys-fs/e2fsprogs )
83 )"
84
85 DOCS="NEWS README"
86
87 src_prepare() {
88 epatch "${FILESDIR}"/${P}-CVE-2013-0211.patch
89 elibtoolize
90 }
91
92 src_configure() {
93 export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
94
95 # We disable lzmadec because we support the newer liblzma from xz-utils
96 # and not liblzmadec with this version.
97 econf \
98 $(use_enable static-libs static) \
99 --enable-bsdtar=shared \
100 --enable-bsdcpio=shared \
101 $(use_enable xattr) \
102 $(use_enable acl) \
103 $(use_with zlib) \
104 $(use_with bzip2 bz2lib) \
105 --without-lzmadec \
106 $(use_with iconv) \
107 $(use_with lzma) \
108 $(use_with lzo lzo2) \
109 $(use_with nettle) \
110 $(use_with !expat xml2) \
111 $(use_with expat)
112 }
113
114 src_test() {
115 # Replace the default src_test so that it builds tests in parallel
116 emake check
117 }
118
119 src_install() {
120 default
121
122 # Libs.private: should be used from libarchive.pc instead
123 prune_libtool_files
124
125 # Create tar symlink for FreeBSD
126 if ! use prefix && [[ ${CHOST} == *-freebsd* ]]; then
127 dosym bsdtar /usr/bin/tar
128 echo '.so bsdtar.1' > "${T}"/tar.1
129 doman "${T}"/tar.1
130 # We may wish to switch to symlink bsdcpio to cpio too one day
131 fi
132 }
133
134 pkg_preinst() {
135 preserve_old_lib /usr/$(get_libdir)/${PN}$(get_libname 12)
136 }
137
138 pkg_postinst() {
139 preserve_old_lib_notify /usr/$(get_libdir)/${PN}$(get_libname 12)
140 }