Re: RFC: Switch to a date-based versioning scheme

2023-10-30 Thread Andrea Bolognani
On Thu, Oct 26, 2023 at 03:15:06PM +0100, Daniel P. Berrangé wrote: > On Thu, Oct 26, 2023 at 06:48:28AM -0700, Andrea Bolognani wrote: > > Since we're just a few months away from the 10.0.0 release, I thought > > it would be a good time to bring up this idea. > > >

[libvirt PATCH] src: Remove duplicated VIR_REQUIRE_FLAG_GOTO() call

2023-10-31 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- src/libvirt-domain.c | 4 1 file changed, 4 deletions(-) diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index 6616294fc1..58e1e5ea8d 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -4221,10 +4221,6 @@ virDomainMigrate3

Re: RFC: Switch to a date-based versioning scheme

2023-10-31 Thread Andrea Bolognani
On Tue, Oct 31, 2023 at 12:13:14PM +0100, Michal Prívozník wrote: > On 10/26/23 15:48, Andrea Bolognani wrote: > > Since we're just a few months away from the 10.0.0 release, I thought > > it would be a good time to bring up this idea. > > > > Can we move to date-

Re: RFC: Switch to a date-based versioning scheme

2023-10-31 Thread Andrea Bolognani
On Tue, Oct 31, 2023 at 11:58:01AM +, Daniel P. Berrangé wrote: > On Tue, Oct 31, 2023 at 04:20:24AM -0700, Andrea Bolognani wrote: > > systemd is in a similar position as us, where they can't really break > > compatibility because too much stuff is built on top, so they

[libvirt PATCH 0/3] Introduce VIR_MIGRATE_ASSUME_SHARED_STORAGE

2023-10-31 Thread Andrea Bolognani
to allow migration in such a configuration while still not going quite as far as VIR_MIGRATE_UNSAFE does and losing all handrails. [1] https://issues.redhat.com/browse/CNV-34322 Andrea Bolognani (3): include: Introduce VIR_MIGRATE_ASSUME_SHARED_STORAGE qemu: Implement

[libvirt PATCH 2/3] qemu: Implement VIR_MIGRATE_ASSUME_SHARED_STORAGE support

2023-10-31 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- src/qemu/qemu_migration.c | 5 + src/qemu/qemu_migration.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index ac58aa1a8c..bf6f1de310 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu

[libvirt PATCH 3/3] virsh: Wire up VIR_MIGRATE_ASSUME_SHARED_STORAGE support

2023-10-31 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- docs/manpages/virsh.rst | 5 - tools/virsh-domain.c| 5 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/manpages/virsh.rst b/docs/manpages/virsh.rst index 3e7a4c6c22..849933fa2e 100644 --- a/docs/manpages/virsh.rst +++ b/docs

[libvirt PATCH 1/3] include: Introduce VIR_MIGRATE_ASSUME_SHARED_STORAGE

2023-10-31 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- include/libvirt/libvirt-domain.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h index a1902546bb..37c55c5ae8 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include

[libvirt PATCH 01/11] rpm: Disable expensive tests for MinGW builds

2023-11-02 Thread Andrea Bolognani
Tests are disabled so this combination never made any sense, but with recent changes it has turned into a build failure. Fixes: 8ce0decc372051d616018f57ae268e2f03082eec Reported-by: Cole Robinson Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 2 +- 1 file changed, 1 insertion(+), 1

[libvirt PATCH 00/11] ci: Build RPMs on MinGW

2023-11-02 Thread Andrea Bolognani
https://gitlab.com/libvirt/libvirt-ci/-/merge_requests/440 Andrea Bolognani (11): rpm: Disable expensive tests for MinGW builds rpm: Explicitly enable NLS support rpm: Rename module-init-tools -> kmod rpm: Explain a couple of BuildRequires rpm: Add libxml2 BuildRequires for xmlli

[libvirt PATCH 02/11] rpm: Explicitly enable NLS support

2023-11-02 Thread Andrea Bolognani
We want it both for native builds and MinGW ones. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 342a88024a..f21f76b256 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in

[libvirt PATCH 03/11] rpm: Rename module-init-tools -> kmod

2023-11-02 Thread Andrea Bolognani
The old package name is only kept around for compatibility reasons. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index f21f76b256..d16d622153 100644 --- a/libvirt.spec.in +++ b

[libvirt PATCH 04/11] rpm: Explain a couple of BuildRequires

2023-11-02 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index d16d622153..8248e2ca80 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -292,6 +292,7 @@ BuildRequires: xen-devel %endif BuildRequires: glib2

[libvirt PATCH 05/11] rpm: Add libxml2 BuildRequires for xmllint

2023-11-02 Thread Andrea Bolognani
It's already been dragged in by the -devel package, but since we use the command line tool directly as part of our build process it's more correct to explicitly depend on the runtime package. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 2 ++ 1 file changed, 2 insertions(+)

