The real problem was that I thought the openxr-git meta package was a good idea. I changed a few things and made openxr-loader-git the "main" openxr/openxr-git package and also took the opportunity to merge openxr-headers-git into openxr-loader-git. Hopefully that works now.
Just chiming in to see if anyone has been able to get "conflicts" to work properly for openxr?
I just tried to grab the PKGBUILD and give it a show but the slew of errors continues.
openxr-loader-git: /usr/lib/cmake/openxr/OpenXRConfig.cmake exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/cmake/openxr/OpenXRConfigVersion.cmake exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/cmake/openxr/OpenXRTargets-release.cmake exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/cmake/openxr/OpenXRTargets.cmake exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/libopenxr_loader.so exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/libopenxr_loader.so.1 exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/libopenxr_loader.so.1.1.38 exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/pkgconfig/openxr.pc exists in filesystem (owned by openxr)
openxr-loader-git: /usr/share/doc/openxr/LICENSE exists in filesystem (owned by openxr)
conflicting with "openxr" doesn't seem to work sadly:
debug: package openxr-loader-git conflicts with openxr-git (by openxr)
debug: package openxr-utils-git conflicts with openxr-git (by openxr)
debug: conflicting packages in the sync list: 'openxr-loader-git' <-> 'openxr-git'
openxr-utils-git needs to have openxr added to the conflicts array:
error: failed to commit transaction (conflicting files)
openxr-utils-git: /usr/bin/hello_xr exists in filesystem (owned by openxr)
openxr-utils-git: /usr/bin/openxr_runtime_list exists in filesystem (owned by openxr)
openxr-utils-git: /usr/bin/openxr_runtime_list_json exists in filesystem (owned by openxr)
Errors occurred, no packages were upgraded.
Regards and thanks for maintaining!
Please add to the package openxr-loader-git:
conflicts=('openxr-loader' 'openxr'):
error: failed to commit transaction (conflicting files)
openxr-loader-git: /usr/lib/cmake/openxr/OpenXRConfig.cmake exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/cmake/openxr/OpenXRConfigVersion.cmake exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/cmake/openxr/OpenXRTargets-release.cmake exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/cmake/openxr/OpenXRTargets.cmake exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/libopenxr_loader.so exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/libopenxr_loader.so.1 exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/libopenxr_loader.so.1.0.33 exists in filesystem (owned by openxr)
openxr-loader-git: /usr/lib/pkgconfig/openxr.pc exists in filesystem (owned by openxr)
openxr-loader-git: /usr/share/doc/openxr/LICENSE exists in filesystem (owned by openxr)
Errors occurred, no packages were upgraded.
Regards and thanks for maintaining!
Seems that patching is no longer required:
==> Starting prepare()...
patching file src/tests/hello_xr/graphicsplugin_vulkan.cpp
Reversed (or previously applied) patch detected! Assume -R? [n] Terminated
==> ERROR: A failure occurred in prepare().
Indeed, I added some depends and makedepends.
- Presentation backend selected for hello_xr, loader_test, conformance: xlib
-- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
-- Found PkgConfig: /usr/sbin/pkg-config (found version "1.6.3")
-- Checking for one of the modules 'xcb'
-- Checking for one of the modules 'wayland-client'
-- BUILD_WITH_XLIB_HEADERS: OFF
-- BUILD_WITH_XCB_HEADERS: OFF
-- BUILD_WITH_WAYLAND_HEADERS: OFF
CMake Error at src/cmake/presentation.cmake:43 (message):
xlib backend selected, but BUILD_WITH_XLIB_HEADERS either disabled or
unavailable due to missing dependencies.
Call Stack (most recent call first):
src/CMakeLists.txt:104 (include)
Missing dependencies to build in a clean chroot.
EDIT: Adding libxcb we have this:
Package 'xproto', required by *****, not found
EDIT2: Adding xorgproto we have this: BUILD_WITH_XLIB_HEADERS either disabled or unavailable
Then, adding libx11 we have this: OpenXR tests using xlib backend requires Xxf86vm and Xrandr
Add libxxf86vm and xorg-xrandr (or lib, not sure)
Then: Python 3 not found, but pre-generated
Add python (makedepends only, not sure)
Updated to build from the OpenXR-SDK-Source repo instead of OpenXR-SDK. You might need to delete your cached copy of the repo and src/.
It also builds two new split packages openxr-layers-git and openxr-utils-git.