Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libtar/files/, dev-libs/libtar/
Date: Sat, 17 Feb 2018 13:37:44
Message-Id: 1518874641.d39b56393beb1755e008e5281cf882baeeae7a80.asturm@gentoo
1 commit: d39b56393beb1755e008e5281cf882baeeae7a80
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 17 10:51:40 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 17 13:37:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d39b5639
7
8 dev-libs/libtar: EAPI 6 bump
9
10 Add sys-libs/zlib slot op, drop inaccessible homepage.
11
12 Package-Manager: Portage-2.3.24, Repoman-2.3.6
13
14 dev-libs/libtar/files/CVE-2013-4420.patch | 12 ++---
15 dev-libs/libtar/files/libtar-1.2.11-free.patch | 8 +--
16 dev-libs/libtar/libtar-1.2.20-r4.ebuild | 67 ++++++++++++++++++++++++++
17 3 files changed, 77 insertions(+), 10 deletions(-)
18
19 diff --git a/dev-libs/libtar/files/CVE-2013-4420.patch b/dev-libs/libtar/files/CVE-2013-4420.patch
20 index d6e24860c92..833ff7b1dbb 100644
21 --- a/dev-libs/libtar/files/CVE-2013-4420.patch
22 +++ b/dev-libs/libtar/files/CVE-2013-4420.patch
23 @@ -1,5 +1,5 @@
24 ---- a/libtar/lib/decode.c 2013-10-09 09:59:44.000000000 -0700
25 -+++ b/libtar/lib/decode.c 2015-07-20 20:57:58.331945962 -0700
26 +--- a/lib/decode.c 2013-10-09 09:59:44.000000000 -0700
27 ++++ b/lib/decode.c 2015-07-20 20:57:58.331945962 -0700
28 @@ -21,24 +21,55 @@
29 # include <string.h>
30 #endif
31 @@ -59,8 +59,8 @@
32 return filename;
33 }
34
35 ---- a/libtar/lib/extract.c 2013-10-09 09:59:44.000000000 -0700
36 -+++ b/libtar/lib/extract.c 2015-07-20 21:00:16.560956122 -0700
37 +--- a/lib/extract.c 2013-10-09 09:59:44.000000000 -0700
38 ++++ b/lib/extract.c 2015-07-20 21:00:16.560956122 -0700
39 @@ -305,7 +305,7 @@
40 linktgt = &lnp[strlen(lnp) + 1];
41 }
42 @@ -82,8 +82,8 @@
43 {
44 #ifdef DEBUG
45 perror("symlink()");
46 ---- a/libtar/lib/internal.h 2013-10-09 09:59:44.000000000 -0700
47 -+++ b/libtar/lib/internal.h 2015-07-20 21:00:51.258958673 -0700
48 +--- a/lib/internal.h 2013-10-09 09:59:44.000000000 -0700
49 ++++ b/lib/internal.h 2015-07-20 21:00:51.258958673 -0700
50 @@ -15,6 +15,7 @@
51
52 #include <libtar.h>
53
54 diff --git a/dev-libs/libtar/files/libtar-1.2.11-free.patch b/dev-libs/libtar/files/libtar-1.2.11-free.patch
55 index 3a7b028d5d2..cb6524e5e5a 100644
56 --- a/dev-libs/libtar/files/libtar-1.2.11-free.patch
57 +++ b/dev-libs/libtar/files/libtar-1.2.11-free.patch
58 @@ -1,7 +1,7 @@
59 stdlib.h is required for free()
60
61 ---- lib/output.c
62 -+++ lib/output.c
63 +--- a/lib/output.c
64 ++++ b/lib/output.c
65 @@ -20,6 +20,7 @@
66 #include <sys/param.h>
67
68 @@ -10,8 +10,8 @@ stdlib.h is required for free()
69 # include <string.h>
70 #endif
71
72 ---- lib/wrapper.c
73 -+++ lib/wrapper.c
74 +--- a/lib/wrapper.c
75 ++++ b/lib/wrapper.c
76 @@ -18,6 +18,7 @@
77 #include <errno.h>
78
79
80 diff --git a/dev-libs/libtar/libtar-1.2.20-r4.ebuild b/dev-libs/libtar/libtar-1.2.20-r4.ebuild
81 new file mode 100644
82 index 00000000000..5f441bbfa57
83 --- /dev/null
84 +++ b/dev-libs/libtar/libtar-1.2.20-r4.ebuild
85 @@ -0,0 +1,67 @@
86 +# Copyright 1999-2018 Gentoo Foundation
87 +# Distributed under the terms of the GNU General Public License v2
88 +
89 +EAPI=6
90 +
91 +inherit autotools
92 +
93 +DESCRIPTION="C library for manipulating tar archives"
94 +HOMEPAGE="http://repo.or.cz/w/libtar.git/"
95 +SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.gz"
96 +
97 +LICENSE="GPL-2"
98 +SLOT="0"
99 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
100 +IUSE="static-libs zlib"
101 +
102 +RDEPEND="
103 + zlib? ( sys-libs/zlib:= )
104 + !zlib? ( app-arch/gzip )
105 +"
106 +DEPEND="${RDEPEND}"
107 +
108 +DOCS=( ChangeLog{,-1.0.x} README TODO )
109 +
110 +S="${WORKDIR}/${PN}"
111 +
112 +# There is no test and 'check' target errors out due to mixing of automake &
113 +# non-automake makefiles.
114 +# https://bugs.gentoo.org/show_bug.cgi?id=526436
115 +RESTRICT="test"
116 +
117 +PATCHES=(
118 + "${FILESDIR}"/${PN}-1.2.11-free.patch
119 + "${FILESDIR}"/${PN}-1.2.11-impl-dec.patch
120 + "${FILESDIR}"/CVE-2013-4420.patch
121 +)
122 +
123 +src_prepare() {
124 + default
125 +
126 + sed -e '/INSTALL_PROGRAM/s:-s::' \
127 + -i {doc,lib{,tar}}/Makefile.in || die
128 +
129 + eautoreconf
130 +}
131 +
132 +src_configure() {
133 + local myeconfargs=(
134 + --enable-shared
135 + --disable-encap
136 + --disable-epkg-install
137 + $(use_enable static-libs static)
138 + $(use_with zlib)
139 + )
140 +
141 + econf ${myeconfargs[@]}
142 +}
143 +
144 +src_install() {
145 + default
146 +
147 + newdoc compat/README README.compat
148 + newdoc compat/TODO TODO.compat
149 + newdoc listhash/TODO TODO.listhash
150 +
151 + find "${D}" -name '*.la' -delete || die
152 +}