[libvirt PATCH 06/11] rpm: Shuffle BuildRequires around

2023-11-02 Thread Andrea Bolognani
Move all dependencies that are needed both for native builds and for MinGW ones near the top of the list. This will make future patches nicer. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libvirt.spec.in

[libvirt PATCH 07/11] rpm: Split call to mingw_debug_package

2023-11-02 Thread Andrea Bolognani
This is functionally equivalent and will make future patches nicer. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index dc67ffabcc..6a999860f5 100644 --- a/libvirt.spec.in +++ b

[libvirt PATCH 08/11] rpm: Introduce with_mingw32/with_mingw64

2023-11-02 Thread Andrea Bolognani
. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 49 - 1 file changed, 36 insertions(+), 13 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 6a999860f5..75fd0a2771 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -203,9

[libvirt PATCH 11/11] ci: Build RPMs on MinGW

2023-11-02 Thread Andrea Bolognani
Now that the spec file supports selectively disabling the native, mingw32 and mingw64 parts, we can add coverage for the MinGW RPM builds. Signed-off-by: Andrea Bolognani --- .gitlab-ci.yml | 11 --- ci/jobs.sh | 19 ++- 2 files changed, 26 insertions(+), 4 deletions

[libvirt PATCH 10/11] ci: Refresh generated files

2023-11-02 Thread Andrea Bolognani
The native version of gettext is now included in MinGW containers. Signed-off-by: Andrea Bolognani --- ci/buildenv/fedora-38-cross-mingw32.sh| 1 + ci/buildenv/fedora-38-cross-mingw64.sh| 1 + ci/buildenv/fedora-rawhide-cross-mingw32.sh | 1 + ci

[libvirt PATCH 09/11] rpm: Introduce with_native

2023-11-02 Thread Andrea Bolognani
The new _without_native knob makes it possible to skip the native build completely and build for MinGW only. Best viewed with 'git show -w'. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 395 +--- 1 file changed, 210 insertio

Re: mingw rpm build busted? (was: Release of libvirt-9.9.0)

2023-11-02 Thread Andrea Bolognani
as well. Anyone else seeing this? meson > >> 1.2.3 and 1.2.2 both affected > > > > That will be exposed by > > > > ommit 8ce0decc372051d616018f57ae268e2f03082eec > > Author: Andrea Bolognani > > Date: Tue Oct 3 14:53:08 2023 +0200 > > > > me

[libvirt PATCH 0/2] rpc: Make rpcgen produce ANSI C code

2023-11-02 Thread Andrea Bolognani
supported in C2x [-Werror,-Wdeprecated-non-prototype] xdr_virNetMessageType(xdrs, objp) Andrea Bolognani (2): rpc: Drop support for portable-rpcgen rpc: Make rpcgen produce ANSI C code meson.build| 12 +--- src/rpc/genprotocol.pl | 5 ++--- 2 files changed, 3 insertions(+), 14

[libvirt PATCH 1/2] rpc: Drop support for portable-rpcgen

2023-11-02 Thread Andrea Bolognani
We use the native version of rpcgen everywhere. Signed-off-by: Andrea Bolognani --- meson.build| 12 +--- src/rpc/genprotocol.pl | 3 --- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/meson.build b/meson.build index dc0969abcc..158a7cae01 100644 --- a

[libvirt PATCH 2/2] rpc: Make rpcgen produce ANSI C code

2023-11-02 Thread Andrea Bolognani
ed-off-by: Andrea Bolognani --- src/rpc/genprotocol.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rpc/genprotocol.pl b/src/rpc/genprotocol.pl index 6c664f48e7..5eb654cb7c 100755 --- a/src/rpc/genprotocol.pl +++ b/src/rpc/genprotocol.pl @@ -39,6 +39,8 @@ my $target = shift; unlin

Re: [PATCH] tests: ignore $__CF_USER_TEXT_ENCODING in env during commandtest

2023-11-03 Thread Andrea Bolognani
T_ENCODING, which is set by MacOS. */ s/MacOS/macOS/ (in the commit message too) Reviewed-by: Andrea Bolognani -- Andrea Bolognani / Red Hat / Virtualization ___ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-le...@lists.libvirt.org

Re: [PATCH] tests: ignore $__CF_USER_TEXT_ENCODING in env during commandtest

