public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/cinder/
Date: Tue, 19 Apr 2022 18:31:30 +0000 (UTC)	[thread overview]
Message-ID: <1650393085.d3dae0aa2a6a890c42778efa1b32754ab1979598.Alessandro-Barbieri@gentoo> (raw)

commit:     d3dae0aa2a6a890c42778efa1b32754ab1979598
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Apr 18 02:51:09 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Apr 19 18:31:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d3dae0aa

sys-cluster/cinder: remove optional dependencies

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/cinder/cinder-20.0.0.ebuild | 45 +++++----------------------------
 sys-cluster/cinder/metadata.xml         | 11 --------
 2 files changed, 7 insertions(+), 49 deletions(-)

diff --git a/sys-cluster/cinder/cinder-20.0.0.ebuild b/sys-cluster/cinder/cinder-20.0.0.ebuild
index 8a4bdcb48..049920fee 100644
--- a/sys-cluster/cinder/cinder-20.0.0.ebuild
+++ b/sys-cluster/cinder/cinder-20.0.0.ebuild
@@ -20,7 +20,7 @@ KEYWORDS="~amd64"
 
 LICENSE="Apache-2.0 GPL-2"
 SLOT="0"
-IUSE="+api +scheduler +volume infiniband iscsi lvm mysql +memcached postgres rdma sqlite +tcp test +tgt"
+IUSE="test"
 
 # qemu is needed for image conversion
 RDEPEND="
@@ -86,23 +86,7 @@ RDEPEND="
 	>=dev-python/zstd-1.4.5.1[${PYTHON_USEDEP}]
 	>=dev-python/boto3-1.16.51[${PYTHON_USEDEP}]
 
-	iscsi? (
-		tgt? ( sys-block/tgt )
-		sys-block/open-iscsi
-	)
-	lvm? ( sys-fs/lvm2 )
-	memcached? ( net-misc/memcached )
-	mysql? (
-		>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
-		>=dev-python/sqlalchemy-1.4.23[${PYTHON_USEDEP}]
-	)
-	sqlite? (
-		>=dev-python/sqlalchemy-1.4.23[sqlite,${PYTHON_USEDEP}]
-	)
-	postgres? (
-		>=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
-		>=dev-python/sqlalchemy-1.4.23[${PYTHON_USEDEP}]
-	)
+	>=dev-python/sqlalchemy-1.4.23[${PYTHON_USEDEP}]
 
 	acct-user/cinder
 	acct-group/cinder
@@ -119,29 +103,16 @@ BDEPEND="
 		>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
 		>=dev-python/oslotest-4.5.0[${PYTHON_USEDEP}]
 		>=dev-python/testtools-2.4.0[${PYTHON_USEDEP}]
+		>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
+		>=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
 	)
 "
 
 RESTRICT="!test? ( test )"
-REQUIRED_USE="
-	|| ( mysql postgres sqlite )
-	iscsi? ( tgt )
-	infiniband? ( rdma )
-	test? ( mysql postgres )
-"
 
 pkg_pretend() {
 	linux-info_pkg_setup
-	CONFIG_CHECK_MODULES=""
-	if use tcp; then
-		CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP "
-	fi
-	if use rdma; then
-		CONFIG_CHECK_MODULES+="INFINIBAND_ISER "
-	fi
-	if use infiniband; then
-		CONFIG_CHECK_MODULES+="INFINIBAND_IPOIB INFINIBAND_USER_MAD INFINIBAND_USER_ACCESS"
-	fi
+	CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP "
 	if linux_config_exists; then
 		for module in ${CONFIG_CHECK_MODULES}; do
 			linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled"
@@ -201,8 +172,6 @@ python_install_all() {
 
 pkg_postinst() {
 	tmpfiles_process cinder.conf
-	if use iscsi ; then
-		elog "Cinder needs tgtd to be installed and running to work with iscsi"
-		elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf"
-	fi
+	elog "Cinder needs tgtd to be installed and running to work with iscsi"
+	elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf"
 }

diff --git a/sys-cluster/cinder/metadata.xml b/sys-cluster/cinder/metadata.xml
index 51c36e900..60948bb4b 100644
--- a/sys-cluster/cinder/metadata.xml
+++ b/sys-cluster/cinder/metadata.xml
@@ -6,17 +6,6 @@
     <email>lssndrbarbieri@gmail.com</email>
     <name>Alessandro Barbieri</name>
   </maintainer>
-  <use>
-    <flag name="api">Installs the initscripts for the cinder api service</flag>
-    <flag name="iscsi">Allow using an iSCSI remote storage server as pool for disk image storage</flag>
-    <flag name="lvm">Allow using the Logical Volume Manager (<pkg>sys-fs/lvm2</pkg>) as pool for disk image storage</flag>
-    <flag name="memcached">Installs the memcached server</flag>
-    <flag name="rdma">Enable rdma storage backend support</flag>
-    <flag name="scheduler">Installs the initscripts for the cinder scheduler service</flag>
-    <flag name="tcp">Enables tcp support for the iscsi backend</flag>
-    <flag name="tgt">Enable tgt storage backend support</flag>
-    <flag name="volume">Installs the initscripts for the cinder volume service</flag>
-  </use>
   <upstream>
     <remote-id type="launchpad">cinder</remote-id>
   </upstream>


             reply	other threads:[~2022-04-19 18:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-19 18:31 Alessandro Barbieri [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-05-05 23:37 [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/cinder/ Alessandro Barbieri
2022-05-03 20:21 Alessandro Barbieri
2022-04-24 16:01 Alessandro Barbieri
2022-04-19 18:31 Alessandro Barbieri
2022-04-04 19:32 Alessandro Barbieri
2021-09-26 19:34 Alessandro Barbieri
2021-06-24 23:26 Alessandro Barbieri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1650393085.d3dae0aa2a6a890c42778efa1b32754ab1979598.Alessandro-Barbieri@gentoo \
    --to=lssndrbarbieri@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox