Skip to contentSkip to conversation

Fix win32/msys2 shader compilation & drop perl

PATCH Superseded [email protected] 5 participants 13 messages Jan 9, 2023 Arm/Amlogic Meson SoC support

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover Fix win32/msys2 shader compilation & drop perl

From: Marc-André Lureau <[email protected]>

Hi,

Fix the shader compilation error on win32/msys2 and convert the related script from perl to python.

v2:
- add a few patches to drop perl from the build dependencies
- add some tags for v1 patches
- add copyright header to the python script

Marc-André Lureau (5):
build-sys: fix crlf-ending C code
.gitlab-ci.d/windows: do not disable opengl
configure: replace Perl usage with sed
meson: replace Perl usage with Python
Draft: Update lcitool

 configure                                     |  8 +++---
 meson.build                                   |  2 +-
 .gitlab-ci.d/cirrus/freebsd-12.vars           |  2 +-
 .gitlab-ci.d/cirrus/freebsd-13.vars           |  2 +-
 .gitlab-ci.d/cirrus/macos-12.vars             |  2 +-
 .gitlab-ci.d/windows.yml                      |  5 ++--
 scripts/ci/setup/build-environment.yml        |  1 -
 scripts/shaderinclude.pl                      | 16 ------------
 scripts/shaderinclude.py                      | 26 +++++++++++++++++++
 tests/docker/dockerfiles/alpine.docker        |  1 -
 tests/docker/dockerfiles/centos8.docker       |  1 -
 .../dockerfiles/debian-amd64-cross.docker     |  1 -
 tests/docker/dockerfiles/debian-amd64.docker  |  1 -
 .../dockerfiles/debian-arm64-cross.docker     |  1 -
 .../dockerfiles/debian-armel-cross.docker     |  1 -
 .../dockerfiles/debian-armhf-cross.docker     |  1 -
 .../dockerfiles/debian-mips64el-cross.docker  |  1 -
 .../dockerfiles/debian-mipsel-cross.docker    |  1 -
 .../dockerfiles/debian-ppc64el-cross.docker   |  1 -
 .../dockerfiles/debian-s390x-cross.docker     |  1 -
 .../dockerfiles/debian-tricore-cross.docker   |  1 -
 .../dockerfiles/fedora-win32-cross.docker     |  5 ++--
 .../dockerfiles/fedora-win64-cross.docker     |  5 ++--
 tests/docker/dockerfiles/fedora.docker        |  5 ++--
 tests/docker/dockerfiles/opensuse-leap.docker |  1 -
 tests/docker/dockerfiles/ubuntu2004.docker    |  1 -
 tests/lcitool/libvirt-ci                      |  2 +-
 tests/lcitool/projects/qemu.yml               |  1 -
 tests/lcitool/refresh                         |  6 ++---
 tests/qapi-schema/meson.build                 |  7 ++---
 tests/vm/centos.aarch64                       |  2 +-
 31 files changed, 50 insertions(+), 61 deletions(-)
 delete mode 100644 scripts/shaderinclude.pl
 create mode 100755 scripts/shaderinclude.py
Signature · 1 line
2.39.0
#1 lore raw

PATCH v2 1/5 build-sys: fix crlf-ending C code

From: Marc-André Lureau <[email protected]>

On msys2, the shader-to-C script produces bad C:
./ui/shader/texture-blit-vert.h:2:5: error: missing terminating " character [-Werror]

Fix it by changing the line ending from crlf to lf, and convert the script to Python (qemu build seems perl-free after that).

---
 meson.build              |  2 +-
 scripts/shaderinclude.pl | 16 ----------------
 scripts/shaderinclude.py | 26 ++++++++++++++++++++++++++
 3 files changed, 27 insertions(+), 17 deletions(-)
 delete mode 100644 scripts/shaderinclude.pl
 create mode 100755 scripts/shaderinclude.py
meson.build +1 -1
index 175517eafd..b3c6db8343 100644
@@ -2781,7 +2781,7 @@ config_host_data.set('CONFIG_SLIRP', slirp.found())
 genh += configure_file(output: 'config-host.h', configuration: config_host_data)
 
 hxtool = find_program('scripts/hxtool')
