Github messages for voidlinux
 help / color / mirror / Atom feed
From: dkwo <dkwo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] incus: update to 6.4.0
Date: Mon, 02 Sep 2024 21:08:35 +0200	[thread overview]
Message-ID: <20240902190835.1FCDA2D8E3@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-51907@inbox.vuxu.org>

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

There is an updated pull request by dkwo against master on the void-packages repository

https://github.com/dkwo/void-packages incus
https://github.com/void-linux/void-packages/pull/51907

incus: update to 6.4.0
- I tested the changes in this PR: yes
- I built this PR locally for my native architecture, (x86_64-glibc)

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

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

From 788a492ad5c0c75f53550cf7fab38d88feaeee58 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Mon, 19 Aug 2024 08:23:58 +0200
Subject: [PATCH 1/7] incus: update to 6.4.0

---
 srcpkgs/incus/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/incus/template b/srcpkgs/incus/template
index 7a106e4d338246..933f3dc186295a 100644
--- a/srcpkgs/incus/template
+++ b/srcpkgs/incus/template
@@ -1,7 +1,7 @@
 # Template file for 'incus'
 pkgname=incus
-version=6.3.0
-revision=5
+version=6.4.0
+revision=1
 build_style=go
 build_helper=qemu
 go_import_path=github.com/lxc/incus/v6
@@ -21,7 +21,7 @@ maintainer="dkwo <npiazza@disroot.org>"
 license="Apache-2.0"
 homepage="https://linuxcontainers.org/incus"
 distfiles="https://github.com/lxc/incus/archive/refs/tags/v${version}.tar.gz"
-checksum=7dfb4c17334480af18f2827538b58bedc54e885eab54d224364b973df3183f91
+checksum=c6ad8260a4954b0e4f77de66220d5450290b57858f8c16ee83f12996eea86db4
 system_groups="_incus-admin _incus"
 make_dirs="
  /var/lib/incus 0755 root root

From 1030e010cbd9e1b65ca12f47a39b1f40f511728d Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Fri, 30 Aug 2024 15:32:26 -0400
Subject: [PATCH 2/7] incus: move check from incus-user to incus

---
 srcpkgs/incus/files/{incus-user => incus}/check | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename srcpkgs/incus/files/{incus-user => incus}/check (100%)

diff --git a/srcpkgs/incus/files/incus-user/check b/srcpkgs/incus/files/incus/check
similarity index 100%
rename from srcpkgs/incus/files/incus-user/check
rename to srcpkgs/incus/files/incus/check

From 1eb0be90ee20a01ce7e8b40033c5604249435966 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Fri, 30 Aug 2024 15:43:27 -0400
Subject: [PATCH 3/7] incus: expand readme for opt deps

---
 srcpkgs/incus/files/README.voidlinux | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/srcpkgs/incus/files/README.voidlinux b/srcpkgs/incus/files/README.voidlinux
