Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/libarchive/
Date: Mon, 31 Oct 2016 22:39:12
Message-Id: 1477953530.44dbb86594383c91dbb21bb471b4c89347325e48.polynomial-c@gentoo
1 commit: 44dbb86594383c91dbb21bb471b4c89347325e48
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 31 21:15:42 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 31 22:38:50 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44dbb865
7
8 app-arch/libarchive: Security bump to version 3.2.2 (bug #596568).
9
10 Package-Manager: portage-2.3.2
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-arch/libarchive/Manifest | 1 +
14 app-arch/libarchive/libarchive-3.2.2.ebuild | 119 ++++++++++++++++++++++++++++
15 2 files changed, 120 insertions(+)
16
17 diff --git a/app-arch/libarchive/Manifest b/app-arch/libarchive/Manifest
18 index 87b1fb0..258b3dc 100644
19 --- a/app-arch/libarchive/Manifest
20 +++ b/app-arch/libarchive/Manifest
21 @@ -1,2 +1,3 @@
22 DIST libarchive-3.1.2.tar.gz 4527540 SHA256 eb87eacd8fe49e8d90c8fdc189813023ccc319c5e752b01fb6ad0cc7b2c53d5e SHA512 1f3c2a675031f93c7d42ae2ed06742b0b1e2236ff57d9117791d62fb8ae77d6cafffbcb5d45b5bd98daa908bd18c576cf82e01a9b1eba699705e23eff3688114 WHIRLPOOL b90f336afb5264be91fb17d7dae3d5697e3f84e24d276af1d5ac076fe15ef6f5756488f09506fabe470473becb5449cd1f34865309dcf8a914e6e83506e8695f
23 DIST libarchive-3.2.1.tar.gz 5448888 SHA256 72ee1a4e3fd534525f13a0ba1aa7b05b203d186e0c6072a8a4738649d0b3cfd2 SHA512 a5d43cb0bf36b687fabfbc874e7adc1fa94c563e7f073e107db8d4e79e8d0d8146cb985809f8115fbb882fc2d8a2a477d0a7364e93e6df62f292bb5e9865ec5c WHIRLPOOL 1dd79ec3d7cf53be237d6730476c6a47c0722a5a7d0f2adc347aa491ba95ba7c77342a39a9e3d0fbff64111b552bb558cb571aa74dd6c18e6c60987bf0f41d7c
24 +DIST libarchive-3.2.2.tar.gz 5458241 SHA256 691c194ee132d1f0f7a42541f091db811bc2e56f7107e9121be2bc8c04f1060f SHA512 a67920c37d49cf9478032d77fc4fa21827cebb96e9b83d9ecb8466328834052e4ab3d3a9bc4e2edf405d6cb14ffd648c9fa100b578257f6e5842c99bbea558a7 WHIRLPOOL 8fdc2e9245db27a7da3cfdeecb6283b170a25fc6ea8201fe5a414b4c1b523ae6b05745246f867f24062d91b7a040780b687b1a44a95503c4e252f9836218ffef
25
26 diff --git a/app-arch/libarchive/libarchive-3.2.2.ebuild b/app-arch/libarchive/libarchive-3.2.2.ebuild
27 new file mode 100644
28 index 00000000..d0d5553
29 --- /dev/null
30 +++ b/app-arch/libarchive/libarchive-3.2.2.ebuild
31 @@ -0,0 +1,119 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +inherit eutils multilib-minimal toolchain-funcs
38 +
39 +DESCRIPTION="BSD tar command"
40 +HOMEPAGE="http://www.libarchive.org/"
41 +SRC_URI="http://www.libarchive.org/downloads/${P}.tar.gz"
42 +
43 +LICENSE="BSD BSD-2 BSD-4 public-domain"
44 +SLOT="0/13"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~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"
46 +IUSE="acl +bzip2 +e2fsprogs expat +iconv kernel_linux libressl lz4 +lzma lzo nettle static-libs +threads xattr +zlib"
47 +
48 +RDEPEND="
49 + acl? ( virtual/acl[${MULTILIB_USEDEP}] )
50 + bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
51 + expat? ( dev-libs/expat[${MULTILIB_USEDEP}] )
52 + !expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] )
53 + iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
54 + kernel_linux? (
55 + xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
56 + )
57 + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
58 + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
59 + lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
60 + lzma? ( app-arch/xz-utils[threads=,${MULTILIB_USEDEP}] )
61 + lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
62 + nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
63 + zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )"
64 +DEPEND="${RDEPEND}
65 + kernel_linux? (
66 + virtual/os-headers
67 + e2fsprogs? ( sys-fs/e2fsprogs )
68 + )"
69 +
70 +#PATCHES=(
71 +#)
72 +
73 +multilib_src_configure() {
74 + export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
75 +
76 + local myconf=()
77 + myconf=(
78 + $(use_enable acl)
79 + $(use_enable static-libs static)
80 + $(use_enable xattr)
81 + $(use_with bzip2 bz2lib)
82 + $(use_with expat)
83 + $(use_with !expat xml2)
84 + $(use_with iconv)
85 + $(use_with lz4)
86 + $(use_with lzma)
87 + $(use_with lzo lzo2)
88 + $(use_with nettle)
89 + $(use_with zlib)
90 + )
91 + if multilib_is_native_abi ; then myconf+=(
92 + --enable-bsdcat=$(tc-is-static-only && echo static || echo shared)
93 + --enable-bsdcpio=$(tc-is-static-only && echo static || echo shared)
94 + --enable-bsdtar=$(tc-is-static-only && echo static || echo shared)
95 + ); else myconf+=(
96 + --disable-bsdcat
97 + --disable-bsdcpio
98 + --disable-bsdtar
99 + ); fi
100 +
101 + # We disable lzmadec because we support the newer liblzma from xz-utils
102 + # and not liblzmadec with this version.
103 + myconf+=(
104 + --without-lzmadec
105 + )
106 +
107 + ECONF_SOURCE="${S}" econf "${myconf[@]}"
108 +}
109 +
110 +multilib_src_compile() {
111 + if multilib_is_native_abi ; then
112 + emake
113 + else
114 + emake libarchive.la
115 + fi
116 +}
117 +
118 +multilib_src_test() {
119 + # Replace the default src_test so that it builds tests in parallel
120 + multilib_is_native_abi && emake check
121 +}
122 +
123 +multilib_src_install() {
124 + if multilib_is_native_abi ; then
125 + emake DESTDIR="${D}" install
126 +
127 + # Create symlinks for FreeBSD
128 + if ! use prefix && [[ ${CHOST} == *-freebsd* ]]; then
129 + # Exclude cat for the time being #589876
130 + for bin in cpio tar; do
131 + dosym bsd${bin} /usr/bin/${bin}
132 + echo '.so bsd${bin}.1' > "${T}"/${bin}.1
133 + doman "${T}"/${bin}.1
134 + done
135 + fi
136 + else
137 + emake DESTDIR="${D}" \
138 + install-includeHEADERS \
139 + install-libLTLIBRARIES \
140 + install-pkgconfigDATA
141 + fi
142 +
143 + # Libs.private: should be used from libarchive.pc instead
144 + prune_libtool_files
145 +}
146 +
147 +multilib_src_install_all() {
148 + cd "${S}" || die
149 + einstalldocs
150 +}