Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] incus: enable installing client without the daemon
@ 2024-09-27 23:03 duskmoss
  2024-09-27 23:22 ` duskmoss
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: duskmoss @ 2024-09-27 23:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1179 bytes --]

There is a new pull request by duskmoss against master on the void-packages repository

https://github.com/duskmoss/void-packages incus-updates
https://github.com/void-linux/void-packages/pull/52384

incus: enable installing client without the daemon
incus-client is intended to be installed without the daemon to use to control remove incus servers. incus the daemon can't me used without the client, at least to authorize another client's to access the API.

I moved incus-user to the daemon package because it's a daemon and not part of the client.

readme: I also removed the information about subuid and subgid because void sets these up out of the box.

readme: I changed "and" to "or" because the two groups grant you access to the daemons in different privelege levels.


#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture:
x86_64-glibc
- I built this PR locally for these architectures:
x86_64-musl
(cross) aarch64-musl 
(cross) armv7l
(cross) armv6l-musl



A patch file from https://github.com/void-linux/void-packages/pull/52384.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-incus-updates-52384.patch --]
[-- Type: text/x-diff, Size: 3124 bytes --]

From 081a942ceadb5775bc042240d192dcb8fdded176 Mon Sep 17 00:00:00 2001
From: Moss Hope <duskmoss@proton.me>
Date: Fri, 27 Sep 2024 15:56:48 -0700
Subject: [PATCH] incus: enable installing client without the daemon

    incus-client is intended to be installed without the daemon to use to
    control remove incus servers. incus the daemon can't me used without
    the client, at least to authorize another client's to access the API.

    I moved incus-user to the daemon package because it's a daemon and
    not part of the client.

    readme: I also removed the information about subuid and subgid because void sets
    these up out of the box.

    readme: I changed "and" to "or" because the two groups grant you access to the
    daemons in different privelege levels.
---
 srcpkgs/incus/files/README.voidlinux | 8 +-------
 srcpkgs/incus/template               | 7 +++----
 2 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/incus/files/README.voidlinux b/srcpkgs/incus/files/README.voidlinux
index 2d1757447dda8e..a995919a09d8cf 100644
--- a/srcpkgs/incus/files/README.voidlinux
+++ b/srcpkgs/incus/files/README.voidlinux
@@ -1,12 +1,6 @@
 Users wishing to interact with incus system daemons should belong to
-the `_incus-admin` and `_incus` groups. The root user should also be
-assigned a range of subordinate user and group IDs to be mapped in
-containers. For example, the command
+either the `_incus-admin` or `_incus` groups.
 
-	usermod --add-subuids 1000000-1065535 \
-		--add-subgids 1000000-1065535 root
-
-will assign a range of 65,536 IDs for users and groups.
 Some container configurations may require that the `CGROUP_MODE`
 variable in `/etc/rc.conf` be set to `unified`.
 
diff --git a/srcpkgs/incus/template b/srcpkgs/incus/template
index a7c9857c58e33b..85adda1479a467 100644
--- a/srcpkgs/incus/template
+++ b/srcpkgs/incus/template
@@ -1,7 +1,7 @@
 # Template file for 'incus'
 pkgname=incus
 version=6.5.0
-revision=1
+revision=2
 build_style=go
 build_helper=qemu
 go_import_path=github.com/lxc/incus/v6
@@ -11,7 +11,7 @@ make_check_args="-skip TestConvertNetworkConfig"
 hostmakedepends="pkg-config"
 makedepends="lxc-devel acl-devel cowsql-devel raft-devel
  libcap-devel libuv-devel sqlite-devel eudev-libudev-devel"
-depends="lxc acl acl-progs rsync squashfs-tools xz dnsmasq iptables attr-progs"
+depends="lxc acl acl-progs rsync squashfs-tools xz dnsmasq iptables attr-progs ${pkgname}-client-${version}_${revision}"
 short_desc="Powerful system container and virtual machine manager"
 maintainer="dkwo <npiazza@disroot.org>"
 license="Apache-2.0"
@@ -38,6 +38,7 @@ post_install() {
 		vinstall "${f}" 700 usr/libexec/incus && rm "${f}"
 	done
 	vsv incus
+	vsv incus-user
 
 	# avoid conflict with lxd, lxd-lts
 	mv ${DESTDIR}/usr/bin/{fuidshift,fuidshift-incus}
@@ -57,10 +58,8 @@ post_install() {
 
 incus-client_package() {
 	short_desc+=" - client"
-	depends="${sourcepkg}>=${version}_${revision}"
 	pkg_install() {
 		vmove usr/bin/incus
-		vsv incus-user
 		for shell in bash fish zsh; do
 			vcompletion scripts/${shell}-completion ${shell} incus
 		done

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2024-10-06 19:23 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-27 23:03 [PR PATCH] incus: enable installing client without the daemon duskmoss
2024-09-27 23:22 ` duskmoss
2024-09-28 14:08 ` dkwo
2024-09-28 19:22 ` duskmoss
2024-09-29  0:12 ` [PR PATCH] [Updated] " duskmoss
2024-09-29  0:27 ` duskmoss
2024-09-29 13:31 ` dkwo
2024-09-29 16:15 ` duskmoss
2024-09-30 13:53 ` dkwo
2024-09-30 17:00 ` duskmoss
2024-10-01 17:42 ` [PR PATCH] [Updated] " duskmoss
2024-10-01 18:07 ` ahesford
2024-10-01 18:15 ` [PR PATCH] [Updated] " duskmoss
2024-10-01 18:19 ` [PR PATCH] [Updated] incus: reverse dependency; add man pages duskmoss
2024-10-01 18:24 ` [PR REVIEW] " ahesford
2024-10-01 18:24 ` ahesford
2024-10-01 18:24 ` ahesford
2024-10-01 19:01 ` ahesford
2024-10-01 19:17 ` [PR PATCH] [Updated] " duskmoss
2024-10-01 21:33 ` duskmoss
2024-10-01 21:49 ` classabbyamp
2024-10-01 21:58 ` [PR PATCH] [Updated] " duskmoss
2024-10-01 21:59 ` duskmoss
2024-10-02 14:13 ` dkwo
2024-10-03 20:14 ` incus: reverse dependency; move incus-user service to daemon package duskmoss
2024-10-03 20:14 ` [PR PATCH] [Updated] " duskmoss
2024-10-05 18:22 ` incus: update to 6.6; reverse dependency dkwo
2024-10-06  1:56 ` duskmoss
2024-10-06 19:23 ` [PR PATCH] [Closed]: " ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).