1 |
commit: 3b28b31a8fbb6a2ea8318b4d8f84492b46f63e97 |
2 |
Author: Kai Krakow <kai <AT> kaishome <DOT> de> |
3 |
AuthorDate: Sat Sep 29 20:34:44 2018 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 1 08:01:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b28b31a |
7 |
|
8 |
sys-fs/bees: Bump version to v0.6 |
9 |
|
10 |
A temporary quickfix is applied to let the build system write the |
11 |
correct bees version without a .git directory. This will probably go |
12 |
away in v0.7. |
13 |
|
14 |
This also fixes a typo and wrong info in metadata.xml. |
15 |
|
16 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
17 |
Signed-off-by: Kai Krakow <kai <AT> kaishome.de> |
18 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
19 |
|
20 |
sys-fs/bees/Manifest | 1 + |
21 |
sys-fs/bees/bees-0.6.ebuild | 69 +++++++++++++++++++++++++++++++++++++++++++++ |
22 |
sys-fs/bees/metadata.xml | 2 +- |
23 |
3 files changed, 71 insertions(+), 1 deletion(-) |
24 |
|
25 |
diff --git a/sys-fs/bees/Manifest b/sys-fs/bees/Manifest |
26 |
new file mode 100644 |
27 |
index 00000000000..68efaffe866 |
28 |
--- /dev/null |
29 |
+++ b/sys-fs/bees/Manifest |
30 |
@@ -0,0 +1 @@ |
31 |
+DIST bees-0.6.tar.gz 124049 BLAKE2B 7a2d77366758325cebbc51767781a3eff4fa52180b53ebf5eb982433bfc1c80acd4f3befa5968c888be443815e6231625e9ecc2763c35e33e5ed55c13bd702bc SHA512 bb288da8d2e0fad100dc40e3f9060055220e0ec948bc571a1cb06a7d78d0d0e6db30164e7dbde040c264c496cb59d50bb0694dd9432a8229e04f2cdc33bab31d |
32 |
|
33 |
diff --git a/sys-fs/bees/bees-0.6.ebuild b/sys-fs/bees/bees-0.6.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..dfda78fae30 |
36 |
--- /dev/null |
37 |
+++ b/sys-fs/bees/bees-0.6.ebuild |
38 |
@@ -0,0 +1,69 @@ |
39 |
+# Copyright 1999-2018 Gentoo Foundation |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=7 |
43 |
+ |
44 |
+inherit linux-info |
45 |
+ |
46 |
+DESCRIPTION="Best-Effort Extent-Same, a btrfs dedup agent" |
47 |
+HOMEPAGE="https://github.com/Zygo/bees" |
48 |
+ |
49 |
+if [[ ${PV} == "9999" ]] ; then |
50 |
+ EGIT_REPO_URI="https://github.com/Zygo/bees.git" |
51 |
+ inherit git-r3 |
52 |
+else |
53 |
+ SRC_URI="https://github.com/Zygo/bees/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
54 |
+ KEYWORDS="~amd64" |
55 |
+fi |
56 |
+ |
57 |
+LICENSE="GPL-3" |
58 |
+SLOT="0" |
59 |
+IUSE="tools" |
60 |
+ |
61 |
+DEPEND=" |
62 |
+ >=sys-apps/util-linux-2.30.2 |
63 |
+ >=sys-fs/btrfs-progs-4.1 |
64 |
+" |
65 |
+RDEPEND="${DEPEND}" |
66 |
+ |
67 |
+CONFIG_CHECK="~BTRFS_FS" |
68 |
+ERROR_BTRFS_FS="CONFIG_BTRFS_FS: bees does currently only work with btrfs" |
69 |
+ |
70 |
+pkg_pretend() { |
71 |
+ if [[ ${MERGE_TYPE} != buildonly ]]; then |
72 |
+ if kernel_is -lt 4 4 3; then |
73 |
+ ewarn "Kernel versions below 4.4.3 lack critical features needed for bees to" |
74 |
+ ewarn "properly operate, so it won't work. It's recommended to run at least" |
75 |
+ ewarn "kernel version 4.11 for best performance and reliability." |
76 |
+ ewarn |
77 |
+ elif kernel_is -lt 4 11; then |
78 |
+ ewarn "With kernel versions below 4.11, bees may severely degrade system performance" |
79 |
+ ewarn "and responsiveness. Especially, the kernel may deadlock while bees is" |
80 |
+ ewarn "running, it's recommended to run at least kernel 4.11." |
81 |
+ ewarn |
82 |
+ elif kernel_is -lt 4 14 29; then |
83 |
+ ewarn "With kernel versions below 4.14.29, bees may generate a lot of bogus WARN_ON()" |
84 |
+ ewarn "messages in the kernel log. These messages can be ignored and this is fixed" |
85 |
+ ewarn "with more recent kernels:" |
86 |
+ ewarn "# WARNING: CPU: 3 PID: 18172 at fs/btrfs/backref.c:1391 find_parent_nodes+0xc41/0x14e0" |
87 |
+ ewarn |
88 |
+ fi |
89 |
+ elog "Bees recommends to run the latest current kernel for performance and" |
90 |
+ elog "reliability reasons, see README.md." |
91 |
+ fi |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ cat >localconf <<-EOF || die |
96 |
+ LIBEXEC_PREFIX=/usr/libexec |
97 |
+ PREFIX=/usr |
98 |
+ LIBDIR=$(get_libdir) |
99 |
+ DEFAULT_MAKE_TARGET=all |
100 |
+ EOF |
101 |
+ if use tools; then |
102 |
+ echo OPTIONAL_INSTALL_TARGETS=install_tools >>localconf || die |
103 |
+ fi |
104 |
+ |
105 |
+ # quickfix, will be removed when fixed upstream |
106 |
+ sed -i "s/UNKNOWN/v${PV}/" src/Makefile || die |
107 |
+} |
108 |
|
109 |
diff --git a/sys-fs/bees/metadata.xml b/sys-fs/bees/metadata.xml |
110 |
index ba18bd51ea0..1231725fe21 100644 |
111 |
--- a/sys-fs/bees/metadata.xml |
112 |
+++ b/sys-fs/bees/metadata.xml |
113 |
@@ -10,7 +10,7 @@ |
114 |
<name>Proxy Maintainers</name> |
115 |
</maintainer> |
116 |
<use> |
117 |
- <flag name="tools">Build extra tools useful for debugging (fiemap, feiwalk, beestop)</flag> |
118 |
+ <flag name="tools">Build extra tools useful for debugging (fiemap, fiewalk)</flag> |
119 |
</use> |
120 |
<upstream> |
121 |
<bugs-to>https://github.com/Zygo/bees/issues</bugs-to> |