xserver: Branch 'master' - 2 commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Sep 6 00:16:41 UTC 2024


 .gitlab-ci.yml |   79 +++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 71 insertions(+), 8 deletions(-)

New commits:
commit 94998e3a1d040ac0c9ea5e414642bf79423923c5
Author: Enrico Weigelt, metux IT consult <info at metux.net>
Date:   Tue Mar 19 12:33:49 2024 +0100

    ci: add FreeBSD build
    
    Build the Xserver in FreeBSD VM.
    
    Signed-off-by: Enrico Weigelt, metux IT consult <info at metux.net>
    Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1425>

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 620f6aa4b..42273424a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,17 +16,22 @@
 # gcc/clang or other packages, which might break the build with older commits
 # using the same tag.
 variables:
-    FDO_UPSTREAM_REPO: xorg/xserver
-    FDO_DISTRIBUTION_VERSION: bullseye-slim
-    FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/debian-install.sh'
-    FDO_DISTRIBUTION_TAG: "2024-08-23-fix-cross"
-    MESON_BUILDDIR: "build"
+    FDO_UPSTREAM_REPO:    'xorg/xserver'
+    MESON_BUILDDIR:       'build'
+    REPO_URL_XORGPROTO:   'https://gitlab.freedesktop.org/xorg/proto/xorgproto.git'
+    XORG_DEBIAN_VERSION:  'bullseye-slim'
+    XORG_DEBIAN_EXEC:     'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/debian-install.sh'
+    XORG_DEBIAN_TAG:      '2024-08-23-fix-cross'
+    XORG_FREEBSD_VERSION: '14.0'
+    XORG_FREEBSD_EXEC:    ''
+    XORG_FREEBSD_TAG:     '2024-06-10.0'
 
 include:
   - project: 'freedesktop/ci-templates'
     ref: *template_sha
     file:
       - '/templates/debian.yml'
+      - '/templates/freebsd.yml'
       - '/templates/ci-fairy.yml'
   - template: Security/SAST.gitlab-ci.yml
 
@@ -93,17 +98,52 @@ stages:
 .all_ddx_paths:
   - hw/**/*
 
+.debian:
+  variables:
+    FDO_DISTRIBUTION_VERSION:   '$XORG_DEBIAN_VERSION'
+    FDO_DISTRIBUTION_EXEC:      '$XORG_DEBIAN_EXEC'
+    FDO_DISTRIBUTION_TAG:       '$XORG_DEBIAN_TAG'
+
+.freebsd:
+  variables:
+    FDO_DISTRIBUTION_TAG:       '$XORG_FREEBSD_TAG'
+    FDO_DISTRIBUTION_VERSION:   '$XORG_FREEBSD_VERSION'
+    FDO_DISTRIBUTION_EXEC:      ''
+    FDO_DISTRIBUTION_PACKAGES:  'git gcc pkgconf autoconf automake libtool xorg-macros xorgproto bash meson ninja pixman xtrans libXau libXdmcp libXfont2 libxkbfile libxcvt libpciaccess font-util libepoll-shim'
+
 debian-bullseye:
   extends:
     - .fdo.container-build at debian
     - .ci-run-policy
+    - .debian
   stage: docker-image
   variables:
     GIT_STRATEGY: none
 
-.common-build-and-test:
+freebsd-image:
+  extends:
+    - .fdo.qemu-build at freebsd@x86_64
+    - .freebsd
+  stage: docker-image
+  variables:
+    GIT_STRATEGY:               none
+
+.xorg-image at debian:
     extends:
         - .fdo.distribution-image at debian
+        - .debian
+
+.xorg-image at freebsd:
+    extends:
+        - .fdo.distribution-image at freebsd
+        - .freebsd
+    variables:
+        GIT_DEPTH:                1
+        PKG_CONFIG_PATH:          /usr/share/pkgconfig:/usr/lib/pkgconfig:/usr/pkg/share/pkgconfig:/usr/pkg/lib/pkgconfig:/usr/local/libdata/pkgconfig
+
+.common-build-and-test:
+    extends:
+        - .xorg-image at debian
         - .ci-run-policy
     stage: build-and-test
     artifacts:
@@ -153,6 +193,29 @@ mingw-cross-build:
     variables:
       MESON_ARGS: --cross-file=.gitlab-ci/cross-i686-w64-mingw32.txt -Dglx=false -Dlisten_tcp=true
 
+freebsd:
+    stage: build-and-test
+    extends:
+        - .xorg-image at freebsd
+    variables:
+        MESON_ARGS: -Dglx=false -Dglamor=false -Dudev=false -Dudev_kms=false
+    script:
+      # running of of disk space without this
+      # needed until https://gitlab.freedesktop.org/freedesktop/ci-templates/-/issues/67 is fixed
+      - git gc
+      - git clone --depth=1 $REPO_URL_XORGPROTO dep.xorgproto
+      - /app/vmctl start
+      - set +e
+      - scp -r $PWD "vm:"
+      # need to install newer xorgproto
+      - /app/vmctl exec "cd $CI_PROJECT_NAME/dep.xorgproto && ./autogen.sh --prefix=/usr && make && make install"
+      - /app/vmctl exec "cd $CI_PROJECT_NAME && PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\" MESON_ARGS=\"$MESON_ARGS\" MESON_BUILDDIR=\"$MESON_BUILDDIR\" .gitlab-ci/meson-build.sh --skip-test" && touch .success
+      # test not working yet, so skipped
+      # - scp -r vm:$CI_PROJECT_NAME/test-results.xml .
+      - /app/vmctl stop
+      - set -e
+      - test -e .success || exit 1
+
 meson-dist:
     extends: .common-build-and-test
     artifacts:
@@ -171,7 +234,7 @@ meson-dist:
 
 xf86-driver-build-test:
     extends:
-        - .fdo.distribution-image at debian
+        - .xorg-image at debian
         - .ci-run-policy
     stage: drivers
     parallel:
commit c41bb2049ebac5ab04fdc0871f399faa5c0415fe
Author: Enrico Weigelt, metux IT consult <info at metux.net>
Date:   Thu Aug 29 14:39:17 2024 +0200

    ci: use master branch of xf86-video-qxl driver
    
    Need some fixes not in a tagged release yet.
    
    Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1425>

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 539230225..620f6aa4b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -189,7 +189,7 @@ xf86-driver-build-test:
             - REPO: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati
               SHA: xf86-video-ati-22.0.0
             - REPO: https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl
-              SHA: xf86-video-qxl-0.1.6
+              SHA: master
             - REPO: https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa
               SHA: xf86-video-vesa-2.6.0
             - REPO: https://gitlab.freedesktop.org/xorg/driver/xf86-video-vmware


More information about the xorg-commit mailing list