Update to vgmstream-2117.

Fixes the build with clang 22.
This commit is contained in:
bentley
2026-06-01 06:08:47 +00:00
parent f236de024d
commit 7d4ec0fd98
5 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ COMMENT = play back various video game streamed audio formats
PKGNAME = vgmstream-$V
V = 1866
V = 2117
DIST_TUPLE = github vgmstream vgmstream r$V .
@@ -10,7 +10,7 @@ CATEGORIES = audio
HOMEPAGE = https://vgmstream.org/
MAINTAINER = Anthony J. Bentley <anthony@anjbe.name>
MAINTAINER = Anthony J. Bentley <bentley@openbsd.org>
# ISC
PERMIT_PACKAGE = Yes
+2 -2
View File
@@ -1,2 +1,2 @@
SHA256 (vgmstream-vgmstream-r1866.tar.gz) = VrrqjrpXdtdcSHyEbii0SPmXVd0ST/fIQd+Vfzc92mI=
SIZE (vgmstream-vgmstream-r1866.tar.gz) = 8301265
SHA256 (vgmstream-vgmstream-r2117.tar.gz) = ua0P+rtZGeHJ7CkSQW4843kWQXqMQQGWgizmxhDc3mY=
SIZE (vgmstream-vgmstream-r2117.tar.gz) = 8631540
+1 -1
View File
@@ -5,7 +5,7 @@ Index: Makefile
###############################################################################
### build defs
-DEF_CFLAGS += -ffast-math -O3 -Wall -Werror=format-security -Wvla -Wimplicit-function-declaration -Wignored-qualifiers
-DEF_CFLAGS += -ffast-math -O3 -Wall -Werror=format-security -Wvla -Wimplicit-function-declaration -Wignored-qualifiers -Wmissing-declarations
-
VGM_DEBUG_FLAGS = 0
ifeq ($(VGM_DEBUG_FLAGS),1)
@@ -1,7 +1,7 @@
Index: cli/vgmstream123.c
--- cli/vgmstream123.c.orig
+++ cli/vgmstream123.c
@@ -760,7 +760,18 @@ int main(int argc, char **argv) {
@@ -771,7 +771,18 @@ int main(int argc, char** argv) {
signal(SIGINT, interrupt_handler);
signal(SIGQUIT, interrupt_handler);
@@ -1,22 +1,22 @@
Index: cli/vgmstream_cli.c
--- cli/vgmstream_cli.c.orig
+++ cli/vgmstream_cli.c
@@ -4,6 +4,7 @@
#define POSIXLY_CORRECT
@@ -7,6 +7,7 @@
#include <stdio.h>
#include <getopt.h>
+#include <stdlib.h>
#include "../src/vgmstream.h"
#include "../src/api.h"
#include "../src/util.h"
@@ -593,6 +594,10 @@ int main(int argc, char** argv) {
cli_config cfg = {0};
int i, res, ok;
#ifdef WIN32
#include <io.h>
@@ -586,6 +587,10 @@ static bool convert_file(cli_config_t* cfg) {
return true;
}
+ if (pledge("stdio rpath wpath cpath", NULL) == -1) {
+ fprintf(stderr, "pledge\n");
+ return 1;
+ }
/* read args */
res = parse_config(&cfg, argc, argv);
/* main decode */
write_file(vgmstream, cfg);