-shaderinclude = find_program('scripts/shaderinclude.pl')
+shaderinclude = find_program('scripts/shaderinclude.py')
 qapi_gen = find_program('scripts/qapi-gen.py')
 qapi_gen_depends = [ meson.current_source_dir() / 'scripts/qapi/__init__.py',
                      meson.current_source_dir() / 'scripts/qapi/commands.py',
scripts/shaderinclude.pl deleted +0 -16
deleted file mode 100644
index cd3bb40b12..0000000000
@@ -1,16 +0,0 @@
-#!/usr/bin/env perl
-use strict;
-use warnings;
-
-my $file = shift;
-open FILE, "<", $file or die "open $file: $!";
-my $name = $file;
-$name =~ s|.*/||;
-$name =~ s/[-.]/_/g;
-print "static GLchar ${name}_src[] =\n";
-while (<FILE>) {
-    chomp;
-    printf "    \"%s\\n\"\n", $_;
-}
-print "    \"\\n\";\n";
-close FILE;
scripts/shaderinclude.py new file +26 -0
new file mode 100755
index 0000000000..ab2aade2cd
@@ -0,0 +1,26 @@
+#!/usr/bin/env python3
+#
+# Copyright (C) 2023 Red Hat, Inc.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+import sys
+import os
+
+
+def main(args):
+    file_path = args[1]
+    basename = os.path.basename(file_path)
+    varname = basename.replace('-', '_').replace('.', '_')
+
+    with os.fdopen(sys.stdout.fileno(), "wt", closefd=False, newline='\n') as stdout:
+        with open(file_path, "r", encoding='utf-8') as file:
+            print(f'static GLchar {varname}_src[] =', file=stdout)
+            for line in file:
+                line = line.rstrip()
+                print(f'    "{line}\\n"', file=stdout)
+            print('    "\\n";', file=stdout)
+
+
+if __name__ == '__main__':
+    sys.exit(main(sys.argv))
Signature · 1 line
2.39.0
#2 lore raw

Re: [PATCH v2 1/5] build-sys: fix crlf-ending C code

Quoted 66 lines · On Mon, Jan 9, 2023 at 1:14 PM <[email protected]> wrote:

From: Marc-André Lureau <[email protected]>

On msys2, the shader-to-C script produces bad C:
./ui/shader/texture-blit-vert.h:2:5: error: missing terminating " character [-Werror]

Fix it by changing the line ending from crlf to lf, and convert the script to Python (qemu build seems perl-free after that).

---
 meson.build              |  2 +-
 scripts/shaderinclude.pl | 16 ----------------
 scripts/shaderinclude.py | 26 ++++++++++++++++++++++++++
 3 files changed, 27 insertions(+), 17 deletions(-)
 delete mode 100644 scripts/shaderinclude.pl
 create mode 100755 scripts/shaderinclude.py
meson.build +1 -1
index 175517eafd..b3c6db8343 100644
@@ -2781,7 +2781,7 @@ config_host_data.set('CONFIG_SLIRP', slirp.found())
 genh += configure_file(output: 'config-host.h', configuration: config_host_data)
 
 hxtool = find_program('scripts/hxtool')
-shaderinclude = find_program('scripts/shaderinclude.pl')
+shaderinclude = find_program('scripts/shaderinclude.py')
 qapi_gen = find_program('scripts/qapi-gen.py')
 qapi_gen_depends = [ meson.current_source_dir() / 'scripts/qapi/__init__.py',
                      meson.current_source_dir() / 'scripts/qapi/commands.py',
scripts/shaderinclude.pl deleted +0 -16
deleted file mode 100644
index cd3bb40b12..0000000000
@@ -1,16 +0,0 @@
-#!/usr/bin/env perl
-use strict;
-use warnings;
-
-my $file = shift;
-open FILE, "<", $file or die "open $file: $!";
-my $name = $file;
-$name =~ s|.*/||;
-$name =~ s/[-.]/_/g;
-print "static GLchar ${name}_src[] =\n";
-while (<FILE>) {
-    chomp;
-    printf "    \"%s\\n\"\n", $_;
-}
-print "    \"\\n\";\n";
-close FILE;
scripts/shaderinclude.py new file +6 -0
new file mode 100755
index 0000000000..ab2aade2cd
@@ -0,0 +1,26 @@
+#!/usr/bin/env python3
+#
+# Copyright (C) 2023 Red Hat, Inc.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+

scripts/shaderinclude.py line 16

Quoted 10 lines
scripts/shaderinclude.py new file +10 -0
+import sys
+import os
+
+
+def main(args):
+    file_path = args[1]
+    basename = os.path.basename(file_path)
+    varname = basename.replace('-', '_').replace('.', '_')
+
+    with os.fdopen(sys.stdout.fileno(), "wt", closefd=False, newline='\n') as stdout:

fancy ~

Quoted 11 lines
scripts/shaderinclude.py new file +10 -1
+        with open(file_path, "r", encoding='utf-8') as file:
+            print(f'static GLchar {varname}_src[] =', file=stdout)
+            for line in file:
+                line = line.rstrip()
+                print(f'    "{line}\\n"', file=stdout)
+            print('    "\\n";', file=stdout)
+
+
+if __name__ == '__main__':
+    sys.exit(main(sys.argv))
--
Quoted 2 lines

2.39.0

ACK on the Python.

--js

#3 lore raw

PATCH v2 2/5 .gitlab-ci.d/windows: do not disable opengl

In reply to [email protected]

From: Marc-André Lureau <[email protected]>

The previous patch should fix shader compilation.

---
 .gitlab-ci.d/windows.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
.gitlab-ci.d/windows.yml +2 -3
index 22f794e537..5e59a7cc96 100644
@@ -71,7 +71,7 @@ msys2-64bit:
   # for the msys2 64-bit job, due to the build could not complete within
   # the project timeout.
   - ..\msys64\usr\bin\bash -lc '../configure --target-list=x86_64-softmmu
-      --without-default-devices --disable-opengl'
+      --without-default-devices'
   - ..\msys64\usr\bin\bash -lc 'make'
   # qTests don't run successfully with "--without-default-devices",
   # so let's exclude the qtests from CI for now.
@@ -113,7 +113,6 @@ msys2-32bit:
   - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
   - mkdir output
   - cd output
-  - ..\msys64\usr\bin\bash -lc '../configure --target-list=ppc64-softmmu
-        --disable-opengl'
+  - ..\msys64\usr\bin\bash -lc '../configure --target-list=ppc64-softmmu'
   - ..\msys64\usr\bin\bash -lc 'make'
   - ..\msys64\usr\bin\bash -lc 'make check || { cat meson-logs/testlog.txt; exit 1; } ;'
Signature · 1 line
2.39.0
#4 lore raw

PATCH v2 3/5 configure: replace Perl usage with sed

In reply to [email protected]

From: Marc-André Lureau <[email protected]>

Let's try to reduce our Perl usage during config/build-time.

Note: this patch might be dropped if "configure: remove backwards-compatibility code" is merged earlier.

---
 configure | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
configure +3 -5
index 2281892657..e45acde404 100755
@@ -2571,11 +2571,9 @@ else
   if test -f meson-private/cmd_line.txt; then
     # Adjust old command line options whose type was changed
     # Avoids having to use "setup --wipe" when Meson is upgraded
-    perl -i -ne '
-      s/^gettext = true$/gettext = auto/;
-      s/^gettext = false$/gettext = disabled/;
-      /^b_staticpic/ && next;
-      print;' meson-private/cmd_line.txt
+    sed -i.bak 's/^gettext = true/gettext = auto/g' -e \
+      's/^gettext = false/gettext = disabled/g' -e \
+      '/^b_staticpic/d' meson-private/cmd_line.txt
   fi
 fi
 
Signature · 1 line
2.39.0
#5 lore raw

Re: [PATCH v2 3/5] configure: replace Perl usage with sed

Quoted 19 lines · On Mon, 9 Jan 2023 at 18:16, <[email protected]> wrote:

From: Marc-André Lureau <[email protected]>

Let's try to reduce our Perl usage during config/build-time.

Note: this patch might be dropped if "configure: remove backwards-compatibility code" is merged earlier.

---
 configure | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
configure +0 -0
index 2281892657..e45acde404 100755
@@ -2571,11 +2571,9 @@ else
   if test -f meson-private/cmd_line.txt; then

configure else · line 2576

Quoted 10 lines
configure +3 -5
     # Adjust old command line options whose type was changed
     # Avoids having to use "setup --wipe" when Meson is upgraded
-    perl -i -ne '
-      s/^gettext = true$/gettext = auto/;
-      s/^gettext = false$/gettext = disabled/;
-      /^b_staticpic/ && next;
-      print;' meson-private/cmd_line.txt
+    sed -i.bak 's/^gettext = true/gettext = auto/g' -e \
+      's/^gettext = false/gettext = disabled/g' -e \
+      '/^b_staticpic/d' meson-private/cmd_line.txt

This doesn't work on macos sed, because POSIX sed allows

sed command file
or
sed -e command -e command file
but not
sed command -e command file

The fix is easy, prefix the first command with '-e'.

-i is not POSIX sed, but luckily the BSD sed implements it.

The two gettext matches have lost the trailing '$' in the regex.

thanks
-- PMM

#6 lore raw

PATCH v2 4/5 meson: replace Perl usage with Python

In reply to [email protected]

From: Marc-André Lureau <[email protected]>

Let's try to remove Perl usage during build time.

---
 tests/qapi-schema/meson.build | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tests/qapi-schema/meson.build +4 -3
index 9dfe98bc9a..d85b14f28c 100644
@@ -259,22 +259,23 @@ if build_docs
   # Fix possible inconsistency in line endings in generated output and
   # in the golden reference (which could otherwise cause test failures
   # on Windows hosts). Unfortunately diff --strip-trailing-cr
-  # is GNU-diff only. The odd-looking perl is because we must avoid
+  # is GNU-diff only. The odd-looking python is because we must avoid
   # using an explicit '\' character in the command arguments to
   # a custom_target(), as Meson will unhelpfully replace it with a '/'
   # (https://github.com/mesonbuild/meson/issues/1564)
+  remove_cr = [python, '-c', 'import sys;[sys.stdout.write(line.replace(chr(13), "")) for line in sys.stdin]']
   qapi_doc_out_nocr = custom_target('QAPI rST doc newline-sanitized',
                                     output: ['doc-good.txt.nocr'],
                                     input: qapi_doc_out[0],
                                     build_by_default: true,
-                                    command: ['perl', '-pe', '$x = chr 13; s/$x$//', '@INPUT@'],
+                                    command: [remove_cr, '@INPUT@'],
                                     capture: true)
 
   qapi_doc_ref_nocr = custom_target('QAPI rST doc reference newline-sanitized',
                                     output: ['doc-good.ref.nocr'],
                                     input: files('doc-good.txt'),
                                     build_by_default: true,
-                                    command: ['perl', '-pe', '$x = chr 13; s/$x$//', '@INPUT@'],
+                                    command: [remove_cr, '@INPUT@'],
                                     capture: true)
 
   test('QAPI rST doc', diff, args: ['-u', qapi_doc_ref_nocr[0], qapi_doc_out_nocr[0]],
Signature · 1 line
2.39.0
#7 lore raw

Re: [PATCH v2 4/5] meson: replace Perl usage with Python

Quoted 15 lines · On Mon, 9 Jan 2023 at 18:16, <[email protected]> wrote:

From: Marc-André Lureau <[email protected]>

Let's try to remove Perl usage during build time.

---
 tests/qapi-schema/meson.build | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tests/qapi-schema/meson.build +0 -0
index 9dfe98bc9a..d85b14f28c 100644

tests/qapi-schema/meson.build if build_docs · line 265

Quoted 8 lines
tests/qapi-schema/meson.build +1 -1
@@ -259,22 +259,23 @@ if build_docs
   # Fix possible inconsistency in line endings in generated output and
   # in the golden reference (which could otherwise cause test failures
   # on Windows hosts). Unfortunately diff --strip-trailing-cr
-  # is GNU-diff only. The odd-looking perl is because we must avoid
+  # is GNU-diff only. The odd-looking python is because we must avoid
   # using an explicit '\' character in the command arguments to
   # a custom_target(), as Meson will unhelpfully replace it with a '/'
   # (https://github.com/mesonbuild/meson/issues/1564)

This comment is not applicable to your Python rewrite of this. It's talking about the way that the Perl code has to create a variable with a '\r' value in a weird way (using "$x = chr 13") and then do a substitution using that variable, rather than the obvious direct s// command ("s/\r//"), to work around a meson bug if the code has a literal \ character in it. Your python has no '\'s in it.

Quoted 19 lines
tests/qapi-schema/meson.build +3 -3
+  remove_cr = [python, '-c', 'import sys;[sys.stdout.write(line.replace(chr(13), "")) for line in sys.stdin]']
   qapi_doc_out_nocr = custom_target('QAPI rST doc newline-sanitized',
                                     output: ['doc-good.txt.nocr'],
                                     input: qapi_doc_out[0],
                                     build_by_default: true,
-                                    command: ['perl', '-pe', '$x = chr 13; s/$x$//', '@INPUT@'],
+                                    command: [remove_cr, '@INPUT@'],
                                     capture: true)
 
   qapi_doc_ref_nocr = custom_target('QAPI rST doc reference newline-sanitized',
                                     output: ['doc-good.ref.nocr'],
                                     input: files('doc-good.txt'),
                                     build_by_default: true,
-                                    command: ['perl', '-pe', '$x = chr 13; s/$x$//', '@INPUT@'],
+                                    command: [remove_cr, '@INPUT@'],
                                     capture: true)
 
   test('QAPI rST doc', diff, args: ['-u', qapi_doc_ref_nocr[0], qapi_doc_out_nocr[0]],
--
Quoted 1 line

2.39.0

Maybe we should consider putting the Python into a script in scripts/ ? "Remove \r characters" is pretty trivial, but on the other hand I think this is the only Meson custom_target() we have where we directly invoke a script interpreter with a bit of inline script, and inline bits of script doesn't really seem to be a style Meson encourages (unlike Make).

thanks
-- PMM

#8 lore raw

Re: [PATCH v2 4/5] meson: replace Perl usage with Python

Hi

Quoted 12 lines · Peter Maydell
Quoted 10 lines · On Mon, 9 Jan 2023 at 18:16, <[email protected]> wrote:

From: Marc-André Lureau <[email protected]>

Let's try to remove Perl usage during build time.

---
 tests/qapi-schema/meson.build | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Quoted 15 lines

tests/qapi-schema/meson.build if build_docs · line 265

Quoted 13 lines
tests/qapi-schema/meson.build +1 -1
index 9dfe98bc9a..d85b14f28c 100644
@@ -259,22 +259,23 @@ if build_docs
   # Fix possible inconsistency in line endings in generated output and
   # in the golden reference (which could otherwise cause test failures
   # on Windows hosts). Unfortunately diff --strip-trailing-cr
-  # is GNU-diff only. The odd-looking perl is because we must avoid
+  # is GNU-diff only. The odd-looking python is because we must avoid
   # using an explicit '\' character in the command arguments to
   # a custom_target(), as Meson will unhelpfully replace it with a '/'
   # (https://github.com/mesonbuild/meson/issues/1564)

This comment is not applicable to your Python rewrite of this.

To my interpretation, the comment still applies. I would have written a much simpler sed invocation if we were allowed to use backslashes.

Quoted 27 lines

It's talking about the way that the Perl code has to create a variable with a '\r' value in a weird way (using "$x = chr 13") and then do a substitution using that variable, rather than the obvious direct s// command ("s/\r//"), to work around a meson bug if the code has a literal \ character in it. Your python has no '\'s in it.

Quoted 19 lines
tests/qapi-schema/meson.build +3 -3
+  remove_cr = [python, '-c', 'import sys;[sys.stdout.write(line.replace(chr(13), "")) for line in sys.stdin]']
   qapi_doc_out_nocr = custom_target('QAPI rST doc newline-sanitized',
                                     output: ['doc-good.txt.nocr'],
                                     input: qapi_doc_out[0],
                                     build_by_default: true,
-                                    command: ['perl', '-pe', '$x = chr 13; s/$x$//', '@INPUT@'],
+                                    command: [remove_cr, '@INPUT@'],
                                     capture: true)
 
   qapi_doc_ref_nocr = custom_target('QAPI rST doc reference newline-sanitized',
                                     output: ['doc-good.ref.nocr'],
                                     input: files('doc-good.txt'),
                                     build_by_default: true,
-                                    command: ['perl', '-pe', '$x = chr 13; s/$x$//', '@INPUT@'],
+                                    command: [remove_cr, '@INPUT@'],
                                     capture: true)
 
   test('QAPI rST doc', diff, args: ['-u', qapi_doc_ref_nocr[0], qapi_doc_out_nocr[0]],
--
Quoted 1 line

2.39.0

Quoted 6 lines

Maybe we should consider putting the Python into a script in scripts/ ? "Remove \r characters" is pretty trivial, but on the other hand I think this is the only Meson custom_target() we have where we directly invoke a script interpreter with a bit of inline script, and inline bits of script doesn't really seem to be a style Meson encourages (unlike Make).

It's a quite simple one-liner, and I hope we can drop it when meson fix the mentionned bug. But I am fine putting it in a script, if that can help.

Signature · 1 line
Marc-André Lureau
#9 lore raw

PATCH v2 5/5 Draft: Update lcitool

In reply to [email protected]

From: Marc-André Lureau <[email protected]>

- Update to fedora-37
- Drop perl

Note: see https://gitlab.com/libvirt/libvirt-ci/-/merge_requests/344 merge status before merging with proper submodule sha1.

---
 .gitlab-ci.d/cirrus/freebsd-12.vars                   | 2 +-
 .gitlab-ci.d/cirrus/freebsd-13.vars                   | 2 +-
 .gitlab-ci.d/cirrus/macos-12.vars                     | 2 +-
 scripts/ci/setup/build-environment.yml                | 1 -
 tests/docker/dockerfiles/alpine.docker                | 1 -
 tests/docker/dockerfiles/centos8.docker               | 1 -
 tests/docker/dockerfiles/debian-amd64-cross.docker    | 1 -
 tests/docker/dockerfiles/debian-amd64.docker          | 1 -
 tests/docker/dockerfiles/debian-arm64-cross.docker    | 1 -
 tests/docker/dockerfiles/debian-armel-cross.docker    | 1 -
 tests/docker/dockerfiles/debian-armhf-cross.docker    | 1 -
 tests/docker/dockerfiles/debian-mips64el-cross.docker | 1 -
 tests/docker/dockerfiles/debian-mipsel-cross.docker   | 1 -
 tests/docker/dockerfiles/debian-ppc64el-cross.docker  | 1 -
 tests/docker/dockerfiles/debian-s390x-cross.docker    | 1 -
 tests/docker/dockerfiles/debian-tricore-cross.docker  | 1 -
 tests/docker/dockerfiles/fedora-win32-cross.docker    | 5 ++---
 tests/docker/dockerfiles/fedora-win64-cross.docker    | 5 ++---
 tests/docker/dockerfiles/fedora.docker                | 5 ++---
 tests/docker/dockerfiles/opensuse-leap.docker         | 1 -
 tests/docker/dockerfiles/ubuntu2004.docker            | 1 -
 tests/lcitool/libvirt-ci                              | 2 +-
 tests/lcitool/projects/qemu.yml                       | 1 -
 tests/lcitool/refresh                                 | 6 +++---
 tests/vm/centos.aarch64                               | 2 +-
 25 files changed, 14 insertions(+), 33 deletions(-)
.gitlab-ci.d/cirrus/freebsd-12.vars +1 -1
index e3fc3235b9..f32f01a954 100644
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake'
 NINJA='/usr/local/bin/ninja'
 PACKAGING_COMMAND='pkg'
 PIP3='/usr/local/bin/pip-3.8'
-PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv perl5 pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
+PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
 PYPI_PKGS=''
 PYTHON='/usr/local/bin/python3'
.gitlab-ci.d/cirrus/freebsd-13.vars +1 -1
index 9f56babd9c..813c051616 100644
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake'
 NINJA='/usr/local/bin/ninja'
 PACKAGING_COMMAND='pkg'
 PIP3='/usr/local/bin/pip-3.8'
-PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv perl5 pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
+PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
 PYPI_PKGS=''
 PYTHON='/usr/local/bin/python3'
.gitlab-ci.d/cirrus/macos-12.vars +1 -1
index ef9e14b373..33bb4e1040 100644
@@ -11,6 +11,6 @@ MAKE='/opt/homebrew/bin/gmake'
 NINJA='/opt/homebrew/bin/ninja'
 PACKAGING_COMMAND='brew'
 PIP3='/opt/homebrew/bin/pip3'
-PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson ncurses nettle ninja perl pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract texinfo usbredir vde vte3 zlib zstd'
+PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract texinfo usbredir vde vte3 zlib zstd'
 PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme'
 PYTHON='/opt/homebrew/bin/python3'
scripts/ci/setup/build-environment.yml +0 -1
index b04c2b7cee..58438008ee 100644
@@ -155,7 +155,6 @@
           - nettle-devel
           - ninja-build
           - nmap-ncat
-          - perl-Test-Harness
           - pixman-devel
           - python36
           - rdma-core-devel
tests/docker/dockerfiles/alpine.docker +0 -1
index 094f66f4eb..3293c790c9 100644
@@ -77,7 +77,6 @@ RUN apk update && \
         numactl-dev \
         openssh-client \
         pcre-dev \
-        perl \
         pixman-dev \
         pkgconf \
         pulseaudio-dev \
tests/docker/dockerfiles/centos8.docker +0 -1
index 1f70d41aeb..f13745e6cc 100644
@@ -91,7 +91,6 @@ RUN dnf distro-sync -y && \
         openssh-clients \
         pam-devel \
         pcre-static \
-        perl \
         pixman-devel \
         pkgconfig \
         pulseaudio-libs-devel \
tests/docker/dockerfiles/debian-amd64-cross.docker +0 -1
index 5e57309361..d0ace6d0f7 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-amd64.docker +0 -1
index bfeab01ee3..0517c4c315 100644
@@ -108,7 +108,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       nettle-dev \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-arm64-cross.docker +0 -1
index 98885bd0ee..9ac1c1ba3f 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-armel-cross.docker +0 -1
index d5c08714e4..8be492f4ad 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-armhf-cross.docker +0 -1
index 471444fcf4..da789e04af 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-mips64el-cross.docker +0 -1
index 15b0224b76..8b7c59c4f9 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-mipsel-cross.docker +0 -1
index a5d3ca6e2f..f9f1ed5fd2 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-ppc64el-cross.docker +0 -1
index d2954e61f6..e423d88c2d 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-s390x-cross.docker +0 -1
index d43ce16317..c1134f4cec 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-tricore-cross.docker +0 -1
index b573b9ded2..34b2cea4e3 100644
@@ -28,7 +28,6 @@ RUN apt update && \
        locales \
        make \
        ninja-build \
-       perl-base \
        pkgconf \
        python3-pip \
        python3-setuptools \
tests/docker/dockerfiles/fedora-win32-cross.docker +2 -3
index 75383ba185..de811b332b 100644
@@ -1,10 +1,10 @@
 # THIS FILE WAS AUTO-GENERATED
 #
-#  $ lcitool dockerfile --layers all --cross mingw32 fedora-35 qemu
+#  $ lcitool dockerfile --layers all --cross mingw32 fedora-37 qemu
 #
 # https://gitlab.com/libvirt/libvirt-ci
 
-FROM registry.fedoraproject.org/fedora:35
+FROM registry.fedoraproject.org/fedora:37
 
 RUN dnf install -y nosync && \
     echo -e '#!/bin/sh\n\
@@ -42,7 +42,6 @@ exec "$@"' > /usr/bin/nosync && \
                nmap-ncat \
                openssh-clients \
                pcre-static \
-               perl-base \
                python3 \
                python3-PyYAML \
                python3-numpy \
tests/docker/dockerfiles/fedora-win64-cross.docker +2 -3
index 98c03dc13b..71681d6f92 100644
@@ -1,10 +1,10 @@
 # THIS FILE WAS AUTO-GENERATED
 #
-#  $ lcitool dockerfile --layers all --cross mingw64 fedora-35 qemu
+#  $ lcitool dockerfile --layers all --cross mingw64 fedora-37 qemu
 #
 # https://gitlab.com/libvirt/libvirt-ci
 
-FROM registry.fedoraproject.org/fedora:35
+FROM registry.fedoraproject.org/fedora:37
 
 RUN dnf install -y nosync && \
     echo -e '#!/bin/sh\n\
@@ -42,7 +42,6 @@ exec "$@"' > /usr/bin/nosync && \
                nmap-ncat \
                openssh-clients \
                pcre-static \
-               perl-base \
                python3 \
                python3-PyYAML \
                python3-numpy \
tests/docker/dockerfiles/fedora.docker +2 -3
index d200c7fc10..ca3793b04b 100644
@@ -1,10 +1,10 @@
 # THIS FILE WAS AUTO-GENERATED
 #
-#  $ lcitool dockerfile --layers all fedora-35 qemu
+#  $ lcitool dockerfile --layers all fedora-37 qemu
 #
 # https://gitlab.com/libvirt/libvirt-ci
 
-FROM registry.fedoraproject.org/fedora:35
+FROM registry.fedoraproject.org/fedora:37
 
 RUN dnf install -y nosync && \
     echo -e '#!/bin/sh\n\
@@ -98,7 +98,6 @@ exec "$@"' > /usr/bin/nosync && \
                openssh-clients \
                pam-devel \
                pcre-static \
-               perl-base \
                pixman-devel \
                pkgconfig \
                pulseaudio-libs-devel \
tests/docker/dockerfiles/opensuse-leap.docker +0 -1
index 4361b01464..680f49e7dc 100644
@@ -88,7 +88,6 @@ RUN zypper update -y && \
            openssh \
            pam-devel \
            pcre-devel-static \
-           perl-base \
            pkgconfig \
            python3-Pillow \
            python3-PyYAML \
tests/docker/dockerfiles/ubuntu2004.docker +0 -1
index 9417bca2fa..6594bba338 100644
@@ -105,7 +105,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       nettle-dev \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/lcitool/libvirt-ci +1 -1
index e3eb28cf2e..53f124b75d 160000
@@ -1 +1 @@
-Subproject commit e3eb28cf2e17fbcf7fe7e19505ee432b8ec5bbb5
+Subproject commit 53f124b75dc1314e310aa2ed775a9f7761a34ec8
tests/lcitool/projects/qemu.yml +0 -1
index c62dbc00f9..c2af92348a 100644
@@ -83,7 +83,6 @@ packages:
  - ncursesw
  - pam
  - pcre-static
- - perl
  - pixman
  - pkg-config
  - pulseaudio
tests/lcitool/refresh +3 -3
index fa966e4009..a5ea0efc3b 100755
@@ -111,7 +111,7 @@ try:
     generate_dockerfile("centos8", "centos-stream-8")
     generate_dockerfile("debian-amd64", "debian-11",
                         trailer="".join(debian11_extras))
-    generate_dockerfile("fedora", "fedora-35")
+    generate_dockerfile("fedora", "fedora-37")
     generate_dockerfile("opensuse-leap", "opensuse-leap-153")
     generate_dockerfile("ubuntu2004", "ubuntu-2004",
                         trailer="".join(ubuntu2004_tsanhack))
@@ -161,12 +161,12 @@ try:
                         trailer=cross_build("s390x-linux-gnu-",
                                             "s390x-softmmu,s390x-linux-user"))
 
-    generate_dockerfile("fedora-win32-cross", "fedora-35",
+    generate_dockerfile("fedora-win32-cross", "fedora-37",
                         cross="mingw32",
                         trailer=cross_build("i686-w64-mingw32-",
                                             "i386-softmmu"))
 
-    generate_dockerfile("fedora-win64-cross", "fedora-35",
+    generate_dockerfile("fedora-win64-cross", "fedora-37",
                         cross="mingw64",
                         trailer=cross_build("x86_64-w64-mingw32-",
                                             "x86_64-softmmu"))
tests/vm/centos.aarch64 +1 -1
index 2de7ef6992..3f58de1e64 100755
@@ -28,7 +28,7 @@ DEFAULT_CONFIG = {
         "dnf config-manager --set-enabled powertools, "
         "dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo, "
         "dnf install -y make ninja-build git python38 gcc gcc-c++ flex bison "\
-            "glib2-devel perl pixman-devel zlib-devel docker-ce.aarch64, "
+            "glib2-devel pixman-devel zlib-devel docker-ce.aarch64, "
         "systemctl enable docker, "
     ),
     # We increase beyond the default time since during boot
Signature · 1 line
2.39.0
#10 lore raw

Re: [PATCH v2 5/5] Draft: Update lcitool

Quoted 7 lines · On Mon, Jan 09, 2023 at 10:14:47PM +0400, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

- Update to fedora-37
- Drop perl

Note: see https://gitlab.com/libvirt/libvirt-ci/-/merge_requests/344 merge status before merging with proper submodule sha1.

There is no need to wait for that change. We don't use the qemu.yml file in lcitool.git, and it should be ignored. The one you changed in qemu.git is the canonical one

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#11 lore raw

Re: [PATCH v2 5/5] Draft: Update lcitool

Hi

Quoted 7 lines · Daniel P. Berrangé
Quoted 5 lines · On Mon, Jan 09, 2023 at 10:14:47PM +0400, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

- Update to fedora-37
- Drop perl

Quoted 7 lines
Quoted 2 lines

Note: see https://gitlab.com/libvirt/libvirt-ci/-/merge_requests/344 merge status before merging with proper submodule sha1.

There is no need to wait for that change. We don't use the qemu.yml file in lcitool.git, and it should be ignored. The one you changed in qemu.git is the canonical one

Ok, in that case we don't need to bump to fedora-37 either.

I'll drop the lcitool update, as I don't have a reason to do it now.

Signature · 1 line
Marc-André Lureau
#12 lore raw

Re: [PATCH v2 5/5] Draft: Update lcitool

Quoted 13 lines · Marc-André Lureau

Hi

Quoted 10 lines · Daniel P. Berrangé
Quoted 7 lines · On Mon, Jan 09, 2023 at 10:14:47PM +0400, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

- Update to fedora-37
- Drop perl

Note: see https://gitlab.com/libvirt/libvirt-ci/-/merge_requests/344 merge status before merging with proper submodule sha1.

Quoted 6 lines
Quoted 4 lines

There is no need to wait for that change. We don't use the qemu.yml file in lcitool.git, and it should be ignored. The one you changed in qemu.git is the canonical one

Ok, in that case we don't need to bump to fedora-37 either.

Fedora 35 is end of life, so isn't a platform targetted by QEMU any more. IOW we should bump to newer Fedora regardless, but it is independant of dropping perl.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|