Skip to contentSkip to conversation

tests/vm/freebsd: Install more feature libraries in the FreeBSD VM

PATCH In review Thomas Huth 2 participants 3 messages May 31, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/vm/freebsd: Install more feature libraries in the FreeBSD VM

The standalone freebsd VM image misses a lot of libraries compared to the image that we use in the Gitlab-CI (see the file .gitlab-ci.d/cirrus/freebsd-13.vars). Let's extend the list here and while we're at it, re-arrange the list in alphabetical order without the cumbersome grouping into categories.

---
 tests/vm/freebsd | 76 +++++++++++++++++++++++++++++-------------------
 1 file changed, 46 insertions(+), 30 deletions(-)
tests/vm/freebsd +46 -30
index 11de6473f4..8143637905 100755
@@ -32,43 +32,59 @@ class FreeBSDVM(basevm.BaseVM):
     csum = "a4fb3b6c7b75dd4d58fb0d75e4caf72844bffe0ca00e66459c028b198ffb3c0e"
     size = "20G"
     pkgs = [
-        # build tools
-        "git",
-        "pkgconf",
-        "bzip2",
-        "python39",
-        "ninja",
-
-        # gnu tools
+        "alsa-lib",
         "bash",
-        "gmake",
-        "gsed",
+        "bison",
+        "bzip2",
+        "capstone4",
+        "curl",
+        "cyrus-sasl",
+        "dbus",
+        "diffutils",
+        "dtc",
+        "flex",
+        "fusefs-libs3",
         "gettext",
-
-        # libs: crypto
+        "git",
+        "glib",
+        "gmake",
         "gnutls",
-
-        # libs: images
-        "jpeg-turbo",
-        "png",
-
-        # libs: ui
-        "sdl2",
+        "gsed",
         "gtk3",
-        "libxkbcommon",
-
-        # libs: opengl
         "libepoxy",
-        "mesa-libs",
-
-        # libs: migration
-        "zstd",
-
-        # libs: networking
+        "libffi",
+        "libgcrypt",
+        "libjpeg-turbo",
+        "libnfs",
         "libslirp",
-
-        # libs: sndio
+        "libspice-server",
+        "libssh",
+        "libtasn1",
+        "libxkbcommon",
+        "lzo2",
+        "mesa-libs",
+        "meson",
+        "ncurses",
+        "nettle",
+        "ninja",
+        "pixman",
+        "pkgconf",
+        "png",
+        "py39-pip",
+        "py39-sphinx",
+        "py39-sphinx_rtd_theme",
+        "py39-yaml",
+        "python3",
+        "sdl2",
+        "sdl2_image",
+        "snappy",
         "sndio",
+        "spice-protocol",
+        "usbredir",
+        "virglrenderer",
+        "vte3",
+        "xorriso",
+        "zstd",
     ]
 
     BUILD_SCRIPT = """
Signature · 1 line
2.31.1
#1 lore raw

Hi Thomas,

Quoted 93 lines · Thomas Huth

The standalone freebsd VM image misses a lot of libraries compared to the image that we use in the Gitlab-CI (see the file .gitlab-ci.d/cirrus/freebsd-13.vars). Let's extend the list here and while we're at it, re-arrange the list in alphabetical order without the cumbersome grouping into categories.

---
  tests/vm/freebsd | 76 +++++++++++++++++++++++++++++-------------------
  1 file changed, 46 insertions(+), 30 deletions(-)
tests/vm/freebsd +38 -30
index 11de6473f4..8143637905 100755
@@ -32,43 +32,59 @@ class FreeBSDVM(basevm.BaseVM):
      csum = "a4fb3b6c7b75dd4d58fb0d75e4caf72844bffe0ca00e66459c028b198ffb3c0e"
      size = "20G"
      pkgs = [
-        # build tools
-        "git",
-        "pkgconf",
-        "bzip2",
-        "python39",
-        "ninja",
-
-        # gnu tools
+        "alsa-lib",
          "bash",
-        "gmake",
-        "gsed",
+        "bison",
+        "bzip2",
+        "capstone4",
+        "curl",
+        "cyrus-sasl",
+        "dbus",
+        "diffutils",
+        "dtc",
+        "flex",
+        "fusefs-libs3",
          "gettext",
-
-        # libs: crypto
+        "git",
+        "glib",
+        "gmake",
          "gnutls",
-
-        # libs: images
-        "jpeg-turbo",
-        "png",
-
-        # libs: ui
-        "sdl2",
+        "gsed",
          "gtk3",
-        "libxkbcommon",
-
-        # libs: opengl
          "libepoxy",
-        "mesa-libs",
-
-        # libs: migration
-        "zstd",
-
-        # libs: networking
+        "libffi",
+        "libgcrypt",
+        "libjpeg-turbo",
+        "libnfs",
          "libslirp",
-
-        # libs: sndio
+        "libspice-server",
+        "libssh",
+        "libtasn1",
+        "libxkbcommon",
+        "lzo2",
+        "mesa-libs",
+        "meson",
+        "ncurses",
+        "nettle",
+        "ninja",
+        "pixman",
+        "pkgconf",
+        "png",
+        "py39-pip",
+        "py39-sphinx",
+        "py39-sphinx_rtd_theme",
+        "py39-yaml",
+        "python3",
+        "sdl2",

tests/vm/freebsd class FreeBSDVM(basevm.BaseVM): · line 88

Quoted 10 lines
tests/vm/freebsd +8 -0
+        "sdl2_image",
+        "snappy",
          "sndio",
+        "spice-protocol",
+        "usbredir",
+        "virglrenderer",
+        "vte3",
+        "xorriso",
+        "zstd",
      ]

What about directly filling pkgs[] from .gitlab-ci.d/cirrus/freebsd-13.vars's PKGS line? Quick & dirty example:

tests/vm/freebsd class FreeBSDVM(basevm.BaseVM): · line 89

Quoted 1 line
tests/vm/freebsd +0 -0
 >> list(filter(lambda y: y.startswith('PKGS'), open('.gitlab-ci.d/cirrus/freebsd-13.vars', 'r').readlines()))[0].split("'")[1].split()

['alsa-lib', 'bash', 'bison', 'bzip2', 'ca_root_nss', 'capstone4', 'ccache', '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', 'mtools', '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', 'socat', 'spice-protocol', 'tesseract', 'usbredir', 'virglrenderer', 'vte3', 'xorriso', 'zstd']

#2 lore raw
Quoted 109 lines · Philippe Mathieu-Daudé

Hi Thomas,

Quoted 95 lines · Thomas Huth

The standalone freebsd VM image misses a lot of libraries compared to the image that we use in the Gitlab-CI (see the file .gitlab-ci.d/cirrus/freebsd-13.vars). Let's extend the list here and while we're at it, re-arrange the list in alphabetical order without the cumbersome grouping into categories.

---
  tests/vm/freebsd | 76 +++++++++++++++++++++++++++++-------------------

  1 file changed, 46 insertions(+), 30 deletions(-)
tests/vm/freebsd +0 -0
index 11de6473f4..8143637905 100755
@@ -32,43 +32,59 @@ class FreeBSDVM(basevm.BaseVM):

      csum = "a4fb3b6c7b75dd4d58fb0d75e4caf72844bffe0ca00e66459c028b198ffb3c0e" size = "20G"
      pkgs = [
-        # build tools
-        "git",
-        "pkgconf",
-        "bzip2",
-        "python39",
-        "ninja",
-
-        # gnu tools
+        "alsa-lib",
          "bash",
-        "gmake",
-        "gsed",
+        "bison",
+        "bzip2",
+        "capstone4",
+        "curl",
+        "cyrus-sasl",
+        "dbus",
+        "diffutils",
+        "dtc",
+        "flex",
+        "fusefs-libs3",
          "gettext",
-
-        # libs: crypto
+        "git",
+        "glib",
+        "gmake",
          "gnutls",

tests/vm/freebsd +1 -7
-
-        # libs: images
-        "jpeg-turbo",
-        "png",
-
-        # libs: ui
-        "sdl2",
+        "gsed",

          "gtk3",
-        "libxkbcommon",
-
-        # libs: opengl
          "libepoxy",
-        "mesa-libs",

tests/vm/freebsd +4 -5
-
-        # libs: migration
-        "zstd",
-
-        # libs: networking
+        "libffi",
+        "libgcrypt",
+        "libjpeg-turbo",
+        "libnfs",

          "libslirp",
-
-        # libs: sndio
+        "libspice-server",
+        "libssh",
+        "libtasn1",
+        "libxkbcommon",
+        "lzo2",
+        "mesa-libs",
+        "meson",
+        "ncurses",
+        "nettle",
+        "ninja",
+        "pixman",
+        "pkgconf",
+        "png",
+        "py39-pip",
+        "py39-sphinx",
+        "py39-sphinx_rtd_theme",
+        "py39-yaml",
+        "python3",
+        "sdl2",
+        "sdl2_image",
+        "snappy",

Quoted 8 lines

          "sndio",
+        "spice-protocol",
+        "usbredir",
+        "virglrenderer",
+        "vte3",
+        "xorriso",
+        "zstd",
      ]

What about directly filling pkgs[] from .gitlab-ci.d/cirrus/freebsd-13.vars's PKGS line? Quick & dirty example:

Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

list(filter(lambda y: y.startswith('PKGS'),

open('.gitlab-ci.d/cirrus/freebsd-13.vars', 'r').readlines()))[0].split("'")[1].split()
['alsa-lib', 'bash', 'bison', 'bzip2', 'ca_root_nss', 'capstone4', 'ccache', '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', 'mtools', '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', 'socat', 'spice-protocol', 'tesseract', 'usbredir', 'virglrenderer', 'vte3', 'xorriso', 'zstd']

Sure, that's a good idea, too! Could you please send this as a proper patch?

Thomas