public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-containers/incus/
Date: Thu,  4 Jan 2024 07:03:01 +0000 (UTC)	[thread overview]
Message-ID: <1704351778.f8e8469a8b05e225f567701648223b24aae7c348.juippis@gentoo> (raw)

commit:     f8e8469a8b05e225f567701648223b24aae7c348
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  4 06:59:55 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Jan  4 07:02:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8e8469a

app-containers/incus: add 'fuidshift' use flag that conflicts with lxd

 - apparently some weird systems are symlinking /usr/sbin into /usr/bin !

Bug: https://bugs.gentoo.org/920527
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../incus/{incus-0.4.ebuild => incus-0.4-r1.ebuild}   | 19 ++++++++++++++-----
 app-containers/incus/metadata.xml                     |  3 +++
 2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/app-containers/incus/incus-0.4.ebuild b/app-containers/incus/incus-0.4-r1.ebuild
similarity index 92%
rename from app-containers/incus/incus-0.4.ebuild
rename to app-containers/incus/incus-0.4-r1.ebuild
index 818070390ac2..422c94035e53 100644
--- a/app-containers/incus/incus-0.4.ebuild
+++ b/app-containers/incus/incus-0.4-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -13,7 +13,7 @@ SRC_URI="https://linuxcontainers.org/downloads/incus/${P}.tar.xz
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="apparmor nls"
+IUSE="apparmor fuidshift nls"
 
 DEPEND="acct-group/incus
 	acct-group/incus-admin
@@ -28,6 +28,7 @@ DEPEND="acct-group/incus
 	sys-libs/libcap
 	virtual/udev"
 RDEPEND="${DEPEND}
+	fuidshift? ( !app-containers/lxd )
 	net-firewall/ebtables
 	net-firewall/iptables
 	sys-apps/iproute2
@@ -123,11 +124,14 @@ src_compile() {
 	export GOPATH="${S}/_dist"
 	export CGO_LDFLAGS_ALLOW="-Wl,-z,now"
 
-	# fuidshift should be packaged for incus-lts, making it conflict with lxd.
-	for k in fuidshift incus-benchmark incus-user incus lxc-to-incus ; do
+	for k in incus-benchmark incus-user incus lxc-to-incus ; do
 		ego install -v -x "${S}/cmd/${k}"
 	done
 
+	if use fuidshift ; then
+		ego install -v -x "${S}/cmd/fuidshift"
+	fi
+
 	ego install -v -x -tags libsqlite3 "${S}"/cmd/incusd
 
 	# Needs to be built statically
@@ -152,7 +156,7 @@ src_install() {
 	newsbin "${FILESDIR}"/incus-startup-0.4.sh incus-startup
 
 	# Admin tools
-	for l in incusd incus-user fuidshift ; do
+	for l in incusd incus-user ; do
 		dosbin ${bindir}/${l}
 	done
 	dosbin cmd/lxd-to-incus/lxd-to-incus
@@ -162,6 +166,11 @@ src_install() {
 		dobin ${bindir}/${m}
 	done
 
+	# fuidshift, should be moved under admin tools at some point
+	if use fuidshift ; then
+		dosbin ${bindir}/fuidshift
+	fi
+
 	newconfd "${FILESDIR}"/incus-0.4.confd incus
 	newinitd "${FILESDIR}"/incus-0.4.initd incus
 	newinitd "${FILESDIR}"/incus-user-0.4.initd incus-user

diff --git a/app-containers/incus/metadata.xml b/app-containers/incus/metadata.xml
index a7cc7908462b..adf7210ec6b7 100644
--- a/app-containers/incus/metadata.xml
+++ b/app-containers/incus/metadata.xml
@@ -9,6 +9,9 @@
     <email>virtualization@gentoo.org</email>
     <name>Gentoo Virtualization Project</name>
   </maintainer>
+  <use>
+    <flag name="fuidshift">Install the fuidshift binary - currently conflicts with app-containers/lxd</flag>
+  </use>
   <longdescription>
     Incus is a modern, secure and powerful system container and virtual machine manager.
     Incus is a community fork from Canonical's LXD.


             reply	other threads:[~2024-01-04  7:03 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-04  7:03 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-03  7:37 [gentoo-commits] repo/gentoo:master commit in: app-containers/incus/ Joonas Niilola
2025-03-03  7:37 Joonas Niilola
2025-02-28  8:41 Joonas Niilola
2025-02-21 14:31 Joonas Niilola
2025-02-08  8:00 Joonas Niilola
2025-01-26  7:33 Joonas Niilola
2024-12-21 16:19 Joonas Niilola
2024-12-15  7:23 Joonas Niilola
2024-12-15  7:23 Joonas Niilola
2024-12-14  7:13 Joonas Niilola
2024-11-17  7:10 Joonas Niilola
2024-10-27 12:43 Maciej Barć
2024-10-25 11:09 Joonas Niilola
2024-10-20  6:27 Joonas Niilola
2024-10-10 16:33 James Le Cuirot
2024-10-04 12:57 Joonas Niilola
2024-09-28 12:46 Joonas Niilola
2024-09-18  7:29 Joonas Niilola
2024-09-10 16:14 Joonas Niilola
2024-09-10 16:14 Joonas Niilola
2024-09-09 15:15 Joonas Niilola
2024-08-27  7:00 Joonas Niilola
2024-08-10  6:08 Joonas Niilola
2024-08-03  7:18 Joonas Niilola
2024-08-01  4:53 Joonas Niilola
2024-07-12  8:58 Joonas Niilola
2024-07-12  8:58 Joonas Niilola
2024-06-29  6:22 Joonas Niilola
2024-06-08  6:39 Joonas Niilola
2024-06-01  6:38 Joonas Niilola
2024-05-08  7:13 Joonas Niilola
2024-05-05  6:28 Joonas Niilola
2024-04-23 10:43 Joonas Niilola
2024-04-22 17:02 Joonas Niilola
2024-04-22 17:02 Joonas Niilola
2024-04-22 17:02 Joonas Niilola
2024-04-05  7:57 Joonas Niilola
2024-03-26  8:28 Joonas Niilola
2024-03-26  6:38 Joonas Niilola
2024-02-23  7:50 Joonas Niilola
2024-02-13  6:28 Joonas Niilola
2024-01-29  7:43 Joonas Niilola
2024-01-07  9:05 Sam James
2024-01-06  9:32 Joonas Niilola
2023-12-27 17:21 Joonas Niilola
2023-11-27  7:18 Joonas Niilola
2023-11-01 13:17 Joonas Niilola
2023-10-29  9:05 Joonas Niilola
2023-10-19 16:06 Joonas Niilola
2023-10-14 19:28 Joonas Niilola
2023-10-14 11:12 Joonas Niilola
2023-10-13 17:22 Joonas Niilola

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=1704351778.f8e8469a8b05e225f567701648223b24aae7c348.juippis@gentoo \
    --to=juippis@gentoo.org \
    --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