1 |
commit: a9c6dc1ae3be00280577ba3a8f402c6305294a8a |
2 |
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 30 08:40:34 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 30 13:30:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9c6dc1a |
7 |
|
8 |
sys-cluster/glusterfs: sync live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.102, Repoman-2.3.23 |
11 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/16502 |
13 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
14 |
|
15 |
sys-cluster/glusterfs/glusterfs-9999.ebuild | 64 +++++++++++------------------ |
16 |
sys-cluster/glusterfs/metadata.xml | 6 --- |
17 |
2 files changed, 24 insertions(+), 46 deletions(-) |
18 |
|
19 |
diff --git a/sys-cluster/glusterfs/glusterfs-9999.ebuild b/sys-cluster/glusterfs/glusterfs-9999.ebuild |
20 |
index 544b9e693be..718ab4740bc 100644 |
21 |
--- a/sys-cluster/glusterfs/glusterfs-9999.ebuild |
22 |
+++ b/sys-cluster/glusterfs/glusterfs-9999.ebuild |
23 |
@@ -3,15 +3,15 @@ |
24 |
|
25 |
EAPI=7 |
26 |
|
27 |
-PYTHON_COMPAT=( python2_7 ) |
28 |
+PYTHON_COMPAT=( python3_{6..9} ) |
29 |
|
30 |
-inherit autotools elisp-common python-single-r1 systemd user |
31 |
+inherit autotools elisp-common python-single-r1 systemd |
32 |
|
33 |
if [[ ${PV#9999} != ${PV} ]]; then |
34 |
inherit git-r3 |
35 |
EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" |
36 |
else |
37 |
- SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut '1-2')/${PV}/${P}.tar.gz" |
38 |
+ SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz" |
39 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
40 |
fi |
41 |
|
42 |
@@ -20,40 +20,39 @@ HOMEPAGE="https://www.gluster.org/" |
43 |
|
44 |
LICENSE="|| ( GPL-2 LGPL-3+ )" |
45 |
SLOT="0" |
46 |
-IUSE="bd-xlator crypt-xlator debug emacs +fuse +georeplication glupy infiniband ipv6 libressl +libtirpc qemu-block rsyslog static-libs +syslog systemtap test +tiering vim-syntax +xml" |
47 |
+IUSE="debug emacs +fuse +georeplication infiniband ipv6 libressl +libtirpc rsyslog static-libs +syslog test vim-syntax +xml" |
48 |
|
49 |
REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) |
50 |
- glupy? ( ${PYTHON_REQUIRED_USE} ) |
51 |
ipv6? ( libtirpc )" |
52 |
|
53 |
# the tests must be run as root |
54 |
RESTRICT="test" |
55 |
|
56 |
# sys-apps/util-linux is required for libuuid |
57 |
-RDEPEND="bd-xlator? ( sys-fs/lvm2 ) |
58 |
- !elibc_glibc? ( sys-libs/argp-standalone ) |
59 |
+RDEPEND=" |
60 |
+ acct-group/gluster |
61 |
+ acct-user/gluster |
62 |
+ dev-libs/libaio |
63 |
+ dev-libs/userspace-rcu:= |
64 |
+ net-libs/rpcsvc-proto |
65 |
+ sys-apps/util-linux |
66 |
+ sys-libs/readline:= |
67 |
emacs? ( >=app-editors/emacs-23.1:* ) |
68 |
fuse? ( >=sys-fs/fuse-2.7.0:0 ) |
69 |
georeplication? ( ${PYTHON_DEPS} ) |
70 |
infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) |
71 |
+ xml? ( dev-libs/libxml2 ) |
72 |
+ !elibc_glibc? ( sys-libs/argp-standalone ) |
73 |
libtirpc? ( net-libs/libtirpc:= ) |
74 |
!libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) |
75 |
- qemu-block? ( dev-libs/glib:2 ) |
76 |
- systemtap? ( dev-util/systemtap ) |
77 |
- tiering? ( dev-db/sqlite:3 ) |
78 |
- xml? ( dev-libs/libxml2 ) |
79 |
- sys-libs/readline:= |
80 |
- dev-libs/libaio |
81 |
!libressl? ( dev-libs/openssl:=[-bindist] ) |
82 |
libressl? ( dev-libs/libressl:= ) |
83 |
- dev-libs/userspace-rcu:= |
84 |
- net-libs/rpcsvc-proto |
85 |
- sys-apps/util-linux" |
86 |
-DEPEND="${RDEPEND} |
87 |
- virtual/acl |
88 |
- virtual/pkgconfig |
89 |
+" |
90 |
+DEPEND=" |
91 |
+ ${RDEPEND} |
92 |
sys-devel/bison |
93 |
sys-devel/flex |
94 |
+ virtual/acl |
95 |
test? ( >=dev-util/cmocka-1.0.1 |
96 |
app-benchmarks/dbench |
97 |
dev-vcs/git |
98 |
@@ -61,15 +60,14 @@ DEPEND="${RDEPEND} |
99 |
virtual/perl-Test-Harness |
100 |
dev-libs/yajl |
101 |
sys-fs/xfsprogs |
102 |
- sys-apps/attr )" |
103 |
+ sys-apps/attr ) |
104 |
+" |
105 |
+BDEPEND=" |
106 |
+ virtual/pkgconfig |
107 |
+" |
108 |
|
109 |
SITEFILE="50${PN}-mode-gentoo.el" |
110 |
|
111 |
-PATCHES=( |
112 |
- "${FILESDIR}/${PN}-3.12.2-poisoned-sysmacros.patch" |
113 |
- "${FILESDIR}/${PN}-4.1.0-silent_rules.patch" |
114 |
-) |
115 |
- |
116 |
DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
117 |
|
118 |
# Maintainer notes: |
119 |
@@ -78,13 +76,8 @@ DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) |
120 |
# glibc or if argp-standalone is installed. |
121 |
|
122 |
pkg_setup() { |
123 |
- python_setup "python2*" |
124 |
+ python_setup "python3*" |
125 |
python-single-r1_pkg_setup |
126 |
- |
127 |
- # Needed for statedumps |
128 |
- # https://github.com/gluster/glusterfs/commit/0e50c4b3ea734456c14e2d7a578463999bd332c3 |
129 |
- enewgroup gluster |
130 |
- enewuser gluster -1 -1 "${EPREFIX}"/var/run/gluster gluster |
131 |
} |
132 |
|
133 |
src_prepare() { |
134 |
@@ -104,18 +97,12 @@ src_configure() { |
135 |
econf \ |
136 |
--disable-fusermount \ |
137 |
$(use_enable debug) \ |
138 |
- $(use_enable bd-xlator) \ |
139 |
- $(use_enable crypt-xlator) \ |
140 |
$(use_enable fuse fuse-client) \ |
141 |
$(use_enable georeplication) \ |
142 |
- $(use_enable glupy) \ |
143 |
$(use_enable infiniband ibverbs) \ |
144 |
- $(use_enable qemu-block) \ |
145 |
$(use_enable static-libs static) \ |
146 |
$(use_enable syslog) \ |
147 |
- $(use_enable systemtap) \ |
148 |
$(use_enable test cmocka) \ |
149 |
- $(use_enable tiering) \ |
150 |
$(use_enable xml xml-output) \ |
151 |
$(use libtirpc || echo --without-libtirpc) \ |
152 |
$(use ipv6 && echo --with-ipv6-default) \ |
153 |
@@ -184,9 +171,6 @@ src_install() { |
154 |
if ! use static-libs; then |
155 |
find "${D}" -type f -name '*.la' -delete || die |
156 |
fi |
157 |
- |
158 |
- # fix all shebang for python2 #560750 |
159 |
- python_fix_shebang "${ED}" |
160 |
} |
161 |
|
162 |
src_test() { |
163 |
|
164 |
diff --git a/sys-cluster/glusterfs/metadata.xml b/sys-cluster/glusterfs/metadata.xml |
165 |
index ce2361e3e3e..a521dcb91e6 100644 |
166 |
--- a/sys-cluster/glusterfs/metadata.xml |
167 |
+++ b/sys-cluster/glusterfs/metadata.xml |
168 |
@@ -9,18 +9,12 @@ |
169 |
GlusterFS is a cluster file-system capable of scaling to several peta-bytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP interconnect into one large parallel network file system. GlusterFS is based on a stackable user space design without compromising performance. |
170 |
</longdescription> |
171 |
<use> |
172 |
- <flag name="bd-xlator">Enable the blockdevice translator (requires <pkg>sys-fs/lvm2</pkg>)</flag> |
173 |
- <flag name="crypt-xlator">Enable the encryption translator</flag> |
174 |
<flag name="fuse">Add FUSE mount helper</flag> |
175 |
- <flag name="glupy">Enable support for translators written in Python</flag> |
176 |
<flag name="georeplication">Enable support for georeplication (requires <pkg>dev-lang/python</pkg>)</flag> |
177 |
<flag name="infiniband">Add support for Infiniband ibverbs transport. |
178 |
Libraries can be found in science overlay</flag> |
179 |
<flag name="ipv6">Use IPv6 by default, requires libtirpc</flag> |
180 |
<flag name="libtirpc">Build against <pkg>net-libs/libtirpc</pkg> for RPC support</flag> |
181 |
<flag name="rsyslog">Install configuration snippet for <pkg>app-admin/rsyslog</pkg></flag> |
182 |
- <flag name="qemu-block">Transparently create files as QCow2/QED images in the backend, including the possibility to snapshot.</flag> |
183 |
- <flag name="systemtap">Enable support for <pkg>dev-util/systemtap</pkg></flag> |
184 |
- <flag name="tiering">Enable support for data classification/tiering (requires <pkg>dev-db/sqlite</pkg> SLOT 3)</flag> |
185 |
</use> |
186 |
</pkgmetadata> |