Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package piglit for openSUSE:Factory checked in at 2026-10-15 16:13:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/piglit (Old) and /work/SRC/openSUSE:Factory/.piglit.new.3698736 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "piglit" Thu Oct 15 16:13:53 2026 rev:2 rq:1385015 version:1~20260521 Changes: -------- --- /work/SRC/openSUSE:Factory/piglit/piglit.changes 2026-05-23 23:24:49.090443686 +0200 +++ /work/SRC/openSUSE:Factory/.piglit.new.3698736/piglit.changes 2026-10-15 16:13:54.016426616 +0200 @@ -1,0 +2,23 @@ +Thu Oct 15 09:04:51 UTC 2026 - Tomáš Chvátal <[email protected]> + +- Add %check: run the upstream generator unit tests and smoke-run + two test programs against Mesa's software renderer on the + surfaceless EGL platform +- Fix the python script interpreters to /usr/bin/python3 and add + the missing executable bits to the shipped python scripts +- Drop unused BuildRequires (glibc-devel, python3-xml, + pkgconfig(glu), pkgconfig(libdrm_intel)) and name the wayland, + wayland-scanner and gbm pkgconfig requirements the CMake + configure probes for explicitly +- Drop the unused python3-numpy and python3-xml runtime + requirements (numpy is build-time only, the xml usage is + stdlib-only) and recommend the python modules the replay + subcommand needs (Pillow, PyYAML, packaging, requests) + +------------------------------------------------------------------- +Wed Aug 19 17:25:43 UTC 2026 - Bernhard Wiedemann <[email protected]> + +- Add vulkan-xml-generated-tests.patch to fix a race (boo#1102408) +- Fix missing percent in .spec + +------------------------------------------------------------------- New: ---- vulkan-xml-generated-tests.patch ----------(New B)---------- New: - Add vulkan-xml-generated-tests.patch to fix a race (boo#1102408) - Fix missing percent in .spec ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ piglit.spec ++++++ --- /var/tmp/diff_new_pack.FDTfOb/_old 2026-10-15 16:13:55.049469841 +0200 +++ /var/tmp/diff_new_pack.FDTfOb/_new 2026-10-15 16:13:55.050469883 +0200 @@ -30,7 +30,6 @@ Release: 0 Summary: OpenGL driver testing framework License: MIT -Group: System/Benchmark URL: https://cgit.freedesktop.org/piglit Source0: %{name}-%{version}.tar.gz Source1: piglit-rpmlintrc @@ -38,44 +37,49 @@ Source3: suse_qa-skip-tests.txt Source4: opensuse_qa.py Source5: opensuse_qa-skip-tests.txt +Patch0: vulkan-xml-generated-tests.patch BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ -BuildRequires: glibc-devel BuildRequires: glslang-devel BuildRequires: pkgconfig BuildRequires: python3 BuildRequires: python3-Mako BuildRequires: python3-numpy -BuildRequires: python3-xml +BuildRequires: python3-pytest +BuildRequires: python3-pytest-mock +BuildRequires: python3-pytest-timeout BuildRequires: pkgconfig(egl) +BuildRequires: pkgconfig(gbm) >= 17.1 BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(vulkan) BuildRequires: pkgconfig(waffle-1) >= 1.6.0 +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-egl) BuildRequires: pkgconfig(wayland-protocols) >= 1.24 +BuildRequires: pkgconfig(wayland-scanner) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xkbcommon) Requires: python3 Requires: python3-Mako -Requires: python3-numpy -Requires: python3-xml +# For the replay subcommand (framework/replay) +Recommends: python3-Pillow +Recommends: python3-PyYAML +Recommends: python3-packaging +Recommends: python3-requests Recommends: waffle >= 1.6.0 ExcludeArch: %{ix86} ppc %if %{with opengl} BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glproto) -BuildRequires: pkgconfig(glu) %endif %if %{with opengles} BuildRequires: Mesa-libGLESv3-devel BuildRequires: pkgconfig(glesv1_cm) BuildRequires: pkgconfig(glesv2) %endif -%ifarch x86_64 -BuildRequires: pkgconfig(libdrm_intel) -%endif %description Piglit is a collection of automated tests for OpenGL and OpenCL @@ -90,7 +94,7 @@ be generated, including the ability to compare different test runs. %prep -%autosetup +%autosetup -p1 %build # Note: Overwriting CMAKE_SHARED_LINKER_FLAGS with those from the cmake macro, @@ -114,6 +118,23 @@ -Wno-dev %cmake_build +%check +# Unit tests for the code generators that produce much of the shipped +# test data (upstream's "generator" tox environment). The two deselected +# tests need the pytest-raises plugin, which is not packaged in openSUSE. +python3 -m pytest unittests/generators -q \ + --deselect unittests/generators/test_glsl.py::test_glsl_glsles_exception \ + --deselect unittests/generators/test_glsl.py::test_glsles_glsl_exception +# Smoke-run real test programs against Mesa's software renderer on the +# surfaceless EGL platform (no X server or GPU needed); each must pass. +for test in arb_blend_func_extended-blend-api_gles2 egl_ext_device_enumeration; do + LD_LIBRARY_PATH=$PWD/build/lib \ + PIGLIT_PLATFORM=surfaceless_egl \ + LIBGL_ALWAYS_SOFTWARE=1 \ + GALLIUM_DRIVER=llvmpipe \ + ./build/bin/$test | grep -q '"result": "pass"' +done + %install %cmake_install @@ -124,7 +145,21 @@ install -Dpm 644 %{SOURCE4} \ %{buildroot}%{_libdir}/piglit/tests install -Dpm 644 %{SOURCE5} \ - {buildroot}%{_libdir}/piglit/tests + %{buildroot}%{_libdir}/piglit/tests +# Ship the python scripts with a fixed interpreter, and make the ones +# carrying a shebang executable +sed -i '1s|^#!%{_bindir}/env python.*|#!%{_bindir}/python3|' \ + %{buildroot}%{_bindir}/piglit \ + %{buildroot}%{_libdir}/piglit/bin/replayer.py \ + %{buildroot}%{_libdir}/piglit/framework/replay/backends/renderdoc/renderdoc_dump_images.py \ + %{buildroot}%{_libdir}/piglit/tests/glslparsertest/glsl2/gen_builtin_test.py \ + %{buildroot}%{_libdir}/piglit/tests/oglconform.py \ + %{buildroot}%{_libdir}/piglit/tests/vulkan.py +chmod a+x \ + %{buildroot}%{_libdir}/piglit/framework/replay/backends/renderdoc/renderdoc_dump_images.py \ + %{buildroot}%{_libdir}/piglit/tests/glslparsertest/glsl2/gen_builtin_test.py \ + %{buildroot}%{_libdir}/piglit/tests/oglconform.py \ + %{buildroot}%{_libdir}/piglit/tests/vulkan.py %fdupes %{buildroot}/%{_libdir}/piglit %ldconfig_scriptlets ++++++ vulkan-xml-generated-tests.patch ++++++ >From 2f9ce18f7e471d39e2aac2cdd9c6e752cd761a5d Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" <[email protected]> Date: Wed, 19 Aug 2026 12:54:26 +0200 Subject: [PATCH] cmake: serialize vulkan.xml after generating Vulkan tests The vulkan profile walks generated_tests/vulkan/ for .vk_shader_test files, but generate-vulkan-xml only depended on static-vkrunner-tests, so with parallel make the serializer could run before (or while) gen-vulkan-tests produced the generated tests. The resulting vulkan.xml.gz then listed a varying subset of the generated tests, making the build non-reproducible. Depend on gen-vulkan-tests like the GL and CL profiles depend on gen-gl-tests and gen-cl-tests. This patch was done while working on reproducible builds for openSUSE. --- tests/CMakeLists.no_api.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.no_api.txt b/tests/CMakeLists.no_api.txt index b25ee3242..36092e6a3 100644 --- a/tests/CMakeLists.no_api.txt +++ b/tests/CMakeLists.no_api.txt @@ -79,7 +79,7 @@ piglit_generate_xml(quick_shader.no_isolation quick_shader gen-gl-gen-xml "--no- piglit_generate_xml(no_error no_error gen-gl-gen-xml "" gen-gl-tests static-shader-tests) add_custom_target(gen-vulkan-xml) -piglit_generate_xml(vulkan vulkan gen-vulkan-xml "" static-vkrunner-tests) +piglit_generate_xml(vulkan vulkan gen-vulkan-xml "" static-vkrunner-tests gen-vulkan-tests) add_custom_target(gen-cl-xml) piglit_generate_xml(cl cl gen-cl-xml "" gen-cl-tests static-program-tests) -- 2.55.0
