graphics/khronos-texture: Fix build with libc++ 21
[...]
In file included from /wrkdirs/usr/ports/graphics/khronos-texture/work/KTX-Software-4.4.2/external/fmt/src/os.cc:13:
In file included from /wrkdirs/usr/ports/graphics/khronos-texture/work/KTX-Software-4.4.2/external/fmt/include/fmt/os.h:11:
/wrkdirs/usr/ports/graphics/khronos-texture/work/KTX-Software-4.4.2/external/fmt/include/fmt/format.h:747:28: error: use of undeclared identifier 'malloc'
747 | T* p = static_cast<T*>(malloc(n * sizeof(T)));
| ^~~~~~
/wrkdirs/usr/ports/graphics/khronos-texture/work/KTX-Software-4.4.2/external/fmt/include/fmt/format.h:752:35: error: use of undeclared identifier 'free'
752 | void deallocate(T* p, size_t) { free(p); }
| ^~~~
[...]
While here udpate to USES+=compiler:c++14-lang - port uses -std=c++14.
PR: 293197
MFH: 2026Q1438a70797fPort details
graphics/khronos-texture4.4.2
Khronos Texture is a container for textures for OpenGL/Vulkan/etc
- Maintainer
- vvd@FreeBSD.org
- Packages
- khronos-texture 4.4.2
- Upstream
- up to date
- CPE
- none, CVEs only via VuXML
- WWW
- https://github.com/KhronosGroup/KTX-Software
- Links
- cgit · VuXML
Unaddressed (0) · The CVE record lists this version as affected, no VuXML entry names the CVE
None. There is no CVE without a VuXML entry for this version.
VuXML only (0) · listed, port not fixed yet
None.
pkg audit reports nothing for this version.Fixed (0)
No VuXML entries for this package.
Commits (8)
graphics/khronos-texture: Update 4.4.0 => 4.4.2 Changelog: https://github.com/KhronosGroup/KTX-Software/releases/tag/v4.4.23a0d2ddc44
graphics/khronos-texture: Update 4.3.2 => 4.4.0 Changelog: https://github.com/KhronosGroup/KTX-Software/releases/tag/v4.4.0 Reported by: portscoutd91356f97d
graphics/khronos-texture: Turn off NEON for armv7 by default: the code uses intrinsics only available on aarch64
/wrkdirs/usr/ports/graphics/khronos-texture/work/KTX-Software-4.3.2/lib/astc-encoder/Source/astcenc_vecmathlib_neon_4.h:409:9: error: use of undeclared identifier 'vaddvq_u32'; did you mean 'vpaddlq_u32'?
409 | return vaddvq_u32(vshlq_u32(tmp, shift));
| ^~~~~~~~~~
| vpaddlq_u32
/usr/lib/clang/19/include/arm_neon.h:21450:49: note: 'vpaddlq_u32' declared here
21450 | __ai __attribute__((target("neon"))) uint64x2_t vpaddlq_u32(uint32x4_t __p0) {
| ^
Same for: vminvq_s32 vmaxvq_s32 vqtbl1q_s8 vdivq_f32 vminnmq_f32
vmaxnmq_f32 vrndnq_f32 vminvq_f32 vmaxvq_f32 vsqrtq_f32 vcvt_f16_f32
vcvt_f32_f16 vqtbl1q_s8 vqtbl2q_s8 vaddvq_u32 vminvq_s32 vmaxvq_s32
vqtbl1q_s8 and etc.
https://portsfallout.com/fallout?port=graphics%2Fkhronos-textureca2015f487*/*: remove GNU_CONFIGURE_MANPREFIX and pet the portclippy Approved by: arrowd (mentor)43757efeb9
graphics/khronos-texture: replace ton of OPTIONS_DEFAULT_* with OPTIONS_DEFAULT_OTHER_ARCHS While here satisfy portlint Approved by: arrowd (mentor, implicit)cd8cef33d2
graphics/khronos-texture: update to 4.3.2 Changelog: https://github.com/KhronosGroup/KTX-Software/releases/tag/v4.3.2 Reported by: portscout Approved by: arrowd (mentor, implicit)9765c86f2a
graphics/khronos-texture: new port - required for games/lwjgl3 This port required for build lwjgl 3, and lwjgl 3 required for run Java Minecraft Client 1.20.x on FreeBSD without linux compatibility layer. PR: 275279 269879 269900 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D44120f892ca8769