2023-11-03 Thread Andrea Bolognani
On Fri, Nov 03, 2023 at 03:11:07AM -0700, Andrea Bolognani wrote: > On Fri, Nov 03, 2023 at 12:00:30AM -0400, Laine Stump wrote: > > [*] There may be a better way to suppress this environment setting > > (maybe something done to prevent it from ever being added to the > &g

[libvirt PATCH v2 0/1] rpc: Make rpcgen produce ANSI C code

2023-11-03 Thread Andrea Bolognani
Test pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1060019687 Changes from [v1] * retain portable-rpcgen support. [v1] https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/2A3KKLCQQ3BAVV3KGW2FLKZ42WF2ERD3/ Andrea Bolognani (1): rpc: Make rpcgen produce ANSI C

[libvirt PATCH v2 1/1] rpc: Make rpcgen produce ANSI C code

2023-11-03 Thread Andrea Bolognani
ed-off-by: Andrea Bolognani --- src/rpc/genprotocol.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rpc/genprotocol.pl b/src/rpc/genprotocol.pl index adf3991d7a..37216303dc 100755 --- a/src/rpc/genprotocol.pl +++ b/src/rpc/genprotocol.pl @@ -41,6 +41,8 @@ unlink $target; if ($rpcgen =~

Re: [libvirt PATCH 1/2] rpc: Drop support for portable-rpcgen

2023-11-03 Thread Andrea Bolognani
On Fri, Nov 03, 2023 at 08:55:27AM +, Daniel P. Berrangé wrote: > On Fri, Nov 03, 2023 at 12:37:17AM +0100, Andrea Bolognani wrote: > > We use the native version of rpcgen everywhere. > > This is true of our CI systems, but not true of user > environments. > > For ou

Re: [PATCH] tests: ignore $__CF_USER_TEXT_ENCODING in env during commandtest

2023-11-03 Thread Andrea Bolognani
On Fri, Nov 03, 2023 at 10:47:11AM +, Daniel P. Berrangé wrote: > On Fri, Nov 03, 2023 at 10:41:51AM +, Daniel P. Berrangé wrote: > > On Fri, Nov 03, 2023 at 03:19:17AM -0700, Andrea Bolognani wrote: > > > ld: warning: ignoring duplicate libraries: '-lxml2'

Re: [libvirt PATCH 00/11] ci: Build RPMs on MinGW

2023-11-03 Thread Andrea Bolognani
On Fri, Nov 03, 2023 at 10:14:55AM +, Daniel P. Berrangé wrote: > On Thu, Nov 02, 2023 at 11:37:22PM +0100, Andrea Bolognani wrote: > > The openSUSE Leap 15 job failed, but that's caused by an unrelated > > packaging issue: > > > > $ pkg-config --cflags lib

Re: [PATCH] tests: ignore $__CF_USER_TEXT_ENCODING in env during commandtest

2023-11-03 Thread Andrea Bolognani
On Fri, Nov 03, 2023 at 11:17:03AM +, Daniel P. Berrangé wrote: > On Fri, Nov 03, 2023 at 04:13:12AM -0700, Andrea Bolognani wrote: > > On Fri, Nov 03, 2023 at 10:47:11AM +, Daniel P. Berrangé wrote: > > > On Fri, Nov 03, 2023 at 10:41:51AM +, Daniel P. Berrangé wro

Re: [PATCH] build: suppress "ignoring duplicate libraries" warning on macOS

2023-11-03 Thread Andrea Bolognani
d files already have examples of adding an > option to the ld commandline if it's available. > > Signed-off-by: Laine Stump > --- > meson.build | 4 > src/meson.build | 1 + > tests/meson.build | 1 + > tools/meson.build | 1 + > 4 files changed, 7 ins

Re: [PATCH] ci: drop mipsel on Debian Sid

2023-11-06 Thread Andrea Bolognani
| 4 - > 5 files changed, 270 deletions(-) > delete mode 100644 ci/buildenv/debian-sid-cross-mipsel.sh > delete mode 100644 ci/containers/debian-sid-cross-mipsel.Dockerfile Reviewed-by: Andrea Bolognani -- Andrea Bolognani / Red Hat / Virtualization _

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Andrea Bolognani
6_64 > variables: >RPM: skip > + # Keep until fix for: > https://bugzilla.opensuse.org/show_bug.cgi?id=1216862 > + CFLAGS: -Wno-missing-include-dirs Thanks for filing the bug. Assuming that you have tried this in CI and it did what it was sup

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Andrea Bolognani
> Using index info to reconstruct a base tree... > error: patch failed: ci/gitlab/builds.yml:332 > error: ci/gitlab/builds.yml: patch does not apply > error: patch failed: ci/manifest.yml:205 Yeah, both me and Laine noticed this the other day. Patches look fine in mutt, but if you

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Andrea Bolognani
On Mon, Nov 06, 2023 at 09:58:02AM +, Daniel P. Berrangé wrote: > On Mon, Nov 06, 2023 at 01:47:20AM -0800, Andrea Bolognani wrote: > > On Mon, Nov 06, 2023 at 10:37:28AM +0100, Martin Kletzander wrote: > > > Ah, since the switch to the new ML I cannot apply any patch

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Andrea Bolognani
On Mon, Nov 06, 2023 at 10:26:36AM +, Daniel P. Berrangé wrote: > On Mon, Nov 06, 2023 at 02:21:16AM -0800, Andrea Bolognani wrote: > > So does that mean that the issue is server-side? I'm pretty sure > > Laine, Martin and I are all fetching emails using different tool

[libvirt PATCH 2/5] ci: Drop rpcgen override from macOS $PATH

2023-11-06 Thread Andrea Bolognani
We no longer use rpcgen. Signed-off-by: Andrea Bolognani --- ci/gitlab/builds.yml | 2 +- ci/manifest.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/gitlab/builds.yml b/ci/gitlab/builds.yml index 2beca51767..8297adbc5f 100644 --- a/ci/gitlab/builds.yml +++ b

[libvirt PATCH 3/5] ci: Add macOS 13

2023-11-06 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- ci/cirrus/macos-13.vars | 16 ci/gitlab/builds.yml| 16 ci/manifest.yml | 7 +++ 3 files changed, 39 insertions(+) create mode 100644 ci/cirrus/macos-13.vars diff --git a/ci/cirrus/macos-13.vars b/ci/cirrus

[libvirt PATCH 4/5] ci: Add macOS 14

2023-11-06 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- ci/cirrus/macos-14.vars | 16 ci/gitlab/builds.yml| 16 ci/manifest.yml | 7 +++ 3 files changed, 39 insertions(+) create mode 100644 ci/cirrus/macos-14.vars diff --git a/ci/cirrus/macos-14.vars b/ci/cirrus

[libvirt PATCH 5/5] ci: Drop macOS 12

2023-11-06 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- ci/cirrus/macos-12.vars | 16 ci/gitlab/builds.yml| 16 ci/manifest.yml | 7 --- 3 files changed, 39 deletions(-) delete mode 100644 ci/cirrus/macos-12.vars diff --git a/ci/cirrus/macos-12.vars b/ci/cirrus

[libvirt PATCH 0/5] ci: Add macOS 13 & 14, drop macOS 12

2023-11-06 Thread Andrea Bolognani
because they conflict with OS-supplied packages. Right now it doesn't really do anything, because it hasn't been updated with the switch to aarch64. I'm going to look into it later, but for now I've left it as-is as reminder/documentation. Andrea Bolognani (5): ci: Update gen

[libvirt PATCH 1/5] ci: Update generated files

2023-11-06 Thread Andrea Bolognani
Gain native gettext for MinGW containers, lose rpcgen everywhere. Signed-off-by: Andrea Bolognani --- ci/buildenv/almalinux-8.sh| 1 - ci/buildenv/alpine-317.sh | 1 - ci/buildenv/alpine-edge.sh| 1 - ci

Re: [PATCH] virDomainDeviceInfoCheckABIStability: Implement proper check for CCW addresses

2023-11-06 Thread Andrea Bolognani
On Thu, Nov 02, 2023 at 04:40:28PM +0100, Peter Krempa wrote: > CCW addresses need to be also checked for ABI stability. > > Signed-off-by: Peter Krempa > --- > src/conf/domain_conf.c | 13 - > 1 file changed, 12 insertions(+), 1 deletion(-) Reviewed-by

Re: [libvirt PATCH 0/5] ci: Add macOS 13 & 14, drop macOS 12

2023-11-06 Thread Andrea Bolognani
On Mon, Nov 06, 2023 at 12:42:58PM +, Daniel P. Berrangé wrote: > On Mon, Nov 06, 2023 at 12:04:09PM +0100, Andrea Bolognani wrote: > > Test pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1062214982 > > > > Assumes that > > > > http

Re: [libvirt PATCH] conf: virDomainDiskSourceFormat: check for srcpool presence correctly

2023-11-06 Thread Andrea Bolognani
eful. > > Fixes: 19b1c0d31988a3a10c4694c10c27eb15c018f450 > Signed-off-by: Ján Tomko > --- > src/conf/domain_conf.c | 14 ++ > 1 file changed, 6 insertions(+), 8 deletions(-) Reviewed-by: Andrea Bolognani -- Andrea Bolognani / Red Hat / Virtualization

[libvirt PATCH] systemd: More tweaks to Description and Documentation lines

2023-11-06 Thread Andrea Bolognani
We recently unified all services and sockets, except a couple were missed. Finish the job. Signed-off-by: Andrea Bolognani --- src/remote/virt-guest-shutdown.target | 4 ++-- tools/libvirt-guests.service.in | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src

Re: [libvirt PATCH] qemu: add runtime config option for nbdkit

2023-11-09 Thread Andrea Bolognani
, they would also > need to rebuild libvirt to enable nbdkit support. By introducing a > configure option (storage_use_nbdkit), we can build packages with nbdkit > support but have it disabled by default. > > Signed-off-by: Jonathon Jongsma > --- > > Suggested as an option for

Re: [libvirt PATCH 2/3] qemu: Implement VIR_MIGRATE_ASSUME_SHARED_STORAGE support

2023-11-13 Thread Andrea Bolognani
On Wed, Nov 01, 2023 at 12:52:15PM +, Daniel P. Berrangé wrote: > On Tue, Oct 31, 2023 at 06:12:59PM +0100, Andrea Bolognani wrote: > > if ((rc = virFileIsSharedFS(src)) < 0) { > > return false; > > } else if (rc == 0) { > &

[libvirt PATCH] kbase: More info on firmware change for existing VMs

2023-11-16 Thread Andrea Bolognani
The need to remove the and elements in order to make the firmware autoselection process kick in again is not exactly intuitive, so document it explicitly. Signed-off-by: Andrea Bolognani --- docs/kbase/secureboot.rst | 30 +- 1 file changed, 25 insertions(+), 5

[libvirt PATCH v2 0/5] ci: Build RPMs on MinGW

2023-11-16 Thread Andrea Bolognani
opped; * the last patch has been tweaked a bit and the changes contained in it are now documented with a code comment. [v1] https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/Y2W2PMWBS2EGGFNEMEZM5L5XNQ2EJSUJ/ Andrea Bolognani (5): rpm: Shuffle BuildRequires around rpm: Split

[libvirt PATCH v2 2/5] rpm: Split call to mingw_debug_package

2023-11-16 Thread Andrea Bolognani
This is functionally equivalent and will make future patches nicer. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 1f90a36f22..5b0b316543 100644 --- a/libvirt.spec.in +++ b

[libvirt PATCH v2 1/5] rpm: Shuffle BuildRequires around

2023-11-16 Thread Andrea Bolognani
Move all dependencies that are needed both for native builds and for MinGW ones near the top of the list. This will make future patches nicer. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/libvirt.spec.in

[libvirt PATCH v2 3/5] rpm: Introduce with_mingw32/with_mingw64

2023-11-16 Thread Andrea Bolognani
. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 49 - 1 file changed, 36 insertions(+), 13 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 5b0b316543..7e2da8506a 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -203,9

[libvirt PATCH v2 5/5] ci: Build RPMs on MinGW

2023-11-16 Thread Andrea Bolognani
Now that the spec file supports selectively disabling the native, mingw32 and mingw64 parts, we can add coverage for the MinGW RPM builds. Signed-off-by: Andrea Bolognani --- .gitlab-ci.yml | 11 --- ci/jobs.sh | 23 ++- 2 files changed, 30 insertions(+), 4

[libvirt PATCH v2 4/5] rpm: Introduce with_native

2023-11-16 Thread Andrea Bolognani
The new _without_native knob makes it possible to skip the native build completely and build for MinGW only. Best viewed with 'git show -w'. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 395 +--- 1 file changed, 210 insertio

[libvirt PATCH] rpc: Pass GPG_TTY and TERM environment variables

2023-11-16 Thread Andrea Bolognani
https://gitlab.com/libvirt/libvirt/-/merge_requests/290 Thanks: Guilhem Moulin Thanks: Kunwu Chan Signed-off-by: Andrea Bolognani --- src/rpc/virnetsocket.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c index b58f7a6b8f..151077c2dd 100644

[libvirt PATCH 0/6] polkit: Make it possible to write safer rules

2023-11-20 Thread Andrea Bolognani
See patch 5/6 for details. Andrea Bolognani (6): docs: The Polkit access driver is disabled by default docs: Document org.libvirt.unix.* actions rpc: Introduce virNetServerHasGranularPolkit() remote: Set granularPolkit if applicable remote: Expose granularPolkit attribute to rules

[libvirt PATCH 1/6] docs: The Polkit access driver is disabled by default

2023-11-20 Thread Andrea Bolognani
This might not be immediately obvious to someone who ended up on the page without passing through acl.html first. Signed-off-by: Andrea Bolognani --- docs/aclpolkit.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/docs/aclpolkit.rst b/docs/aclpolkit.rst index 07f4735001

[libvirt PATCH 4/6] remote: Set granularPolkit if applicable

2023-11-20 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- src/remote/remote_daemon.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/remote/remote_daemon.c b/src/remote/remote_daemon.c index 59170373cb..fc5e543470 100644 --- a/src/remote/remote_daemon.c +++ b/src/remote

[libvirt PATCH 5/6] remote: Expose granularPolkit attribute to rules

2023-11-20 Thread Andrea Bolognani
t broker access to subsequent API calls anymore, user "fred" now has full administrative access to all drivers. Rewriting the check seen above as if (action.id == "org.libvirt.unix.manage" && action.lookup("granular") == "true") { return p

[libvirt PATCH 2/6] docs: Document org.libvirt.unix.* actions

2023-11-20 Thread Andrea Bolognani
Before any of the API can be executed, the client needs to be authenticated by allowing one of these special actions. Signed-off-by: Andrea Bolognani --- docs/aclpolkit.rst | 17 + 1 file changed, 17 insertions(+) diff --git a/docs/aclpolkit.rst b/docs/aclpolkit.rst index

[libvirt PATCH 6/6] docs: Document granularPolkit attribute

2023-11-20 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- docs/aclpolkit.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/docs/aclpolkit.rst b/docs/aclpolkit.rst index 9b0a374c53..fe825c504b 100644 --- a/docs/aclpolkit.rst +++ b/docs/aclpolkit.rst @@ -70,6 +70,15 @@ to be approved by Polkit before any

[libvirt PATCH 3/6] rpc: Introduce virNetServerHasGranularPolkit()

2023-11-20 Thread Andrea Bolognani
It's always set to false for now. Signed-off-by: Andrea Bolognani --- src/libvirt_remote.syms| 1 + src/locking/lock_daemon.c | 6 -- src/logging/log_daemon.c | 6 -- src/lxc/lxc_controller.c | 3 ++- src/remote/remote_daemon.c | 6 -- src/rpc/virnetserver.c

Re: [libvirt PATCH v2] qemu: add runtime config option for nbdkit

2023-11-21 Thread Andrea Bolognani
+return false; This does the right thing if nbdkit support is compiled in but disabled at the configuration file level. However, what about the opposite scenario, where someone tries to enable nbdkit in the configuration file but it's not been compiled in? We'd be silentl

[libvirt PATCH] security: drop virSecurityDACRestoreImageLabelSingle()

2023-11-21 Thread Andrea Bolognani
It only has a single, trivial caller. Signed-off-by: Andrea Bolognani --- src/security/security_dac.c | 21 - 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/src/security/security_dac.c b/src/security/security_dac.c index c07e488db7..35b9b56c66 100644 --- a

[libvirt PATCH] rpm: Drop rpcgen Build-Requires once again

2023-11-28 Thread Andrea Bolognani
We no longer use it, so commit a62486b95fee correctly dropped the Build-Requires; shortly afterwards, however, I accidentally re-introduced it by mistake. Fixes: 3df8cc658ed0ac2f84089ad0db61ba20eb8b8aa7 Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 1 - 1 file changed, 1 deletion

Re: [PATCH 2/2] Report better error message in remoteGetUNIXSocket

2023-11-29 Thread Andrea Bolognani
ccess.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/deploying_web_servers_and_reverse_proxies/setting-apache-http-server_deploying-web-servers-and-reverse-proxies#setting-up-a-single-instance-apache-http-server_setting-apache-http-server [2] https://src.fedoraproject.org/rpms/fedora-release/p

[libvirt PATCH 0/5] rpcgen: Fix test coverage

2023-11-29 Thread Andrea Bolognani
rated. I haven't looked into that failure at all, but it looks like something that we might want to fix before 9.10.0 is released? libvirt itself seems to build fine, so perhaps it's just the test suite that needs fixing. I leave the call to people who are more familiar with the rpcgen situa

[libvirt PATCH 1/5] rpcgen: Don't skip all tests when pytest is missing

2023-11-29 Thread Andrea Bolognani
Some of the files used by test_demo.c can only be regenerated when pytest is present, but we have pre-generated copies in the repository, so overall we just need the C compiler to build and run that specific test program. Signed-off-by: Andrea Bolognani --- scripts/rpcgen/meson.build | 3 +-- 1

[libvirt PATCH 3/5] rpcgen: Skip tests if tests are disabled

2023-11-29 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- scripts/rpcgen/meson.build | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/scripts/rpcgen/meson.build b/scripts/rpcgen/meson.build index d8d0e03784..9e766a2a37 100644 --- a/scripts/rpcgen/meson.build +++ b/scripts

[libvirt PATCH 2/5] rpcgen: Organize meson tests into suites

2023-11-29 Thread Andrea Bolognani
These are currently the only tests that are not part of any suite. Signed-off-by: Andrea Bolognani --- scripts/rpcgen/meson.build | 1 + scripts/rpcgen/tests/meson.build | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/rpcgen/meson.build b/scripts/rpcgen/meson.build index

[libvirt PATCH 4/5] rpcgen: Reformat meson files

2023-11-29 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- scripts/rpcgen/meson.build| 16 scripts/rpcgen/rpcgen/meson.build | 10 +- scripts/rpcgen/tests/meson.build | 30 +++--- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/scripts/rpcgen

[libvirt PATCH 5/5] ci: Refresh generated files

2023-11-29 Thread Andrea Bolognani
This adds pytest everywhere. Signed-off-by: Andrea Bolognani --- ci/buildenv/almalinux-8.sh| 1 + ci/buildenv/alpine-317.sh | 1 + ci/buildenv/alpine-edge.sh| 1 + ci/buildenv/centos-stream-8.sh

Re: [libvirt PATCH 0/5] rpcgen: Fix test coverage

2023-11-29 Thread Andrea Bolognani
On Wed, Nov 29, 2023 at 06:18:27PM +0100, Andrea Bolognani wrote: > Right now we don't have pytest installed in any of the CI build > environments, and tests are only executed when pytest is present, so > the test coverage is exactly zero. > > This series changes things so that

Re: [PATCH 2/2] Report better error message in remoteGetUNIXSocket

2023-11-29 Thread Andrea Bolognani
On Wed, Nov 29, 2023 at 10:49:23AM +, Richard W.M. Jones wrote: > On Wed, Nov 29, 2023 at 05:44:59AM -0500, Andrea Bolognani wrote: > > On Wed, Nov 29, 2023 at 10:09:36AM +, Richard W.M. Jones wrote: > > > Why is it exactly that the socket doesn't work after insta

[libvirt PATCH] rpcgen: Pass 3 arguments to xdrproc_t calls

2023-11-30 Thread Andrea Bolognani
here. Signed-off-by: Andrea Bolognani --- scripts/rpcgen/tests/test_demo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/rpcgen/tests/test_demo.c b/scripts/rpcgen/tests/test_demo.c index a48ceccd58..931f25f982 100644 --- a/scripts/rpcgen/tests/test_demo.c +

Re: [libvirt PATCH] scripts/rpcgen: fix 64 unsigned int test on macOS

2023-11-30 Thread Andrea Bolognani
IUC demo.{c,h} are generated from demo.x, so wouldn't this be overwritten the next time we regenerate them? Also both Linux and macOS have xdr_u_int64_t, and we already seem to use the u_ variant for other things (u_short, u_int), so couldn't we just use xdr_u_int64_t eve

Re: [libvirt PATCH 0/5] rpcgen: Fix test coverage

2023-11-30 Thread Andrea Bolognani
On Thu, Nov 30, 2023 at 09:24:45AM +, Daniel P. Berrangé wrote: > On Wed, Nov 29, 2023 at 06:18:27PM +0100, Andrea Bolognani wrote: > > Right now we don't have pytest installed in any of the CI build > > environments, and tests are only executed when pytest is present, so &

Re: [PATCH 2/2] Report better error message in remoteGetUNIXSocket

2023-11-30 Thread Andrea Bolognani
On Thu, Nov 30, 2023 at 09:40:47AM +0100, Martin Kletzander wrote: > On Wed, Nov 29, 2023 at 12:30:19PM -0600, Andrea Bolognani wrote: > > On Wed, Nov 29, 2023 at 10:49:23AM +, Richard W.M. Jones wrote: > > > On Wed, Nov 29, 2023 at 05:44:59AM -0500, Andrea Bolognani wrote

Re: [libvirt PATCH] scripts/rpcgen: fix 64 unsigned int test on macOS

2023-11-30 Thread Andrea Bolognani
On Thu, Nov 30, 2023 at 11:40:17AM +, Daniel P. Berrangé wrote: > On Thu, Nov 30, 2023 at 05:17:09AM -0500, Andrea Bolognani wrote: > > On Thu, Nov 30, 2023 at 09:24:15AM +, Daniel P. Berrangé wrote: > > > +++ b/scripts/rpcgen/tests/demo.c > > > +#ifde

Re: [libvirt PATCH v2] scripts/rpcgen: fix 64 unsigned int test on macOS

2023-11-30 Thread Andrea Bolognani
eding uint64_t anywhere in our RPC protocol. As a short-term solution, it's fine :) Reviewed-by: Andrea Bolognani -- Andrea Bolognani / Red Hat / Virtualization ___ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-le...@lists.libvirt.org

Re: [libvirt PATCH v2] scripts/rpcgen: fix 64 unsigned int test on macOS

2023-11-30 Thread Andrea Bolognani
On Thu, Nov 30, 2023 at 09:30:28AM -0500, Andrea Bolognani wrote: > On Thu, Nov 30, 2023 at 02:07:55PM +, Daniel P. Berrangé wrote: > > +++ b/scripts/rpcgen/tests/test_demo.c > > @@ -3,6 +3,10 @@ > > #include > > #include > > > > +#ifdef __APPLE__ &

Re: [libvirt PATCH v2] scripts/rpcgen: fix 64 unsigned int test on macOS

2023-11-30 Thread Andrea Bolognani
On Thu, Nov 30, 2023 at 04:10:00PM +0100, Michal Prívozník wrote: > On 11/30/23 16:05, Andrea Bolognani wrote: > > On Thu, Nov 30, 2023 at 09:30:28AM -0500, Andrea Bolognani wrote: > >> On Thu, Nov 30, 2023 at 02:07:55PM +, Daniel P. Berrangé wrote: > >>> +++ b/sc

Re: [libvirt PATCH v2] scripts/rpcgen: fix 64 unsigned int test on macOS

2023-11-30 Thread Andrea Bolognani
On Thu, Nov 30, 2023 at 03:17:10PM +, Daniel P. Berrangé wrote: > On Thu, Nov 30, 2023 at 04:10:00PM +0100, Michal Prívozník wrote: > > On 11/30/23 16:05, Andrea Bolognani wrote: > > > On Thu, Nov 30, 2023 at 09:30:28AM -0500, Andrea Bolognani wrote: > > >> On T

[libvirt PATCH 0/1] rpcgen: Skip generator tests on macOS

2023-11-30 Thread Andrea Bolognani
Based on: https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/GLJL2PBMYTKKJVFXRZ4AEWY6LZCNTBF2/ Test pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1091405064 Since we're supposed to tag 9.10.0 tomorrow, go for the quick and dirty workaround. Andrea Bologna

[libvirt PATCH 1/1] rpcgen: Skip generator tests on macOS

2023-11-30 Thread Andrea Bolognani
e git repository. In the long run, we need to find a better way to handle this, but since 9.10.0 is going to be released very soon and we don't want it to have a broken test suite on macOS, simply skip the generator tests on that platform for now. Signed-off-by: Andrea Bolognani --- scri

Re: [libvirt PATCH v2] scripts/rpcgen: fix 64 unsigned int test on macOS

2023-11-30 Thread Andrea Bolognani
On Thu, Nov 30, 2023 at 10:27:34AM -0500, Andrea Bolognani wrote: > > > > > As a short-term solution, it's fine :) > > > > > > > > Never mind, this very obviously doesn't pass muster: > > > > > > > > E AssertionError:

Re: [libvirt PATCH 1/1] rpcgen: Skip generator tests on macOS

2023-12-01 Thread Andrea Bolognani
On Fri, Dec 01, 2023 at 11:58:05AM +, Daniel P. Berrangé wrote: > On Thu, Nov 30, 2023 at 08:29:55PM +0100, Andrea Bolognani wrote: > > The generator can produce different code on Linux and macOS: > > specifically, on the former we want to use xdr_uint64_t while >

[PATCH] NEWS: Fix vertical spacing

2023-12-01 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- Pushed as trivial. NEWS.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS.rst b/NEWS.rst index 29b977565b..c0a6d180a2 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -89,6 +89,7 @@ v9.9.0 (2023-11-01) The ``virsh create --console

[PATCH] NEWS: Fix indentation

2023-12-01 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- Pushed as trivial. NEWS.rst | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/NEWS.rst b/NEWS.rst index c0a6d180a2..dc40602c72 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -176,10 +176,10 @@ v9.6.0 (2023

[PATCH] gitpublish: Tweak prefix

2023-12-01 Thread Andrea Bolognani
Having the name of the project as part of the prefix was useful back when we used the mailing list for all subprojects, but these days the only patches that are sent to the list are for the main library so it no longer makes sense to include this. Signed-off-by: Andrea Bolognani --- .gitpublish

[libvirt PATCH 2/9] meson: Stop looking for udevadm at build time

2023-12-01 Thread Andrea Bolognani
We only use it at runtime, not during the build process. Signed-off-by: Andrea Bolognani --- meson.build| 1 - src/util/virutil.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5fb827cca8..fdff8dcb97 100644 --- a/meson.build +++ b

[libvirt PATCH 3/9] meson: Stop looking for scrub at build time

2023-12-01 Thread Andrea Bolognani
We only use it at runtime, not during the build process. Signed-off-by: Andrea Bolognani --- meson.build| 1 - src/storage/storage_util.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index fdff8dcb97..fa4062df2f 100644 --- a

[libvirt PATCH 4/9] meson: Stop looking for passt at build time

2023-12-01 Thread Andrea Bolognani
We only use it at runtime, not during the build process. Signed-off-by: Andrea Bolognani --- meson.build | 1 - src/qemu/qemu_passt.c | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index fa4062df2f..4d96b32e58 100644 --- a/meson.build

[libvirt PATCH 0/9] rpm: Tweak dependencies

2023-12-01 Thread Andrea Bolognani
Test pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1092535621 lcitool changes: https://gitlab.com/libvirt/libvirt-ci/-/merge_requests/447 Andrea Bolognani (9): rpm: Drop MinGW BuildRequires on libgcrypt/libgpg-error meson: Stop looking for udevadm at build time meson: Stop

[libvirt PATCH 5/9] rpm: Add Requires on scrub

2023-12-01 Thread Andrea Bolognani
We currently have a BuildDepends on it, which doesn't help ensuring that the tool is available at runtime, when the storage driver might need to spawn it. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvirt.spec.in b/libvirt.sp

[libvirt PATCH 6/9] rpm: Drop BuildDepends on scrub

2023-12-01 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 2 -- 1 file changed, 2 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 6f58ed3899..5a5adf86bc 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -408,8 +408,6 @@ BuildRequires: systemtap-sdt-devel BuildRequires: util

[libvirt PATCH 7/9] rpm: Drop BuildDepends on passt

2023-12-01 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 3 --- 1 file changed, 3 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 5a5adf86bc..1d0ec5073d 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -391,9 +391,6 @@ BuildRequires: libssh2-devel >= 1.3.0 %en

  1   2   3   4   5   6   7   >