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: sys-block/thin-provisioning-tools/, sys-block/thin-provisioning-tools/files/
Date: Wed, 05 Jun 2019 14:14:37
Message-Id: 1559744067.ecd5ec9189fa68ecb6f107a96126ddd1eaddc59f.polynomial-c@gentoo
1 commit: ecd5ec9189fa68ecb6f107a96126ddd1eaddc59f
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 5 14:08:48 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 5 14:14:27 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecd5ec91
7
8 sys-block/thin-provisioning-tools: Bump to version 0.8.5
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.14
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-block/thin-provisioning-tools/Manifest | 1 +
14 ...n-provisioning-tools-0.8.5-libaio-0.3.112.patch | 84 ++++++++++++++++++++++
15 .../thin-provisioning-tools-0.8.5.ebuild | 73 +++++++++++++++++++
16 3 files changed, 158 insertions(+)
17
18 diff --git a/sys-block/thin-provisioning-tools/Manifest b/sys-block/thin-provisioning-tools/Manifest
19 index 97df26fe41f..c665cb67117 100644
20 --- a/sys-block/thin-provisioning-tools/Manifest
21 +++ b/sys-block/thin-provisioning-tools/Manifest
22 @@ -3,3 +3,4 @@ DIST thin-provisioning-tools-0.7.0.tar.gz 230595 BLAKE2B 00238a682f80600e3a5bb6d
23 DIST thin-provisioning-tools-0.7.6.tar.gz 285428 BLAKE2B af74eff6d435f00e347872786fee8627f02844af122a9f1bf9ffd00234ce5275d3a61d9b4204313a19813cadbc0197bbeb9a1bd92d55992c6d9a03a299579e29 SHA512 395035b6f59fafb1c0f3e68750611e04f10223bc8d57b257e25c28c928647d1d2c6e94014b64ed90eeae1151fc7e5d23cf1aa428716e343338cb3c8fe55ed704
24 DIST thin-provisioning-tools-0.8.2.tar.gz 305022 BLAKE2B ad4f7c088d890e111679a8de041ef0e05c30c5f4a46e96f7d0e1ca8034426d047dc9d2bbad624ba5e9371a5ebdd5be55ebc9486ed38c18c6fb764f8339806f3d SHA512 3aeaef4e720a14605181b700200ce6283e0e230034e5e787164a28043ae622f932e4fe8c166bc982e5e2e987cb2530027af08cc84443b2519cfbfc607c2b4681
25 DIST thin-provisioning-tools-0.8.3.tar.gz 305338 BLAKE2B 619f73ef7bd802eb72649d0bdaa8ce1d6afb4d7ae442ac7d2d709764aaa5058bf77b12710a332cf5f8215cfb94e1d63c189951058e2373467ca88c847e32cd8d SHA512 a69645d45fd62a487903a07f922fd622b5fb9c7858e656b9468903005ab7daa3098aa89ae356f2458fcf95e3c0672bf486b424553d82ffae54b83c0b71599541
26 +DIST thin-provisioning-tools-0.8.5.tar.gz 305585 BLAKE2B 7e4bde537535db79e97ddab3cba775c89854362dac7da491c040badf5e3546d2e6ac4b8da8462edb59f50a2ecd95fe9c5e3349fca5e9acd588efaaf990617ca4 SHA512 1f9a1b6b9059f0b23ec3a00ddef223599292d447894316525f13b9c1e4f29d0371cb901d199cb503be4342555e016e5e6eb2d6e0e10c44b08e6c9478c573e1d4
27
28 diff --git a/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-0.8.5-libaio-0.3.112.patch b/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-0.8.5-libaio-0.3.112.patch
29 new file mode 100644
30 index 00000000000..af31b90a40b
31 --- /dev/null
32 +++ b/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-0.8.5-libaio-0.3.112.patch
33 @@ -0,0 +1,84 @@
34 +From 6332962ee866f5289de87ab70cd3db863298982c Mon Sep 17 00:00:00 2001
35 +From: Joe Thornber <ejt@××××××.com>
36 +Date: Wed, 5 Jun 2019 15:02:05 +0100
37 +Subject: [PATCH] [ft-lib/bcache] rename raise() -> raise_()
38 +
39 +Name clash with signal.h on Debian and Gentoo.
40 +---
41 + ft-lib/bcache.c | 16 ++++++++--------
42 + 1 file changed, 8 insertions(+), 8 deletions(-)
43 +
44 +diff --git a/ft-lib/bcache.c b/ft-lib/bcache.c
45 +index 0dca5031..ee5b6c59 100644
46 +--- a/ft-lib/bcache.c
47 ++++ b/ft-lib/bcache.c
48 +@@ -31,7 +31,7 @@ static void warn(const char *fmt, ...)
49 + }
50 +
51 + // FIXME: raise a condition somehow?
52 +-static void raise(const char *fmt, ...)
53 ++static void raise_(const char *fmt, ...)
54 + {
55 + va_list ap;
56 +
57 +@@ -51,7 +51,7 @@ static inline struct list_head *list_pop(struct list_head *head)
58 + struct list_head *l;
59 +
60 + if (head->next == head)
61 +- raise("list is empty\n");
62 ++ raise_("list is empty\n");
63 +
64 + l = head->next;
65 + list_del(l);
66 +@@ -98,7 +98,7 @@ static struct cb_set *cb_set_create(unsigned nr)
67 + static void cb_set_destroy(struct cb_set *cbs)
68 + {
69 + if (!list_empty(&cbs->allocated))
70 +- raise("async io still in flight");
71 ++ raise_("async io still in flight");
72 +
73 + free(cbs->vec);
74 + free(cbs);
75 +@@ -713,13 +713,13 @@ struct bcache *bcache_simple(const char *path, unsigned nr_cache_blocks)
76 + uint64_t s;
77 +
78 + if (fd < 0) {
79 +- raise("couldn't open cache file");
80 ++ raise_("couldn't open cache file");
81 + return NULL;
82 + }
83 +
84 + r = fstat(fd, &info);
85 + if (r < 0) {
86 +- raise("couldn't stat cache file");
87 ++ raise_("couldn't stat cache file");
88 + return NULL;
89 + }
90 +
91 +@@ -751,7 +751,7 @@ void bcache_destroy(struct bcache *cache)
92 + static void check_index(struct bcache *cache, block_address index)
93 + {
94 + if (index >= cache->nr_data_blocks)
95 +- raise("block out of bounds (%llu >= %llu)",
96 ++ raise_("block out of bounds (%llu >= %llu)",
97 + (unsigned long long) index,
98 + (unsigned long long) cache->nr_data_blocks);
99 + }
100 +@@ -802,7 +802,7 @@ static struct block *lookup_or_read_block(struct bcache *cache,
101 + // FIXME: this is insufficient. We need to also catch a read
102 + // lock of a write locked block. Ref count needs to distinguish.
103 + if (b->ref_count && (flags & (GF_DIRTY | GF_ZERO)))
104 +- raise("concurrent write lock attempt");
105 ++ raise_("concurrent write lock attempt");
106 +
107 + if (test_flags(b, BF_IO_PENDING)) {
108 + miss(cache, flags);
109 +@@ -858,7 +858,7 @@ struct block *get_block(struct bcache *cache, block_address index, unsigned flag
110 + return b;
111 + }
112 +
113 +- raise("couldn't get block");
114 ++ raise_("couldn't get block");
115 + return NULL;
116 + }
117 +
118
119 diff --git a/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.8.5.ebuild b/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.8.5.ebuild
120 new file mode 100644
121 index 00000000000..037f7951d17
122 --- /dev/null
123 +++ b/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.8.5.ebuild
124 @@ -0,0 +1,73 @@
125 +# Copyright 1999-2019 Gentoo Authors
126 +# Distributed under the terms of the GNU General Public License v2
127 +
128 +EAPI=7
129 +
130 +inherit autotools flag-o-matic
131 +
132 +DESCRIPTION="A suite of tools for thin provisioning on Linux"
133 +HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools"
134 +
135 +if [[ ${PV} != *9999 ]]; then
136 + SRC_URI="https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
137 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
138 +else
139 + inherit git-r3
140 + EGIT_REPO_URI='https://github.com/jthornber/thin-provisioning-tools.git'
141 +fi
142 +
143 +LICENSE="GPL-3"
144 +SLOT="0"
145 +IUSE="static test"
146 +
147 +LIB_DEPEND="dev-libs/expat[static-libs(+)]
148 + dev-libs/libaio[static-libs(+)]"
149 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
150 +DEPEND="${RDEPEND}
151 + static? ( ${LIB_DEPEND} )
152 + test? (
153 + || (
154 + dev-lang/ruby:2.6
155 + dev-lang/ruby:2.5
156 + dev-lang/ruby:2.4
157 + )
158 + >=dev-cpp/gtest-1.8.0
159 + dev-util/cucumber
160 + dev-util/aruba
161 + )
162 + dev-libs/boost"
163 +
164 +PATCHES=(
165 + "${FILESDIR}"/${PN}-0.7.0-build-fixes.patch
166 + "${FILESDIR}"/${PN}-0.8.5-libaio-0.3.112.patch
167 +)
168 +
169 +src_prepare() {
170 + default
171 + eautoreconf
172 +}
173 +
174 +src_configure() {
175 + use static && append-ldflags -static
176 + local myeconfargs=(
177 + --prefix="${EPREFIX}"/
178 + --bindir="${EPREFIX}"/sbin
179 + --with-optimisation=''
180 + $(use_enable test testing)
181 + )
182 + STRIP=true econf "${myeconfargs[@]}"
183 +}
184 +
185 +src_compile() {
186 + MAKEOPTS+=" V="
187 + default
188 +}
189 +
190 +src_test() {
191 + emake unit-test
192 +}
193 +
194 +src_install() {
195 + emake DESTDIR="${D}" DATADIR="${D}/usr/share" install
196 + dodoc README.md TODO.org
197 +}