From: duskmoss <duskmoss@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] incus: reverse dependency; add man pages
Date: Tue, 01 Oct 2024 21:17:57 +0200 [thread overview]
Message-ID: <20241001191757.7936B215BF@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-52384@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1175 bytes --]
There is an updated 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: reverse dependency; add man pages
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: 3789 bytes --]
From 88d4aa6725b6b3b0642ef552d42c9f69bcd25a23 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: reverse dependency; add man pages
incus-client is intended to be installed without the daemon to use to
control remote incus servers. incus the daemon can't be used without
the client, at least to authorize another client to access the API.
I moved incus-user to the daemon package because it's a daemon and
not part of the client.
I added incus's generated manpages to the incus-client package.
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 | 4 ++--
srcpkgs/incus/template | 32 +++++++++++++++++++++++-----
2 files changed, 29 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/incus/files/README.voidlinux b/srcpkgs/incus/files/README.voidlinux
index 2d1757447dda8e..31a55a3415ece8 100644
--- a/srcpkgs/incus/files/README.voidlinux
+++ b/srcpkgs/incus/files/README.voidlinux
@@ -1,6 +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
+either the `_incus-admin` or `_incus` group. The root user should also
+be assigned a range of subordinate user and group IDs to be mapped in
containers. For example, the command
usermod --add-subuids 1000000-1065535 \
diff --git a/srcpkgs/incus/template b/srcpkgs/incus/template
index a7c9857c58e33b..781c638db738cb 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,8 @@ 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 +39,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}
@@ -46,24 +48,44 @@ post_install() {
chmod 700 ${DESTDIR}/usr/bin/${_tool}
done
- # generate shell completions
+ # path to run incus commands in build
local _incus=${DESTDIR}/usr/bin/incus
+
+ # generate shell completions
for _shell in bash fish zsh; do
vtargetrun ${_incus} completion ${_shell} > scripts/${_shell}-completion
done
+ # generate man pages
+ mkdir man
+ vtargetrun ${_incus} manpage --all --format=man man
+
+ local _manpage _prefix _suffix
+ # rename pages with multiple dots
+ for _manpage in man/*.*.*; do
+ [ -f "${_manpage}" ] || continue
+ _prefix="${_manpage%.*}"
+ _suffix="${_manpage##*.}"
+ mv "${_manpage}" "${_prefix//./-}.${_suffix}"
+ done
+
vdoc "${FILESDIR}/README.voidlinux"
}
incus-client_package() {
short_desc+=" - client"
- depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/incus
- vsv incus-user
+
+ # install shell completions
for shell in bash fish zsh; do
vcompletion scripts/${shell}-completion ${shell} incus
done
+
+ # install manpages
+ for _manpage in man/*; do
+ vman "$_manpage"
+ done
}
}
next prev parent reply other threads:[~2024-10-01 19:17 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` duskmoss [this message]
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
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=20241001191757.7936B215BF@inbox.vuxu.org \
--to=duskmoss@users.noreply.github.com \
--cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).