Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/parted/files/, sys-block/parted/
Date: Fri, 23 Feb 2018 22:32:13
Message-Id: 1519425090.3571d8bf77ab6a3ae461f2faa15e3ad9521b32b9.dilfridge@gentoo
1 commit: 3571d8bf77ab6a3ae461f2faa15e3ad9521b32b9
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 23 22:31:11 2018 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 23 22:31:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3571d8bf
7
8 sys-block/parted: Drop old, bug 575232
9
10 Bug: https://bugs.gentoo.org/580022
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 sys-block/parted/Manifest | 2 -
14 sys-block/parted/files/parted-2.4-no-gets.patch | 10 --
15 sys-block/parted/files/parted-2.4-readline.patch | 11 --
16 sys-block/parted/files/parted-3.1-readline.patch | 11 --
17 sys-block/parted/files/parted-3.1-zfs.patch | 170 -----------------------
18 sys-block/parted/parted-2.4-r1.ebuild | 54 -------
19 sys-block/parted/parted-2.4.ebuild | 55 --------
20 sys-block/parted/parted-3.1-r1.ebuild | 81 -----------
21 sys-block/parted/parted-3.1-r2.ebuild | 85 ------------
22 9 files changed, 479 deletions(-)
23
24 diff --git a/sys-block/parted/Manifest b/sys-block/parted/Manifest
25 index 9e17484a69a..fbf95dc359e 100644
26 --- a/sys-block/parted/Manifest
27 +++ b/sys-block/parted/Manifest
28 @@ -1,5 +1,3 @@
29 -DIST parted-2.4.tar.xz 1516412 BLAKE2B fdc489ba9e0636b6f3e67d3863acf88ab3143e60aab2a75765502347e644954014530b7b1ad6dd625e6504abf936d367e65d418ba13379f57b4ba1c386583a23 SHA512 1f7ac11079981b176c1157bd6d858e67394bb4be9b622f91d4e78412a41c696809ed60912b8b94f3a2a924b2f43638dd5d6cb6f4c28e8dc63a2d421380cb5477
30 -DIST parted-3.1.tar.xz 1524344 BLAKE2B 51f6cb84fb0a08dc5c9f634e265e4ac7778cde9f5400771af897a8661bf6dcdcfac2b2dec817c7d0f61d3fd5f8408c065754ea756ed59491dff75595d4306a2d SHA512 f29a67a16cf79f08abbfc5eeb6ad0480d834aa50e715378626dc89e3b12ce71f19202e9f38429e5521ebe877c4e74ff1e08f0b0ecbdbe79ba1c51fdcbef6e852
31 DIST parted-3.2.tar.xz 1655244 BLAKE2B 56608590b26a9b5266dacf3698d990b730bdb35d9374d1da57103fbef3ef5037e40dd2fe0f523ca8e0e75401a3b25cf543e5ca5c94cf410bbaa62ea15d6f0ba3 SHA512 4e37dbdd6f5032c9ebfec43704f6882379597d038167b9c4d04053efa083c68a705196713864451fa9e11d32777e16c68982877945c5efd9ea5f8252cb20e1c4
32 DIST parted_3.2-19.debian.tar.xz 87288 BLAKE2B f0cef2978ead9edca3e952849deb36526eea0a050d45ab480b2aa62d02ba0a1750c28e93c28a714df6629f02ccf5a1e4fbb33a6e42b82bf6685c05aeaad1756c SHA512 de3e55545d7d94668eb608c8c31440f550baaf7b664836d199f73f7a8c75bba4ff59b4c06a23459c7d522250d7c03d29fa7f727f7d1a2b1e5a0366e83a2d871a
33 DIST parted_3.2-20.debian.tar.xz 87496 BLAKE2B 4409826b35b42093f16f80b1ab2f41b4caf2264c9dcfe9572fa1ddf5f51eeffa2208fc187bd7a98290ee2df92604928eae84fd2fdee78d688ec19e81f8b9efac SHA512 83f14befdd7d048976572b3e2eebfaa42649458cbcfd659db704737dce991980ddb2bc65013c5b31b04a17fc17fb756da0dda76edbcba93708afca34c56e0d22
34
35 diff --git a/sys-block/parted/files/parted-2.4-no-gets.patch b/sys-block/parted/files/parted-2.4-no-gets.patch
36 deleted file mode 100644
37 index efa6e00b8d4..00000000000
38 --- a/sys-block/parted/files/parted-2.4-no-gets.patch
39 +++ /dev/null
40 @@ -1,10 +0,0 @@
41 ---- a/lib/stdio.in.h
42 -+++ b/lib/stdio.in.h
43 -@@ -735,7 +735,6 @@
44 - /* It is very rare that the developer ever has full control of stdin,
45 - so any use of gets warrants an unconditional warning. Assume it is
46 - always declared, since it is required by C89. */
47 --_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
48 - #endif
49 -
50 -
51
52 diff --git a/sys-block/parted/files/parted-2.4-readline.patch b/sys-block/parted/files/parted-2.4-readline.patch
53 deleted file mode 100644
54 index 5873ed1e5d4..00000000000
55 --- a/sys-block/parted/files/parted-2.4-readline.patch
56 +++ /dev/null
57 @@ -1,11 +0,0 @@
58 ---- a/parted/ui.c
59 -+++ b/parted/ui.c
60 -@@ -1440,7 +1440,7 @@
61 - #ifdef HAVE_LIBREADLINE
62 - if (!opt_script_mode) {
63 - rl_initialize ();
64 -- rl_attempted_completion_function = (CPPFunction*) complete_function;
65 -+ rl_attempted_completion_function = (rl_completion_func_t*) complete_function;
66 - readline_state.in_readline = 0;
67 - }
68 - #endif
69
70 diff --git a/sys-block/parted/files/parted-3.1-readline.patch b/sys-block/parted/files/parted-3.1-readline.patch
71 deleted file mode 100644
72 index 936ec00cbef..00000000000
73 --- a/sys-block/parted/files/parted-3.1-readline.patch
74 +++ /dev/null
75 @@ -1,11 +0,0 @@
76 ---- a/parted/ui.c
77 -+++ b/parted/ui.c
78 -@@ -1474,7 +1474,7 @@
79 - #ifdef HAVE_LIBREADLINE
80 - if (!opt_script_mode) {
81 - rl_initialize ();
82 -- rl_attempted_completion_function = (CPPFunction*) complete_function;
83 -+ rl_attempted_completion_function = (rl_completion_func_t*) complete_function;
84 - readline_state.in_readline = 0;
85 - }
86 - #endif
87
88 diff --git a/sys-block/parted/files/parted-3.1-zfs.patch b/sys-block/parted/files/parted-3.1-zfs.patch
89 deleted file mode 100644
90 index a87d6d34655..00000000000
91 --- a/sys-block/parted/files/parted-3.1-zfs.patch
92 +++ /dev/null
93 @@ -1,170 +0,0 @@
94 -commit 65f838008107a688751dd5a2753c9073e9353daf
95 -Author: root <root@desktop.(none)>
96 -Date: Fri Jun 1 16:26:34 2012 -0400
97 -
98 - Add ZFS Support
99 -
100 -diff --git a/libparted/fs/Makefile.am b/libparted/fs/Makefile.am
101 -index 8d48ea1..51b4151 100644
102 ---- a/libparted/fs/Makefile.am
103 -+++ b/libparted/fs/Makefile.am
104 -@@ -49,7 +49,8 @@ libfs_la_SOURCES = \
105 - xfs/platform_defs.h \
106 - xfs/xfs.c \
107 - xfs/xfs_sb.h \
108 -- xfs/xfs_types.h
109 -+ xfs/xfs_types.h \
110 -+ zfs/zfs.c
111 -
112 - lib_LTLIBRARIES = libparted-fs-resize.la
113 -
114 -diff --git a/libparted/fs/Makefile.in b/libparted/fs/Makefile.in
115 -index 4335eb1..e3a134b 100644
116 ---- a/libparted/fs/Makefile.in
117 -+++ b/libparted/fs/Makefile.in
118 -@@ -1112,7 +1112,8 @@ libfs_la_SOURCES = \
119 - xfs/platform_defs.h \
120 - xfs/xfs.c \
121 - xfs/xfs_sb.h \
122 -- xfs/xfs_types.h
123 -+ xfs/xfs_types.h \
124 -+ zfs/zfs.c
125 -
126 - lib_LTLIBRARIES = libparted-fs-resize.la
127 - EXTRA_DIST = hfs/DOC hfs/HISTORY hfs/TODO fsresize.sym
128 -diff --git a/libparted/fs/zfs/Makefile.am b/libparted/fs/zfs/Makefile.am
129 -new file mode 100644
130 -index 0000000..3273c6a
131 ---- /dev/null
132 -+++ b/libparted/fs/zfs/zfs.c
133 -@@ -0,0 +1,81 @@
134 -+/*
135 -+ libparted - a library for manipulating disk partitions
136 -+ Copyright (C) 2000, 2007, 2009-2010 Free Software Foundation, Inc.
137 -+
138 -+ This program is free software; you can redistribute it and/or modify
139 -+ it under the terms of the GNU General Public License as published by
140 -+ the Free Software Foundation; either version 3 of the License, or
141 -+ (at your option) any later version.
142 -+
143 -+ This program is distributed in the hope that it will be useful,
144 -+ but WITHOUT ANY WARRANTY; without even the implied warranty of
145 -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
146 -+ GNU General Public License for more details.
147 -+
148 -+ You should have received a copy of the GNU General Public License
149 -+ along with this program. If not, see <http://www.gnu.org/licenses/>.
150 -+*/
151 -+
152 -+#include <config.h>
153 -+
154 -+#include <parted/parted.h>
155 -+#include <parted/endian.h>
156 -+
157 -+#if ENABLE_NLS
158 -+# include <libintl.h>
159 -+# define _(String) dgettext (PACKAGE, String)
160 -+#else
161 -+# define _(String) (String)
162 -+#endif /* ENABLE_NLS */
163 -+
164 -+#include <unistd.h>
165 -+
166 -+#define ZFS_BLOCK_SIZES ((int[2]){512, 0})
167 -+
168 -+#define ZFS_SIGNATURE 0x00bab10c
169 -+
170 -+struct zfs_uberblock
171 -+{
172 -+ uint64_t signature;
173 -+ uint64_t version;
174 -+};
175 -+
176 -+static PedGeometry*
177 -+zfs_probe (PedGeometry* geom)
178 -+{
179 -+ uint8_t buf[512];
180 -+ struct zfs_uberblock *uber = (void *) buf;
181 -+
182 -+ if (!ped_geometry_read (geom, buf, 256, 1))
183 -+ return 0;
184 -+
185 -+ if ((le64toh (uber->signature) == ZFS_SIGNATURE
186 -+ || be64toh (uber->signature) == ZFS_SIGNATURE)
187 -+ && uber->version != 0)
188 -+ return ped_geometry_new (geom->dev, geom->start, geom->length);
189 -+ else
190 -+ return NULL;
191 -+}
192 -+
193 -+static PedFileSystemOps zfs_ops = {
194 -+ probe: zfs_probe,
195 -+};
196 -+
197 -+static PedFileSystemType zfs_type = {
198 -+ next: NULL,
199 -+ ops: &zfs_ops,
200 -+ name: "zfs",
201 -+ block_sizes: ZFS_BLOCK_SIZES
202 -+};
203 -+
204 -+void
205 -+ped_file_system_zfs_init ()
206 -+{
207 -+ ped_file_system_type_register (&zfs_type);
208 -+}
209 -+
210 -+void
211 -+ped_file_system_zfs_done ()
212 -+{
213 -+ ped_file_system_type_unregister (&zfs_type);
214 -+}
215 -diff --git a/libparted/libparted.c b/libparted/libparted.c
216 -index a6d86f0..6545989 100644
217 ---- a/libparted/libparted.c
218 -+++ b/libparted/libparted.c
219 -@@ -109,6 +109,7 @@ extern void ped_file_system_hfs_init (void);
220 - extern void ped_file_system_fat_init (void);
221 - extern void ped_file_system_ext2_init (void);
222 - extern void ped_file_system_nilfs2_init (void);
223 -+extern void ped_file_system_zfs_init (void);
224 -
225 - static void
226 - init_file_system_types ()
227 -@@ -124,6 +125,7 @@ init_file_system_types ()
228 - ped_file_system_fat_init ();
229 - ped_file_system_ext2_init ();
230 - ped_file_system_nilfs2_init ();
231 -+ ped_file_system_zfs_init ();
232 - }
233 -
234 - extern void ped_disk_aix_done ();
235 -@@ -186,6 +188,7 @@ extern void ped_file_system_reiserfs_done (void);
236 - extern void ped_file_system_ufs_done (void);
237 - extern void ped_file_system_xfs_done (void);
238 - extern void ped_file_system_amiga_done (void);
239 -+extern void ped_file_system_zfs_done (void);
240 -
241 - static void
242 - done_file_system_types ()
243 -@@ -201,6 +204,7 @@ done_file_system_types ()
244 - ped_file_system_ufs_done ();
245 - ped_file_system_xfs_done ();
246 - ped_file_system_amiga_done ();
247 -+ ped_file_system_zfs_done ();
248 - }
249 -
250 - static void _done() __attribute__ ((destructor));
251 -diff --git a/scripts/data/abi/baseline_symbols.txt b/scripts/data/abi/baseline_symbols.txt
252 -index 9162f1a..8bb87e6 100644
253 ---- a/scripts/data/abi/baseline_symbols.txt
254 -+++ b/scripts/data/abi/baseline_symbols.txt
255 -@@ -344,6 +344,8 @@ FUNC:ped_file_system_ufs_done
256 - FUNC:ped_file_system_ufs_init
257 - FUNC:ped_file_system_xfs_done
258 - FUNC:ped_file_system_xfs_init
259 -+FUNC:ped_file_system_zfs_done
260 -+FUNC:ped_file_system_zfs_init
261 - FUNC:ped_geometry_check
262 - FUNC:ped_geometry_destroy
263 - FUNC:ped_geometry_duplicate
264
265 diff --git a/sys-block/parted/parted-2.4-r1.ebuild b/sys-block/parted/parted-2.4-r1.ebuild
266 deleted file mode 100644
267 index 2e24db5fe76..00000000000
268 --- a/sys-block/parted/parted-2.4-r1.ebuild
269 +++ /dev/null
270 @@ -1,54 +0,0 @@
271 -# Copyright 1999-2017 Gentoo Foundation
272 -# Distributed under the terms of the GNU General Public License v2
273 -
274 -EAPI=6
275 -inherit eutils
276 -
277 -DESCRIPTION="Create, destroy, resize, check, copy partitions and file systems"
278 -HOMEPAGE="https://www.gnu.org/software/parted"
279 -SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
280 -
281 -LICENSE="GPL-3"
282 -SLOT="0"
283 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
284 -IUSE="+debug device-mapper nls readline selinux static-libs"
285 -RESTRICT="test"
286 -
287 -# specific version for gettext needed
288 -# to fix bug 85999
289 -RDEPEND="
290 - >=sys-fs/e2fsprogs-1.27
291 - >=sys-libs/ncurses-5.2:0=
292 - device-mapper? ( >=sys-fs/lvm2-2.02.45 )
293 - readline? ( >=sys-libs/readline-5.2:0= )
294 - selinux? ( sys-libs/libselinux )
295 -"
296 -DEPEND="
297 - ${RDEPEND}
298 - nls? ( >=sys-devel/gettext-0.12.1-r2 )
299 - virtual/pkgconfig
300 -"
301 -PATCHES=(
302 - "${FILESDIR}"/${P}-no-gets.patch
303 - "${FILESDIR}"/${P}-readline.patch
304 -)
305 -DOCS=( AUTHORS BUGS ChangeLog NEWS README THANKS TODO doc/{API,FAT,USER.jp} )
306 -
307 -src_configure() {
308 - econf \
309 - $(use_enable debug) \
310 - $(use_enable device-mapper) \
311 - $(use_enable nls) \
312 - $(use_enable selinux) \
313 - $(use_enable static-libs static) \
314 - $(use_with readline) \
315 - --disable-Werror \
316 - --disable-rpath \
317 - --disable-silent-rules
318 -}
319 -
320 -src_install() {
321 - default
322 -
323 - prune_libtool_files
324 -}
325
326 diff --git a/sys-block/parted/parted-2.4.ebuild b/sys-block/parted/parted-2.4.ebuild
327 deleted file mode 100644
328 index eb161766ad3..00000000000
329 --- a/sys-block/parted/parted-2.4.ebuild
330 +++ /dev/null
331 @@ -1,55 +0,0 @@
332 -# Copyright 1999-2015 Gentoo Foundation
333 -# Distributed under the terms of the GNU General Public License v2
334 -
335 -EAPI=5
336 -inherit eutils
337 -
338 -DESCRIPTION="Create, destroy, resize, check, copy partitions and file systems"
339 -HOMEPAGE="https://www.gnu.org/software/parted"
340 -SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
341 -
342 -LICENSE="GPL-3"
343 -SLOT="0"
344 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86"
345 -IUSE="+debug device-mapper nls readline selinux static-libs"
346 -RESTRICT="test"
347 -
348 -# specific version for gettext needed
349 -# to fix bug 85999
350 -RDEPEND="
351 - >=sys-fs/e2fsprogs-1.27
352 - >=sys-libs/ncurses-5.2:0=
353 - device-mapper? ( >=sys-fs/lvm2-2.02.45 )
354 - readline? ( >=sys-libs/readline-5.2:0= )
355 - selinux? ( sys-libs/libselinux )
356 -"
357 -DEPEND="
358 - ${RDEPEND}
359 - nls? ( >=sys-devel/gettext-0.12.1-r2 )
360 - virtual/pkgconfig
361 -"
362 -
363 -src_prepare() {
364 - epatch "${FILESDIR}"/${P}-no-gets.patch
365 - epatch "${FILESDIR}"/${P}-readline.patch
366 -}
367 -
368 -src_configure() {
369 - econf \
370 - $(use_enable debug) \
371 - $(use_enable device-mapper) \
372 - $(use_enable nls) \
373 - $(use_enable selinux) \
374 - $(use_enable static-libs static) \
375 - $(use_with readline) \
376 - --disable-Werror \
377 - --disable-rpath \
378 - --disable-silent-rules
379 -}
380 -
381 -DOCS=( AUTHORS BUGS ChangeLog NEWS README THANKS TODO doc/{API,FAT,USER.jp} )
382 -
383 -src_install() {
384 - default
385 - prune_libtool_files
386 -}
387
388 diff --git a/sys-block/parted/parted-3.1-r1.ebuild b/sys-block/parted/parted-3.1-r1.ebuild
389 deleted file mode 100644
390 index 011ec68857d..00000000000
391 --- a/sys-block/parted/parted-3.1-r1.ebuild
392 +++ /dev/null
393 @@ -1,81 +0,0 @@
394 -# Copyright 1999-2014 Gentoo Foundation
395 -# Distributed under the terms of the GNU General Public License v2
396 -
397 -EAPI="4"
398 -
399 -inherit autotools eutils
400 -
401 -DESCRIPTION="Create, destroy, resize, check, copy partitions and file systems"
402 -HOMEPAGE="https://www.gnu.org/software/parted"
403 -SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
404 -
405 -LICENSE="GPL-3"
406 -SLOT="0"
407 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86"
408 -IUSE="+debug device-mapper nls readline selinux static-libs test"
409 -
410 -# specific version for gettext needed
411 -# to fix bug 85999
412 -RDEPEND="
413 - >=sys-fs/e2fsprogs-1.27
414 - >=sys-libs/ncurses-5.7-r7
415 - device-mapper? ( >=sys-fs/lvm2-2.02.45 )
416 - readline? ( >=sys-libs/readline-5.2 )
417 - selinux? ( sys-libs/libselinux )
418 -"
419 -DEPEND="
420 - ${RDEPEND}
421 - nls? ( >=sys-devel/gettext-0.12.1-r2 )
422 - virtual/pkgconfig
423 - test? (
424 - >=dev-libs/check-0.9.3
425 - dev-perl/Digest-CRC
426 - )
427 -"
428 -
429 -src_prepare() {
430 - # Remove tests known to FAIL instead of SKIP without OS/userland support
431 - sed -i libparted/tests/Makefile.am \
432 - -e 's|t3000-symlink.sh||g' || die "sed failed"
433 - sed -i tests/Makefile.am \
434 - -e '/t4100-msdos-partition-limits.sh/d' \
435 - -e '/t4100-dvh-partition-limits.sh/d' \
436 - -e '/t6000-dm.sh/d' || die "sed failed"
437 - # there is no configure flag for controlling the dev-libs/check test
438 - sed -i configure.ac \
439 - -e "s:have_check=[a-z]*:have_check=$(usex test):g" || die
440 -
441 - epatch "${FILESDIR}"/${PN}-3.1-zfs.patch
442 - epatch "${FILESDIR}"/${PN}-3.1-readline.patch
443 -
444 - eautoreconf
445 -}
446 -
447 -src_configure() {
448 - econf \
449 - $(use_enable debug) \
450 - $(use_enable device-mapper) \
451 - $(use_enable nls) \
452 - $(use_enable selinux) \
453 - $(use_enable static-libs static) \
454 - $(use_with readline) \
455 - --disable-rpath \
456 - --disable-silent-rules
457 -}
458 -
459 -src_test() {
460 - if use debug; then
461 - # Do not die when tests fail - some requirements are not
462 - # properly checked and should not lead to the ebuild failing.
463 - emake check
464 - else
465 - ewarn "Skipping tests because USE=-debug is set."
466 - fi
467 -}
468 -
469 -src_install() {
470 - emake install DESTDIR="${D}"
471 - dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
472 - dodoc doc/{API,FAT,USER.jp}
473 - find "${ED}" -name '*.la' -exec rm -f {} +
474 -}
475
476 diff --git a/sys-block/parted/parted-3.1-r2.ebuild b/sys-block/parted/parted-3.1-r2.ebuild
477 deleted file mode 100644
478 index 92ce2da8bcb..00000000000
479 --- a/sys-block/parted/parted-3.1-r2.ebuild
480 +++ /dev/null
481 @@ -1,85 +0,0 @@
482 -# Copyright 1999-2017 Gentoo Foundation
483 -# Distributed under the terms of the GNU General Public License v2
484 -
485 -EAPI=6
486 -inherit autotools eutils
487 -
488 -DESCRIPTION="Create, destroy, resize, check, copy partitions and file systems"
489 -HOMEPAGE="https://www.gnu.org/software/parted"
490 -SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
491 -
492 -LICENSE="GPL-3"
493 -SLOT="0"
494 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
495 -IUSE="+debug device-mapper nls readline selinux static-libs test"
496 -
497 -# specific version for gettext needed
498 -# to fix bug 85999
499 -RDEPEND="
500 - >=sys-fs/e2fsprogs-1.27
501 - >=sys-libs/ncurses-5.7-r7
502 - device-mapper? ( >=sys-fs/lvm2-2.02.45 )
503 - readline? ( >=sys-libs/readline-5.2 )
504 - selinux? ( sys-libs/libselinux )
505 -"
506 -DEPEND="
507 - ${RDEPEND}
508 - nls? ( >=sys-devel/gettext-0.12.1-r2 )
509 - virtual/pkgconfig
510 - test? (
511 - >=dev-libs/check-0.9.3
512 - dev-perl/Digest-CRC
513 - )
514 -"
515 -PATCHES=(
516 - "${FILESDIR}"/${PN}-3.1-zfs.patch
517 - "${FILESDIR}"/${PN}-3.1-readline.patch
518 -)
519 -DOCS=(
520 - AUTHORS BUGS ChangeLog NEWS README THANKS TODO doc/{API,FAT,USER.jp}
521 -)
522 -
523 -src_prepare() {
524 - default
525 -
526 - # Remove tests known to FAIL instead of SKIP without OS/userland support
527 - sed -i libparted/tests/Makefile.am \
528 - -e 's|t3000-symlink.sh||g' || die "sed failed"
529 - sed -i tests/Makefile.am \
530 - -e '/t4100-msdos-partition-limits.sh/d' \
531 - -e '/t4100-dvh-partition-limits.sh/d' \
532 - -e '/t6000-dm.sh/d' || die "sed failed"
533 - # there is no configure flag for controlling the dev-libs/check test
534 - sed -i configure.ac \
535 - -e "s:have_check=[a-z]*:have_check=$(usex test):g" || die
536 -
537 - eautoreconf
538 -}
539 -
540 -src_configure() {
541 - econf \
542 - $(use_enable debug) \
543 - $(use_enable device-mapper) \
544 - $(use_enable nls) \
545 - $(use_enable selinux) \
546 - $(use_enable static-libs static) \
547 - $(use_with readline) \
548 - --disable-rpath \
549 - --disable-silent-rules
550 -}
551 -
552 -src_test() {
553 - if use debug; then
554 - # Do not die when tests fail - some requirements are not
555 - # properly checked and should not lead to the ebuild failing.
556 - emake check
557 - else
558 - ewarn "Skipping tests because USE=-debug is set."
559 - fi
560 -}
561 -
562 -src_install() {
563 - default
564 -
565 - prune_libtool_files
566 -}