Package Details: piglit-git r12216.591119965-1

Git Clone URL: https://aur.archlinux.org/piglit-git.git (read-only, click to copy)
Package Base: piglit-git
Description: OpenGL implementation testing suite. Provides a simple means to perform regression tests.
Upstream URL: http://piglit.freedesktop.org/
Licenses: GPL2, GPL3, LGPL2.1
Conflicts: piglit
Provides: piglit
Submitter: Omar007
Maintainer: Omar007
Last Packager: Omar007
Votes: 1
Popularity: 0.000000
First Submitted: 2016-05-21 17:01 (UTC)
Last Updated: 2026-02-17 17:17 (UTC)

Latest Comments

Omar007 commented on 2025-12-10 22:34 (UTC) (edited on 2025-12-13 14:45 (UTC) by Omar007)

@imeguras; yea upstream introduced a new test that breaks builds on systems where -Werror=format-security is set by default. I had already submitted a change to upstream, see https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/1057
I had hoped it would've been pulled in by now but since it isn't yet I'll probably pull it into the PKGBUILD this weekend to cover w/e the time is it'll still take them.

EDIT: Upstream has reviewed it but it's not yet merged (or queued up for/assigned to Marge Bot). I have added it to the PKGBUILD directly for now.

imeguras commented on 2025-12-10 20:54 (UTC) (edited on 2025-12-10 22:45 (UTC) by imeguras)

Compilation has been failing for over a week(Ie i've tried to kept the system up to date yet cant install this package)

FAILED: [code=1]

target_api/gles2/tests/spec/ext_shader_pixel_local_storage/CMakeFiles/ext_shader_pixel_local_storage-tests.dir/pixel-local-tests.c.o 
/usr/bin/cc -DPIGLIT_HAS_EGL -DPIGLIT_HAS_GBM -DPIGLIT_HAS_GBM_BO_GET_FD_FOR_PLANE -DPIGLIT_HAS_GBM_BO_MAP -DPIGLIT_HAS_GLX -DPIGLIT_HAS_LIBCACA -DPIGLIT_HAS_PNG -DPIGLIT_HAS_POSIX_CLOCK_MONOTONIC -DPIGLIT_HAS_POSIX_TIMER_NOTIFY_THREAD -DPIGLIT_HAS_PTHREADS -DPIGLIT_HAS_WAYLAND -DPIGLIT_HAS_X11 -DPIGLIT_USE_OPENGL_ES2 -DPIGLIT_USE_WAFFLE -DWAFFLE_API_VERSION=0x0103 -D_GNU_SOURCE -I/home/micron/.cache/pikaur/build/piglit-git/src/piglit/src -I/home/micron/.cache/pikaur/build/piglit-git/src/piglit/tests/util -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/micron/.cache/pikaur/build/piglit-git/src=/usr/src/debug/piglit-git -flto=auto -msse2 -mfpmath=sse -Wall -std=gnu99 -Werror=vla -Werror=pointer-arith -Werror=variadic-macros -g -MD -MT target_api/gles2/tests/spec/ext_shader_pixel_local_storage/CMakeFiles/ext_shader_pixel_local_storage-tests.dir/pixel-local-tests.c.o -MF target_api/gles2/tests/spec/ext_shader_pixel_local_storage/CMakeFiles/ext_shader_pixel_local_storage-tests.dir/pixel-local-tests.c.o.d -o target_api/gles2/tests/spec/ext_shader_pixel_local_storage/CMakeFiles/ext_shader_pixel_local_storage-tests.dir/pixel-local-tests.c.o -c /home/micron/.cache/pikaur/build/piglit-git/src/piglit/tests/spec/ext_shader_pixel_local_storage/pixel-local-tests.c
/home/micron/.cache/pikaur/build/piglit-git/src/piglit/tests/spec/ext_shader_pixel_local_storage/pixel-local-tests.c: In function ‘make_draw_main_str’:
/home/micron/.cache/pikaur/build/piglit-git/src/piglit/tests/spec/ext_shader_pixel_local_storage/pixel-local-tests.c:678:42: error: format not a string literal and no format arguments [-Werror=format-security]
  678 |                 snprintf(dst, MAIN_SIZE, lhs);
      |                                          ^~~
cc1: some warnings being treated as errors
[2379/4627] Building C object target_api/gles2/tests/spec/e...transcode-nv12-as-r8-gr88.dir/transcode-nv12-as-r8-gr88.c.o
ninja: build stopped: subcommand failed.

Decided to go around it like so:

CFLAGS="${CFLAGS/-Werror=format-security/}" \
        cmake -G Ninja \
                -DCMAKE_INSTALL_PREFIX=/usr \
                -DCMAKE_INSTALL_LIBDIR=lib \
                -DPIGLIT_BUILD_CL_TESTS=0 \
                .
        cmake --build .
}

i know this is kinda missing the point but i really just cared about the binary

Lone_Wolf commented on 2022-04-13 16:09 (UTC)

Build failure with makepmkg and with extra-x86_64-build

home/panoramix/Documents/Aur/pkgbuilds/piglit-git/src/piglit/tests/gbm/gbm-multi-plane.c:28:10: fatal error: drm_fourcc.h: No such file or directory
   28 | #include <drm_fourcc.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.

drm_fourcc.h comes with libdrm and is present in /usr/include/libdrm .

Lone_Wolf commented on 2021-02-14 20:49 (UTC)

The error was indeed in waffle package, not in piglit-git .

I've uploaded an adjusted waffle pacakge.

Omar007 commented on 2021-02-14 19:32 (UTC) (edited on 2021-02-14 19:39 (UTC) by Omar007)

@Lone_Wolf: I have added support for the OpenCL tests but I'm not sure what you mean with your first point. Can you specify what exactly you're seeing in your clean chroot build that seems to require that dependency on piglit? I'm building using clean chroots as well and I'm not encountering a problem and I'm also not aware of references to udev at all. (not seeing it when I search for it or in the build output either)
If it's needed for/by waffle, isn't that something to resolve there instead?

I will add that I haven't been able to build the waffle AUR package since last week or something so I had to do the build with waffle 1.6.2-1.
Beyond the change notification and automated build failure on my server I haven't checked the details yet but looks like dependencies changed and my not be correct there anymore.

Lone_Wolf commented on 2021-02-14 14:34 (UTC) (edited on 2021-02-14 14:34 (UTC) by Lone_Wolf)

  • Building in a clean chroot showed systemd should be added to makedepends so camke can find libudev.pc (needed for waffle )

  • please enable PIGLIT_BUILD_CL_TESTS so opencl tests can be run. (This will require adding opencl-headers and ocl-icd to makedepends)