Skip to content

Commit c4b199a

Browse files
committed
graphics/vulkan-headers: pacify stage-qa after 93b836b
Error: '/usr/bin/python3' is an invalid shebang you need USES=shebangfix for 'share/vulkan/registry/genvk.py' genvk.py is used to generate include/vulkan/*.h but distfile already contains pregerenated version, so the shebang is unused. Regenerating headers isn't supported by CMake build, and requires docgenerator.py from Vulkan-Docs repo. PR: 268489 Reported by: amdmi3 Regressed by: KhronosGroup/Vulkan-Headers@75a6b83f213d
1 parent 996c03b commit c4b199a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎graphics/vulkan-headers/Makefile‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
PORTNAME= vulkan-headers
22
DISTVERSIONPREFIX= v
33
DISTVERSION= 1.3.238
4+
PORTREVISION= 1
45
CATEGORIES= graphics
56

67
MAINTAINER= jbeich@FreeBSD.org
@@ -16,6 +17,10 @@ GH_PROJECT= Vulkan-Headers
1617
STRIP= # nothing to strip
1718
NO_ARCH= yes
1819

20+
post-extract:
21+
# genvk.py requires docgenerator.py from Vulkan-Docs, so drop useless shebang
22+
@${FIND} ${WRKSRC}/registry -name \*.py -exec ${REINPLACE_CMD} -i '' '/^#!/d' {} +
23+
1924
post-patch:
2025
# XXX Drop after FreeBSD 12.* EOL around 2024-06-30
2126
@if [ -L /usr/include/sched.h ]; then \

0 commit comments

Comments
 (0)