index 3a4a5b356f49a9..2d1757447dda8e 100644
--- a/srcpkgs/incus/files/README.voidlinux
+++ b/srcpkgs/incus/files/README.voidlinux
@@ -9,3 +9,9 @@ containers. For example, the command
 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`.
+
+
+Optional dependencies:
+
+To run virtual machines, install `qemu` and `edk2-ovmf`.
+To run OCI containers, install `spokeo` and `umoci`.

From e8b263b8d028247276843cd6880fef685a77d301 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Sat, 31 Aug 2024 10:43:36 -0400
Subject: [PATCH 4/7] incus: patch for edk2 paths

---
 ...nce-edk2-Add-Void-Linux-x86_64-paths.patch | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 srcpkgs/incus/patches/0001-incusd-isntance-edk2-Add-Void-Linux-x86_64-paths.patch

diff --git a/srcpkgs/incus/patches/0001-incusd-isntance-edk2-Add-Void-Linux-x86_64-paths.patch b/srcpkgs/incus/patches/0001-incusd-isntance-edk2-Add-Void-Linux-x86_64-paths.patch
new file mode 100644
index 00000000000000..1d84b84d69041b
--- /dev/null
+++ b/srcpkgs/incus/patches/0001-incusd-isntance-edk2-Add-Void-Linux-x86_64-paths.patch
@@ -0,0 +1,35 @@
+From ca0d251dc9a5dfe0e040a5047dcbe006c260010a Mon Sep 17 00:00:00 2001
+From: dkwo <nicolopiazzalunga@gmail.com>
+Date: Sat, 31 Aug 2024 10:39:33 -0400
+Subject: [PATCH] incusd/isntance/edk2: Add Void Linux x86_64 paths
+
+---
+ internal/server/instance/drivers/edk2/driver_edk2.go | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/internal/server/instance/drivers/edk2/driver_edk2.go b/internal/server/instance/drivers/edk2/driver_edk2.go
+index 094f1584c..574376f9a 100644
+--- a/internal/server/instance/drivers/edk2/driver_edk2.go
++++ b/internal/server/instance/drivers/edk2/driver_edk2.go
+@@ -80,6 +80,18 @@ var architectureInstallations = map[int][]Installation{
+ 				{Code: "seabios.bin", Vars: "seabios.bin"},
+ 			},
+ 		},
++	}, {
++		Path: "/usr/share/edk2/x64",
++		Usage: map[FirmwareUsage][]FirmwarePair{
++			GENERIC: {
++				{Code: "OVMF_CODE.4m.fd", Vars: "OVMF_VARS.4m.fd"},
++				{Code: "OVMF_CODE.fd", Vars: "OVMF_VARS.fd"},
++			},
++			SECUREBOOT: {
++				{Code: "OVMF_CODE.secure.4m.fd", Vars: "OVMF_VARS.4m.fd"},
++				{Code: "OVMF_CODE.secure.fd", Vars: "OVMF_VARS.fd"},
++			},
++		},
+ 	}, {
+ 		Path: "/usr/share/OVMF/x64",
+ 		Usage: map[FirmwareUsage][]FirmwarePair{
+-- 
+2.46.0
+

From 662ca3e64aa170fe1d0dc620d4310b13e6a41c0d Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Sat, 31 Aug 2024 13:16:23 -0400
Subject: [PATCH 5/7] incus: unupstreamable fixup

---
 srcpkgs/incus/patches/0002-expr.patch | 69 +++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
 create mode 100644 srcpkgs/incus/patches/0002-expr.patch

diff --git a/srcpkgs/incus/patches/0002-expr.patch b/srcpkgs/incus/patches/0002-expr.patch
new file mode 100644
index 00000000000000..58e3f0e4a87b76
--- /dev/null
+++ b/srcpkgs/incus/patches/0002-expr.patch
@@ -0,0 +1,69 @@
+From 6e60698688997cc95e1eb0b167f4d04403b6990d Mon Sep 17 00:00:00 2001
+From: dkwo <nicolopiazzalunga@gmail.com>
+Date: Sat, 31 Aug 2024 13:02:52 -0400
+Subject: [PATCH] incus: experiment with path
+
+---
+ .../instance/drivers/edk2/driver_edk2.go      | 46 -------------------
+ 1 file changed, 46 deletions(-)
+
+diff --git a/internal/server/instance/drivers/edk2/driver_edk2.go b/internal/server/instance/drivers/edk2/driver_edk2.go
+index 574376f9a..0715f0080 100644
+--- a/internal/server/instance/drivers/edk2/driver_edk2.go
++++ b/internal/server/instance/drivers/edk2/driver_edk2.go
+@@ -35,52 +35,6 @@ const (
+ 
+ var architectureInstallations = map[int][]Installation{
+ 	osarch.ARCH_64BIT_INTEL_X86: {{
+-		Path: "/usr/share/OVMF",
+-		Usage: map[FirmwareUsage][]FirmwarePair{
+-			GENERIC: {
+-				{Code: "OVMF_CODE.4MB.fd", Vars: "OVMF_VARS.4MB.fd"},
+-				{Code: "OVMF_CODE_4M.fd", Vars: "OVMF_VARS_4M.fd"},
+-				{Code: "OVMF_CODE.4m.fd", Vars: "OVMF_VARS.4m.fd"},
+-				{Code: "OVMF_CODE.2MB.fd", Vars: "OVMF_VARS.2MB.fd"},
+-				{Code: "OVMF_CODE.fd", Vars: "OVMF_VARS.fd"},
+-				{Code: "OVMF_CODE.fd", Vars: "qemu.nvram"},
+-			},
+-			SECUREBOOT: {
+-				{Code: "OVMF_CODE.4MB.fd", Vars: "OVMF_VARS.4MB.ms.fd"},
+-				{Code: "OVMF_CODE_4M.ms.fd", Vars: "OVMF_VARS_4M.ms.fd"},
+-				{Code: "OVMF_CODE_4M.secboot.fd", Vars: "OVMF_VARS_4M.secboot.fd"},
+-				{Code: "OVMF_CODE.secboot.4m.fd", Vars: "OVMF_VARS.4m.fd"},
+-				{Code: "OVMF_CODE.secboot.fd", Vars: "OVMF_VARS.secboot.fd"},
+-				{Code: "OVMF_CODE.secboot.fd", Vars: "OVMF_VARS.fd"},
+-				{Code: "OVMF_CODE.2MB.fd", Vars: "OVMF_VARS.2MB.ms.fd"},
+-				{Code: "OVMF_CODE.fd", Vars: "OVMF_VARS.ms.fd"},
+-				{Code: "OVMF_CODE.fd", Vars: "qemu.nvram"},
+-			},
+-			CSM: {
+-				{Code: "seabios.bin", Vars: "seabios.bin"},
+-				{Code: "OVMF_CODE.4MB.CSM.fd", Vars: "OVMF_VARS.4MB.CSM.fd"},
+-				{Code: "OVMF_CODE.csm.4m.fd", Vars: "OVMF_VARS.4m.fd"},
+-				{Code: "OVMF_CODE.2MB.CSM.fd", Vars: "OVMF_VARS.2MB.CSM.fd"},
+-				{Code: "OVMF_CODE.CSM.fd", Vars: "OVMF_VARS.CSM.fd"},
+-				{Code: "OVMF_CODE.csm.fd", Vars: "OVMF_VARS.fd"},
+-			},
+-		},
+-	}, {
+-		Path: "/usr/share/qemu",
+-		Usage: map[FirmwareUsage][]FirmwarePair{
+-			GENERIC: {
+-				{Code: "ovmf-x86_64-4m-code.bin", Vars: "ovmf-x86_64-4m-vars.bin"},
+-				{Code: "ovmf-x86_64.bin", Vars: "ovmf-x86_64-code.bin"},
+-			},
+-			SECUREBOOT: {
+-				{Code: "ovmf-x86_64-ms-4m-vars.bin", Vars: "ovmf-x86_64-ms-4m-code.bin"},
+-				{Code: "ovmf-x86_64-ms-code.bin", Vars: "ovmf-x86_64-ms-vars.bin"},
+-			},
+-			CSM: {
+-				{Code: "seabios.bin", Vars: "seabios.bin"},
+-			},
+-		},
+-	}, {
+ 		Path: "/usr/share/edk2/x64",
+ 		Usage: map[FirmwareUsage][]FirmwarePair{
+ 			GENERIC: {
+-- 
+2.46.0
+

From 18d7d31211bde9488d48936653b7fc1c80674707 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Mon, 2 Sep 2024 10:11:40 -0400
Subject: [PATCH 6/7] incus: do not log to syslog

---
 srcpkgs/incus/files/incus/run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/incus/files/incus/run b/srcpkgs/incus/files/incus/run
index d189b4395b90ff..a8f6bd3d95a41b 100644
--- a/srcpkgs/incus/files/incus/run
+++ b/srcpkgs/incus/files/incus/run
@@ -1,4 +1,4 @@
 #!/bin/sh
 exec 2>&1
 [ -r conf ] && . ./conf
-exec /usr/libexec/incus/incusd --group _incus-admin --syslog ${OPTS:- --verbose}
+exec /usr/libexec/incus/incusd --group _incus-admin ${OPTS:- --verbose}

From 1f4ea56b33997a8f024c7590e43e7a688c759693 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Mon, 2 Sep 2024 10:17:08 -0400
Subject: [PATCH 7/7] incus: keep certain tools root-only

---
 srcpkgs/incus/template | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/incus/template b/srcpkgs/incus/template
index 933f3dc186295a..01922cd63d3d26 100644
--- a/srcpkgs/incus/template
+++ b/srcpkgs/incus/template
@@ -46,13 +46,18 @@ post_install() {
 		vinstall "${f}" 700 usr/libexec/incus && rm "${f}"
 	done
 	vsv incus
+
 	# avoid conflict with lxd, lxd-lts
 	mv ${DESTDIR}/usr/bin/{fuidshift,fuidshift-incus}
+	# upstream recommends these should be kept to root only
+	for _tool in fuidshift-incus lxd-to-incus; do
+		chmod 700 ${DESTDIR}/usr/bin/${_tool}
+	done
 
 	# generate shell completions
-	local incus=${DESTDIR}/usr/bin/incus
-	for shell in bash fish zsh; do
-		vtargetrun ${incus} completion ${shell} > scripts/${shell}-completion
+	local _incus=${DESTDIR}/usr/bin/incus
+	for _shell in bash fish zsh; do
+		vtargetrun ${_incus} completion ${_shell} > scripts/${_shell}-completion
 	done
 
 	vdoc "${FILESDIR}/README.voidlinux"

  parent reply	other threads:[~2024-09-02 19:08 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-19  7:45 [PR PATCH] " dkwo
2024-08-22  8:26 ` [PR PATCH] [Updated] " dkwo
2024-08-23  3:25 ` classabbyamp
2024-08-27 18:23 ` rekh127
2024-08-28 20:51 ` rekh127
2024-08-28 20:55 ` classabbyamp
2024-08-28 20:58 ` rekh127
2024-08-28 21:03 ` rekh127
2024-08-28 21:11 ` rekh127
2024-08-29 14:08 ` dkwo
2024-08-29 18:58 ` rekh127
2024-08-29 18:59 ` rekh127
2024-08-29 19:10 ` rekh127
2024-08-29 19:19 ` classabbyamp
2024-08-29 20:01 ` rekh127
2024-08-29 20:18 ` dkwo
2024-08-29 20:38 ` rekh127
2024-08-29 20:53 ` classabbyamp
2024-08-29 21:22 ` dkwo
2024-08-29 21:27 ` rekh127
2024-08-29 21:33 ` dkwo
2024-08-30 19:20 ` dkwo
2024-08-30 19:44 ` [PR PATCH] [Updated] " dkwo
2024-08-30 20:38 ` dkwo
2024-08-30 20:38 ` dkwo
2024-08-30 21:04 ` rekh127
2024-08-30 22:27 ` dkwo
2024-08-31  6:11 ` classabbyamp
2024-08-31 11:02 ` dkwo
2024-08-31 12:03 ` dkwo
2024-08-31 12:04 ` [PR PATCH] [Updated] " dkwo
2024-08-31 13:48 ` [PR REVIEW] " classabbyamp
2024-08-31 13:50 ` classabbyamp
2024-08-31 13:52 ` classabbyamp
2024-08-31 14:31 ` dkwo
2024-08-31 14:33 ` [PR REVIEW] " dkwo
2024-08-31 15:19 ` dkwo
2024-08-31 15:19 ` [PR PATCH] [Updated] " dkwo
2024-08-31 17:14 ` rekh127
2024-09-02 14:37 ` [PR PATCH] [Updated] " dkwo
2024-09-02 14:41 ` dkwo
2024-09-02 15:58 ` [PR REVIEW] " classabbyamp
2024-09-02 19:08 ` dkwo [this message]
2024-09-04 17:10 ` dkwo
2024-09-05 12:39 ` dkwo
2024-09-05 12:40 ` [PR PATCH] [Updated] " dkwo
2024-09-05 12:40 ` dkwo
2024-09-06 13:15 ` [PR PATCH] [Updated] " dkwo
2024-09-06 13:23 ` incus: update to 6.5 dkwo
2024-09-06 21:57 ` [PR REVIEW] " rekh127
2024-09-06 22:01 ` classabbyamp
2024-09-06 22:03 ` rekh127
2024-09-07 20:39 ` [PR PATCH] [Updated] " dkwo
2024-09-08 13:51 ` dkwo
2024-09-08 14:23 ` [PR PATCH] [Merged]: " classabbyamp

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=20240902190835.1FCDA2D8E3@inbox.vuxu.org \
    --to=dkwo@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).