Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] libplacebo: update to 5.229.1
@ 2022-11-27 17:56 mmnmnnmnmm
  2022-11-27 18:06 ` [PR PATCH] [Updated] " mmnmnnmnmm
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: mmnmnnmnmm @ 2022-11-27 17:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1285 bytes --]

There is a new pull request by mmnmnnmnmm against master on the void-packages repository

https://github.com/mmnmnnmnmm/void-packages libplacebo
https://github.com/void-linux/void-packages/pull/40807

libplacebo: update to 5.229.1
I am unable to test Vulkan output, but OpenGL works fine.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv6l-musl (cross)



A patch file from https://github.com/void-linux/void-packages/pull/40807.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libplacebo-40807.patch --]
[-- Type: text/x-diff, Size: 9319 bytes --]

From 81dcf662c160dfb942d4177cc0e1d549bae4b82a Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 14:07:22 +0000
Subject: [PATCH] libplacebo: update to 5.229.1

---
 common/shlibs                           |   2 +-
 srcpkgs/libplacebo/template             |  18 ++--
 srcpkgs/mpv/template                    |   2 +-
 srcpkgs/python3-glad/template           |  23 +++++
 srcpkgs/vlc/patches/libplacebo-v5.patch | 113 ++++++++++++++++++++++++
 srcpkgs/vlc/template                    |   2 +-
 6 files changed, 148 insertions(+), 12 deletions(-)
 create mode 100644 srcpkgs/python3-glad/template
 create mode 100644 srcpkgs/vlc/patches/libplacebo-v5.patch

diff --git a/common/shlibs b/common/shlibs
index 74ae97843d38..55ce4025c8c1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3446,7 +3446,7 @@ libSoapySDR.so.0.8 SoapySDR-0.8.1_1
 libeditorconfig.so.0 editorconfig-0.12.2_1
 libcfitsio.so.10 cfitsio-4.2.0_1
 libapparmor.so.1 libapparmor-2.12.0_1
-libplacebo.so.192 libplacebo-4.192.1_1
+libplacebo.so.229 libplacebo-5.229.1_1
 libw2xc.so waifu2x-converter-cpp-5.2_1
 libnova-0.15.so.0 libnova-0.15.0_1
 libcue.so.2 libcue-2.2.0_1
diff --git a/srcpkgs/libplacebo/template b/srcpkgs/libplacebo/template
index a88785bb18ed..c663d3758f1b 100644
--- a/srcpkgs/libplacebo/template
+++ b/srcpkgs/libplacebo/template
@@ -1,32 +1,32 @@
 # Template file for 'libplacebo'
 pkgname=libplacebo
-version=4.192.1
+version=5.229.1
 revision=1
 build_style=meson
 configure_args="-Dshaderc=enabled -Dvulkan=enabled
- -Dlcms=$(vopt_if lcms en dis)abled -Dopengl=$(vopt_if opengl en dis)abled"
-hostmakedepends="pkg-config python3-Mako Vulkan-Headers"
-makedepends="shaderc Vulkan-Headers vulkan-loader $(vopt_if lcms lcms2-devel)
- $(vopt_if opengl libepoxy-devel)"
+ -Dlcms=$(vopt_if lcms en dis)abled -Ddemos=false -Dtests=true"
+hostmakedepends="pkg-config Vulkan-Headers python3-glad"
+makedepends="shaderc Vulkan-Headers vulkan-loader python3-MarkupSafe
+ python3-Jinja2 $(vopt_if lcms lcms2-devel)"
 short_desc="Reusable library for GPU-accelerated video/image rendering"
 maintainer="Enrico Belleri <idesmi@protonmail.com>"
 license="LGPL-2.1-or-later"
 homepage="https://code.videolan.org/videolan/libplacebo"
 distfiles="https://code.videolan.org/videolan/libplacebo/-/archive/v${version}/libplacebo-v${version}.tar.gz"
-checksum=e6c5805cf4d955b5941dd12b00fe157b61e77995bc1786b9a86df0ca99a0edc4
+checksum=fc021fc68376b92511977b5bd32340fc575dc36af5c471cc095b5b7e3fa581d4
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
 	LDFLAGS+=" -latomic"
 fi
 
-build_options="lcms opengl"
-build_options_default="lcms opengl"
+build_options="lcms"
+build_options_default="lcms"
 desc_option_lcms="Enable support for LittleCMS 2 engine"
 
 libplacebo-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision} vulkan-loader
-	 $(vopt_if lcms lcms2-devel) $(vopt_if opengl libepoxy-devel)"
+	 $(vopt_if lcms lcms2-devel)"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
diff --git a/srcpkgs/mpv/template b/srcpkgs/mpv/template
index 0e3c3ed8f81c..5dcef38aa241 100644
--- a/srcpkgs/mpv/template
+++ b/srcpkgs/mpv/template
@@ -1,7 +1,7 @@
 # Template file for 'mpv'
 pkgname=mpv
 version=0.35.0
-revision=1
+revision=2
 build_style=meson
 configure_args="-Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled
  -Dlibmpv=true -Dcplugins=enabled
diff --git a/srcpkgs/python3-glad/template b/srcpkgs/python3-glad/template
new file mode 100644
index 000000000000..bb92a62e5bf0
--- /dev/null
+++ b/srcpkgs/python3-glad/template
@@ -0,0 +1,23 @@
+# Template file for 'python3-glad'
+pkgname=python3-glad
+version=2.0.2
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+checkdepends="python3-Jinja2 python3-mock python3-nose"
+depends="python3-Jinja2"
+short_desc="Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator"
+maintainer="mmnmnnmnmm <mnnnm@disroot.org>"
+license="MIT"
+homepage="https://glad.dav1d.de/"
+distfiles="https://github.com/Dav1dde/glad/archive/refs/tags/v${version}.tar.gz"
+checksum=0326d59b1ccf8ccae1fface5bfb71bec1bb41fbe2341e722b31f6acac3068aeb
+make_check=no	# Jinja2 raises exceptions
+
+do_check() {
+	nosetests
+}
+
+post_install() {
+	vlicense LICENSE
+}
diff --git a/srcpkgs/vlc/patches/libplacebo-v5.patch b/srcpkgs/vlc/patches/libplacebo-v5.patch
new file mode 100644
index 000000000000..3fa20249db7e
--- /dev/null
+++ b/srcpkgs/vlc/patches/libplacebo-v5.patch
@@ -0,0 +1,113 @@
+Patch from Arch Linux
+https://raw.githubusercontent.com/archlinux/svntogit-packages/e35c373bdfcafaabbdf6af9108090f130de66b14/trunk/libplacebo-5.patch
+
+---
+
+patch vaguely ported from: https://code.videolan.org/videolan/vlc/-/merge_requests/2233
+
+diff --git a/modules/video_output/opengl/converter.h b/modules/video_output/opengl/converter.h
+index 7000e1f..49fa667 100644
+--- a/modules/video_output/opengl/converter.h
++++ b/modules/video_output/opengl/converter.h
+@@ -26,6 +26,9 @@
+ #include <vlc_picture_pool.h>
+ #include <vlc_opengl.h>
+
++#include <libplacebo/log.h>
++#include <libplacebo/shaders.h>
++
+ /* if USE_OPENGL_ES2 is defined, OpenGL ES version 2 will be used, otherwise
+  * normal OpenGL will be used */
+ #ifdef __APPLE__
+@@ -253,10 +256,6 @@ static inline bool HasExtension(const char *apis, const char *api)
+     return false;
+ }
+
+-struct pl_context;
+-struct pl_shader;
+-struct pl_shader_res;
+-
+ /*
+  * Structure that is filled by "glhw converter" module probe function
+  * The implementation should initialize every members of the struct that are
+@@ -273,7 +272,7 @@ struct opengl_tex_converter_t
+     vlc_gl_t *gl;
+
+     /* libplacebo context, created by the caller (optional) */
+-    struct pl_context *pl_ctx;
++    pl_log pl_log;
+
+     /* Function pointers to OpenGL functions, set by the caller */
+     const opengl_vtable_t *vt;
+@@ -337,7 +336,7 @@ struct opengl_tex_converter_t
+     bool yuv_color;
+     GLfloat yuv_coefficients[16];
+
+-    struct pl_shader *pl_sh;
++    pl_shader pl_sh;
+     const struct pl_shader_res *pl_sh_res;
+
+     /* Private context */
+diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c
+index ecf7226..29f4148 100644
+--- a/modules/video_output/opengl/fragment_shaders.c
++++ b/modules/video_output/opengl/fragment_shaders.c
+@@ -611,7 +611,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
+
+ #ifdef HAVE_LIBPLACEBO
+     if (tc->pl_sh) {
+-        struct pl_shader *sh = tc->pl_sh;
++        pl_shader sh = tc->pl_sh;
+         struct pl_color_map_params color_params = pl_color_map_default_params;
+         color_params.intent = var_InheritInteger(tc->gl, "rendering-intent");
+         color_params.tone_mapping_algo = var_InheritInteger(tc->gl, "tone-mapping");
+@@ -634,7 +634,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
+                 pl_color_space_from_video_format(&tc->fmt),
+                 dst_space, NULL, false);
+
+-        struct pl_shader_obj *dither_state = NULL;
++        pl_shader_obj dither_state = NULL;
+         int method = var_InheritInteger(tc->gl, "dither-algo");
+         if (method >= 0) {
+
+diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
+index 13d65e0..1ee99af 100644
+--- a/modules/video_output/opengl/vout_helper.c
++++ b/modules/video_output/opengl/vout_helper.c
+@@ -570,8 +570,7 @@ opengl_deinit_program(vout_display_opengl_t *vgl, struct prgm *prgm)
+
+ #ifdef HAVE_LIBPLACEBO
+     FREENULL(tc->uloc.pl_vars);
+-    if (tc->pl_ctx)
+-        pl_context_destroy(&tc->pl_ctx);
++    pl_log_destroy(&tc->pl_log);
+ #endif
+
+     vlc_object_release(tc);
+@@ -622,21 +621,21 @@ opengl_init_program(vout_display_opengl_t *vgl, struct prgm *prgm,
+     // create the main libplacebo context
+     if (!subpics)
+     {
+-        tc->pl_ctx = pl_context_create(PL_API_VER, &(struct pl_context_params) {
++        tc->pl_log = pl_log_create(PL_API_VER, &(struct pl_log_params) {
+             .log_cb    = log_cb,
+             .log_priv  = tc,
+             .log_level = PL_LOG_INFO,
+         });
+-        if (tc->pl_ctx) {
++        if (tc->pl_log) {
+ #   if PL_API_VER >= 20
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, &(struct pl_shader_params) {
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, &(struct pl_shader_params) {
+                 .glsl.version = tc->glsl_version,
+                 .glsl.gles = tc->is_gles,
+             });
+ #   elif PL_API_VER >= 6
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0);
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, NULL, 0);
+ #   else
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0, 0);
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, NULL, 0, 0);
+ #   endif
+         }
+     }
diff --git a/srcpkgs/vlc/template b/srcpkgs/vlc/template
index e35a23e96bb6..25867af43440 100644
--- a/srcpkgs/vlc/template
+++ b/srcpkgs/vlc/template
@@ -1,7 +1,7 @@
 # Template file for 'vlc'
 pkgname=vlc
 version=3.0.18
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--disable-gme --disable-libtar --enable-jack
  --enable-live555 --disable-fluidsynth --enable-dvdread

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Updated] libplacebo: update to 5.229.1
  2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
@ 2022-11-27 18:06 ` mmnmnnmnmm
  2022-11-27 18:08 ` mmnmnnmnmm
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmnmnnmnmm @ 2022-11-27 18:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]

There is an updated pull request by mmnmnnmnmm against master on the void-packages repository

https://github.com/mmnmnnmnmm/void-packages libplacebo
https://github.com/void-linux/void-packages/pull/40807

libplacebo: update to 5.229.1
I am unable to test Vulkan output, but OpenGL works fine.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv6l-musl (cross)



A patch file from https://github.com/void-linux/void-packages/pull/40807.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libplacebo-40807.patch --]
[-- Type: text/x-diff, Size: 10054 bytes --]

From 00c1a1dd9b571fbf46c1359e9720e9fd4a09b032 Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:02:51 +0000
Subject: [PATCH 1/4] New package: python3-glad-2.0.2

---
 srcpkgs/python3-glad/template | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 srcpkgs/python3-glad/template

diff --git a/srcpkgs/python3-glad/template b/srcpkgs/python3-glad/template
new file mode 100644
index 000000000000..bb92a62e5bf0
--- /dev/null
+++ b/srcpkgs/python3-glad/template
@@ -0,0 +1,23 @@
+# Template file for 'python3-glad'
+pkgname=python3-glad
+version=2.0.2
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+checkdepends="python3-Jinja2 python3-mock python3-nose"
+depends="python3-Jinja2"
+short_desc="Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator"
+maintainer="mmnmnnmnmm <mnnnm@disroot.org>"
+license="MIT"
+homepage="https://glad.dav1d.de/"
+distfiles="https://github.com/Dav1dde/glad/archive/refs/tags/v${version}.tar.gz"
+checksum=0326d59b1ccf8ccae1fface5bfb71bec1bb41fbe2341e722b31f6acac3068aeb
+make_check=no	# Jinja2 raises exceptions
+
+do_check() {
+	nosetests
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 65586420aa4fab4502057c7097ad30b28fe1d0ad Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:03:49 +0000
Subject: [PATCH 2/4] libplacebo: update to 5.229.1

---
 common/shlibs               |  2 +-
 srcpkgs/libplacebo/template | 18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/common/shlibs b/common/shlibs
index 74ae97843d38..55ce4025c8c1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3446,7 +3446,7 @@ libSoapySDR.so.0.8 SoapySDR-0.8.1_1
 libeditorconfig.so.0 editorconfig-0.12.2_1
 libcfitsio.so.10 cfitsio-4.2.0_1
 libapparmor.so.1 libapparmor-2.12.0_1
-libplacebo.so.192 libplacebo-4.192.1_1
+libplacebo.so.229 libplacebo-5.229.1_1
 libw2xc.so waifu2x-converter-cpp-5.2_1
 libnova-0.15.so.0 libnova-0.15.0_1
 libcue.so.2 libcue-2.2.0_1
diff --git a/srcpkgs/libplacebo/template b/srcpkgs/libplacebo/template
index a88785bb18ed..c663d3758f1b 100644
--- a/srcpkgs/libplacebo/template
+++ b/srcpkgs/libplacebo/template
@@ -1,32 +1,32 @@
 # Template file for 'libplacebo'
 pkgname=libplacebo
-version=4.192.1
+version=5.229.1
 revision=1
 build_style=meson
 configure_args="-Dshaderc=enabled -Dvulkan=enabled
- -Dlcms=$(vopt_if lcms en dis)abled -Dopengl=$(vopt_if opengl en dis)abled"
-hostmakedepends="pkg-config python3-Mako Vulkan-Headers"
-makedepends="shaderc Vulkan-Headers vulkan-loader $(vopt_if lcms lcms2-devel)
- $(vopt_if opengl libepoxy-devel)"
+ -Dlcms=$(vopt_if lcms en dis)abled -Ddemos=false -Dtests=true"
+hostmakedepends="pkg-config Vulkan-Headers python3-glad"
+makedepends="shaderc Vulkan-Headers vulkan-loader python3-MarkupSafe
+ python3-Jinja2 $(vopt_if lcms lcms2-devel)"
 short_desc="Reusable library for GPU-accelerated video/image rendering"
 maintainer="Enrico Belleri <idesmi@protonmail.com>"
 license="LGPL-2.1-or-later"
 homepage="https://code.videolan.org/videolan/libplacebo"
 distfiles="https://code.videolan.org/videolan/libplacebo/-/archive/v${version}/libplacebo-v${version}.tar.gz"
-checksum=e6c5805cf4d955b5941dd12b00fe157b61e77995bc1786b9a86df0ca99a0edc4
+checksum=fc021fc68376b92511977b5bd32340fc575dc36af5c471cc095b5b7e3fa581d4
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
 	LDFLAGS+=" -latomic"
 fi
 
-build_options="lcms opengl"
-build_options_default="lcms opengl"
+build_options="lcms"
+build_options_default="lcms"
 desc_option_lcms="Enable support for LittleCMS 2 engine"
 
 libplacebo-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision} vulkan-loader
-	 $(vopt_if lcms lcms2-devel) $(vopt_if opengl libepoxy-devel)"
+	 $(vopt_if lcms lcms2-devel)"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include

From 0c84338f4242be07a2493779da22122b86281f6a Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:04:20 +0000
Subject: [PATCH 3/4] mpv: revbump for libplacebo-5.229.1

---
 srcpkgs/mpv/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mpv/template b/srcpkgs/mpv/template
index 0e3c3ed8f81c..5dcef38aa241 100644
--- a/srcpkgs/mpv/template
+++ b/srcpkgs/mpv/template
@@ -1,7 +1,7 @@
 # Template file for 'mpv'
 pkgname=mpv
 version=0.35.0
-revision=1
+revision=2
 build_style=meson
 configure_args="-Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled
  -Dlibmpv=true -Dcplugins=enabled

From 78721f2ec2811beafc3d97eff92c8c993fd75f17 Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:04:48 +0000
Subject: [PATCH 4/4] vlc: revbump for libplacebo-5.229.1

---
 srcpkgs/vlc/patches/libplacebo-v5.patch | 113 ++++++++++++++++++++++++
 srcpkgs/vlc/template                    |   2 +-
 2 files changed, 114 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/vlc/patches/libplacebo-v5.patch

diff --git a/srcpkgs/vlc/patches/libplacebo-v5.patch b/srcpkgs/vlc/patches/libplacebo-v5.patch
new file mode 100644
index 000000000000..3fa20249db7e
--- /dev/null
+++ b/srcpkgs/vlc/patches/libplacebo-v5.patch
@@ -0,0 +1,113 @@
+Patch from Arch Linux
+https://raw.githubusercontent.com/archlinux/svntogit-packages/e35c373bdfcafaabbdf6af9108090f130de66b14/trunk/libplacebo-5.patch
+
+---
+
+patch vaguely ported from: https://code.videolan.org/videolan/vlc/-/merge_requests/2233
+
+diff --git a/modules/video_output/opengl/converter.h b/modules/video_output/opengl/converter.h
+index 7000e1f..49fa667 100644
+--- a/modules/video_output/opengl/converter.h
++++ b/modules/video_output/opengl/converter.h
+@@ -26,6 +26,9 @@
+ #include <vlc_picture_pool.h>
+ #include <vlc_opengl.h>
+
++#include <libplacebo/log.h>
++#include <libplacebo/shaders.h>
++
+ /* if USE_OPENGL_ES2 is defined, OpenGL ES version 2 will be used, otherwise
+  * normal OpenGL will be used */
+ #ifdef __APPLE__
+@@ -253,10 +256,6 @@ static inline bool HasExtension(const char *apis, const char *api)
+     return false;
+ }
+
+-struct pl_context;
+-struct pl_shader;
+-struct pl_shader_res;
+-
+ /*
+  * Structure that is filled by "glhw converter" module probe function
+  * The implementation should initialize every members of the struct that are
+@@ -273,7 +272,7 @@ struct opengl_tex_converter_t
+     vlc_gl_t *gl;
+
+     /* libplacebo context, created by the caller (optional) */
+-    struct pl_context *pl_ctx;
++    pl_log pl_log;
+
+     /* Function pointers to OpenGL functions, set by the caller */
+     const opengl_vtable_t *vt;
+@@ -337,7 +336,7 @@ struct opengl_tex_converter_t
+     bool yuv_color;
+     GLfloat yuv_coefficients[16];
+
+-    struct pl_shader *pl_sh;
++    pl_shader pl_sh;
+     const struct pl_shader_res *pl_sh_res;
+
+     /* Private context */
+diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c
+index ecf7226..29f4148 100644
+--- a/modules/video_output/opengl/fragment_shaders.c
++++ b/modules/video_output/opengl/fragment_shaders.c
+@@ -611,7 +611,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
+
+ #ifdef HAVE_LIBPLACEBO
+     if (tc->pl_sh) {
+-        struct pl_shader *sh = tc->pl_sh;
++        pl_shader sh = tc->pl_sh;
+         struct pl_color_map_params color_params = pl_color_map_default_params;
+         color_params.intent = var_InheritInteger(tc->gl, "rendering-intent");
+         color_params.tone_mapping_algo = var_InheritInteger(tc->gl, "tone-mapping");
+@@ -634,7 +634,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
+                 pl_color_space_from_video_format(&tc->fmt),
+                 dst_space, NULL, false);
+
+-        struct pl_shader_obj *dither_state = NULL;
++        pl_shader_obj dither_state = NULL;
+         int method = var_InheritInteger(tc->gl, "dither-algo");
+         if (method >= 0) {
+
+diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
+index 13d65e0..1ee99af 100644
+--- a/modules/video_output/opengl/vout_helper.c
++++ b/modules/video_output/opengl/vout_helper.c
+@@ -570,8 +570,7 @@ opengl_deinit_program(vout_display_opengl_t *vgl, struct prgm *prgm)
+
+ #ifdef HAVE_LIBPLACEBO
+     FREENULL(tc->uloc.pl_vars);
+-    if (tc->pl_ctx)
+-        pl_context_destroy(&tc->pl_ctx);
++    pl_log_destroy(&tc->pl_log);
+ #endif
+
+     vlc_object_release(tc);
+@@ -622,21 +621,21 @@ opengl_init_program(vout_display_opengl_t *vgl, struct prgm *prgm,
+     // create the main libplacebo context
+     if (!subpics)
+     {
+-        tc->pl_ctx = pl_context_create(PL_API_VER, &(struct pl_context_params) {
++        tc->pl_log = pl_log_create(PL_API_VER, &(struct pl_log_params) {
+             .log_cb    = log_cb,
+             .log_priv  = tc,
+             .log_level = PL_LOG_INFO,
+         });
+-        if (tc->pl_ctx) {
++        if (tc->pl_log) {
+ #   if PL_API_VER >= 20
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, &(struct pl_shader_params) {
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, &(struct pl_shader_params) {
+                 .glsl.version = tc->glsl_version,
+                 .glsl.gles = tc->is_gles,
+             });
+ #   elif PL_API_VER >= 6
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0);
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, NULL, 0);
+ #   else
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0, 0);
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, NULL, 0, 0);
+ #   endif
+         }
+     }
diff --git a/srcpkgs/vlc/template b/srcpkgs/vlc/template
index e35a23e96bb6..25867af43440 100644
--- a/srcpkgs/vlc/template
+++ b/srcpkgs/vlc/template
@@ -1,7 +1,7 @@
 # Template file for 'vlc'
 pkgname=vlc
 version=3.0.18
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--disable-gme --disable-libtar --enable-jack
  --enable-live555 --disable-fluidsynth --enable-dvdread

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Updated] libplacebo: update to 5.229.1
  2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
  2022-11-27 18:06 ` [PR PATCH] [Updated] " mmnmnnmnmm
@ 2022-11-27 18:08 ` mmnmnnmnmm
  2022-12-18 16:54 ` mmnmnnmnmm
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmnmnnmnmm @ 2022-11-27 18:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]

There is an updated pull request by mmnmnnmnmm against master on the void-packages repository

https://github.com/mmnmnnmnmm/void-packages libplacebo
https://github.com/void-linux/void-packages/pull/40807

libplacebo: update to 5.229.1
I am unable to test Vulkan output, but OpenGL works fine.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv6l-musl (cross)



A patch file from https://github.com/void-linux/void-packages/pull/40807.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libplacebo-40807.patch --]
[-- Type: text/x-diff, Size: 10054 bytes --]

From 7fd8d7a2603766893e25e6fb77676ba863511488 Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:02:51 +0000
Subject: [PATCH 1/4] New package: python3-glad-2.0.2

---
 srcpkgs/python3-glad/template | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 srcpkgs/python3-glad/template

diff --git a/srcpkgs/python3-glad/template b/srcpkgs/python3-glad/template
new file mode 100644
index 000000000000..fcaf41654fe6
--- /dev/null
+++ b/srcpkgs/python3-glad/template
@@ -0,0 +1,23 @@
+# Template file for 'python3-glad'
+pkgname=python3-glad
+version=2.0.2
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Jinja2"
+checkdepends="python3-Jinja2 python3-mock python3-nose"
+short_desc="Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator"
+maintainer="mmnmnnmnmm <mnnnm@disroot.org>"
+license="MIT"
+homepage="https://glad.dav1d.de/"
+distfiles="https://github.com/Dav1dde/glad/archive/refs/tags/v${version}.tar.gz"
+checksum=0326d59b1ccf8ccae1fface5bfb71bec1bb41fbe2341e722b31f6acac3068aeb
+make_check=no	# Jinja2 raises exceptions
+
+do_check() {
+	nosetests
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 4fbfae31801dfbf53e02a3c51052cb8d2edcf241 Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:03:49 +0000
Subject: [PATCH 2/4] libplacebo: update to 5.229.1

---
 common/shlibs               |  2 +-
 srcpkgs/libplacebo/template | 18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/common/shlibs b/common/shlibs
index 74ae97843d38..55ce4025c8c1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3446,7 +3446,7 @@ libSoapySDR.so.0.8 SoapySDR-0.8.1_1
 libeditorconfig.so.0 editorconfig-0.12.2_1
 libcfitsio.so.10 cfitsio-4.2.0_1
 libapparmor.so.1 libapparmor-2.12.0_1
-libplacebo.so.192 libplacebo-4.192.1_1
+libplacebo.so.229 libplacebo-5.229.1_1
 libw2xc.so waifu2x-converter-cpp-5.2_1
 libnova-0.15.so.0 libnova-0.15.0_1
 libcue.so.2 libcue-2.2.0_1
diff --git a/srcpkgs/libplacebo/template b/srcpkgs/libplacebo/template
index a88785bb18ed..c663d3758f1b 100644
--- a/srcpkgs/libplacebo/template
+++ b/srcpkgs/libplacebo/template
@@ -1,32 +1,32 @@
 # Template file for 'libplacebo'
 pkgname=libplacebo
-version=4.192.1
+version=5.229.1
 revision=1
 build_style=meson
 configure_args="-Dshaderc=enabled -Dvulkan=enabled
- -Dlcms=$(vopt_if lcms en dis)abled -Dopengl=$(vopt_if opengl en dis)abled"
-hostmakedepends="pkg-config python3-Mako Vulkan-Headers"
-makedepends="shaderc Vulkan-Headers vulkan-loader $(vopt_if lcms lcms2-devel)
- $(vopt_if opengl libepoxy-devel)"
+ -Dlcms=$(vopt_if lcms en dis)abled -Ddemos=false -Dtests=true"
+hostmakedepends="pkg-config Vulkan-Headers python3-glad"
+makedepends="shaderc Vulkan-Headers vulkan-loader python3-MarkupSafe
+ python3-Jinja2 $(vopt_if lcms lcms2-devel)"
 short_desc="Reusable library for GPU-accelerated video/image rendering"
 maintainer="Enrico Belleri <idesmi@protonmail.com>"
 license="LGPL-2.1-or-later"
 homepage="https://code.videolan.org/videolan/libplacebo"
 distfiles="https://code.videolan.org/videolan/libplacebo/-/archive/v${version}/libplacebo-v${version}.tar.gz"
-checksum=e6c5805cf4d955b5941dd12b00fe157b61e77995bc1786b9a86df0ca99a0edc4
+checksum=fc021fc68376b92511977b5bd32340fc575dc36af5c471cc095b5b7e3fa581d4
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
 	LDFLAGS+=" -latomic"
 fi
 
-build_options="lcms opengl"
-build_options_default="lcms opengl"
+build_options="lcms"
+build_options_default="lcms"
 desc_option_lcms="Enable support for LittleCMS 2 engine"
 
 libplacebo-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision} vulkan-loader
-	 $(vopt_if lcms lcms2-devel) $(vopt_if opengl libepoxy-devel)"
+	 $(vopt_if lcms lcms2-devel)"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include

From 40f51477c010219dc753549b1669bd83b532b47b Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:04:20 +0000
Subject: [PATCH 3/4] mpv: revbump for libplacebo-5.229.1

---
 srcpkgs/mpv/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mpv/template b/srcpkgs/mpv/template
index 0e3c3ed8f81c..5dcef38aa241 100644
--- a/srcpkgs/mpv/template
+++ b/srcpkgs/mpv/template
@@ -1,7 +1,7 @@
 # Template file for 'mpv'
 pkgname=mpv
 version=0.35.0
-revision=1
+revision=2
 build_style=meson
 configure_args="-Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled
  -Dlibmpv=true -Dcplugins=enabled

From eb0b561a3c9996a9fc96f5edac9f3a5de842c872 Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:04:48 +0000
Subject: [PATCH 4/4] vlc: revbump for libplacebo-5.229.1

---
 srcpkgs/vlc/patches/libplacebo-v5.patch | 113 ++++++++++++++++++++++++
 srcpkgs/vlc/template                    |   2 +-
 2 files changed, 114 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/vlc/patches/libplacebo-v5.patch

diff --git a/srcpkgs/vlc/patches/libplacebo-v5.patch b/srcpkgs/vlc/patches/libplacebo-v5.patch
new file mode 100644
index 000000000000..3fa20249db7e
--- /dev/null
+++ b/srcpkgs/vlc/patches/libplacebo-v5.patch
@@ -0,0 +1,113 @@
+Patch from Arch Linux
+https://raw.githubusercontent.com/archlinux/svntogit-packages/e35c373bdfcafaabbdf6af9108090f130de66b14/trunk/libplacebo-5.patch
+
+---
+
+patch vaguely ported from: https://code.videolan.org/videolan/vlc/-/merge_requests/2233
+
+diff --git a/modules/video_output/opengl/converter.h b/modules/video_output/opengl/converter.h
+index 7000e1f..49fa667 100644
+--- a/modules/video_output/opengl/converter.h
++++ b/modules/video_output/opengl/converter.h
+@@ -26,6 +26,9 @@
+ #include <vlc_picture_pool.h>
+ #include <vlc_opengl.h>
+
++#include <libplacebo/log.h>
++#include <libplacebo/shaders.h>
++
+ /* if USE_OPENGL_ES2 is defined, OpenGL ES version 2 will be used, otherwise
+  * normal OpenGL will be used */
+ #ifdef __APPLE__
+@@ -253,10 +256,6 @@ static inline bool HasExtension(const char *apis, const char *api)
+     return false;
+ }
+
+-struct pl_context;
+-struct pl_shader;
+-struct pl_shader_res;
+-
+ /*
+  * Structure that is filled by "glhw converter" module probe function
+  * The implementation should initialize every members of the struct that are
+@@ -273,7 +272,7 @@ struct opengl_tex_converter_t
+     vlc_gl_t *gl;
+
+     /* libplacebo context, created by the caller (optional) */
+-    struct pl_context *pl_ctx;
++    pl_log pl_log;
+
+     /* Function pointers to OpenGL functions, set by the caller */
+     const opengl_vtable_t *vt;
+@@ -337,7 +336,7 @@ struct opengl_tex_converter_t
+     bool yuv_color;
+     GLfloat yuv_coefficients[16];
+
+-    struct pl_shader *pl_sh;
++    pl_shader pl_sh;
+     const struct pl_shader_res *pl_sh_res;
+
+     /* Private context */
+diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c
+index ecf7226..29f4148 100644
+--- a/modules/video_output/opengl/fragment_shaders.c
++++ b/modules/video_output/opengl/fragment_shaders.c
+@@ -611,7 +611,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
+
+ #ifdef HAVE_LIBPLACEBO
+     if (tc->pl_sh) {
+-        struct pl_shader *sh = tc->pl_sh;
++        pl_shader sh = tc->pl_sh;
+         struct pl_color_map_params color_params = pl_color_map_default_params;
+         color_params.intent = var_InheritInteger(tc->gl, "rendering-intent");
+         color_params.tone_mapping_algo = var_InheritInteger(tc->gl, "tone-mapping");
+@@ -634,7 +634,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
+                 pl_color_space_from_video_format(&tc->fmt),
+                 dst_space, NULL, false);
+
+-        struct pl_shader_obj *dither_state = NULL;
++        pl_shader_obj dither_state = NULL;
+         int method = var_InheritInteger(tc->gl, "dither-algo");
+         if (method >= 0) {
+
+diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
+index 13d65e0..1ee99af 100644
+--- a/modules/video_output/opengl/vout_helper.c
++++ b/modules/video_output/opengl/vout_helper.c
+@@ -570,8 +570,7 @@ opengl_deinit_program(vout_display_opengl_t *vgl, struct prgm *prgm)
+
+ #ifdef HAVE_LIBPLACEBO
+     FREENULL(tc->uloc.pl_vars);
+-    if (tc->pl_ctx)
+-        pl_context_destroy(&tc->pl_ctx);
++    pl_log_destroy(&tc->pl_log);
+ #endif
+
+     vlc_object_release(tc);
+@@ -622,21 +621,21 @@ opengl_init_program(vout_display_opengl_t *vgl, struct prgm *prgm,
+     // create the main libplacebo context
+     if (!subpics)
+     {
+-        tc->pl_ctx = pl_context_create(PL_API_VER, &(struct pl_context_params) {
++        tc->pl_log = pl_log_create(PL_API_VER, &(struct pl_log_params) {
+             .log_cb    = log_cb,
+             .log_priv  = tc,
+             .log_level = PL_LOG_INFO,
+         });
+-        if (tc->pl_ctx) {
++        if (tc->pl_log) {
+ #   if PL_API_VER >= 20
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, &(struct pl_shader_params) {
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, &(struct pl_shader_params) {
+                 .glsl.version = tc->glsl_version,
+                 .glsl.gles = tc->is_gles,
+             });
+ #   elif PL_API_VER >= 6
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0);
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, NULL, 0);
+ #   else
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0, 0);
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, NULL, 0, 0);
+ #   endif
+         }
+     }
diff --git a/srcpkgs/vlc/template b/srcpkgs/vlc/template
index e35a23e96bb6..25867af43440 100644
--- a/srcpkgs/vlc/template
+++ b/srcpkgs/vlc/template
@@ -1,7 +1,7 @@
 # Template file for 'vlc'
 pkgname=vlc
 version=3.0.18
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--disable-gme --disable-libtar --enable-jack
  --enable-live555 --disable-fluidsynth --enable-dvdread

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Updated] libplacebo: update to 5.229.1
  2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
  2022-11-27 18:06 ` [PR PATCH] [Updated] " mmnmnnmnmm
  2022-11-27 18:08 ` mmnmnnmnmm
@ 2022-12-18 16:54 ` mmnmnnmnmm
  2023-02-18 12:38 ` mmnmnnmnmm
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmnmnnmnmm @ 2022-12-18 16:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]

There is an updated pull request by mmnmnnmnmm against master on the void-packages repository

https://github.com/mmnmnnmnmm/void-packages libplacebo
https://github.com/void-linux/void-packages/pull/40807

libplacebo: update to 5.229.1
I am unable to test Vulkan output, but OpenGL works fine.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv6l-musl (cross)



A patch file from https://github.com/void-linux/void-packages/pull/40807.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libplacebo-40807.patch --]
[-- Type: text/x-diff, Size: 10054 bytes --]

From fa9bca28bf61c3ca4010bdb19f51e4ea4591c382 Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:02:51 +0000
Subject: [PATCH 1/4] New package: python3-glad-2.0.2

---
 srcpkgs/python3-glad/template | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 srcpkgs/python3-glad/template

diff --git a/srcpkgs/python3-glad/template b/srcpkgs/python3-glad/template
new file mode 100644
index 000000000000..fcaf41654fe6
--- /dev/null
+++ b/srcpkgs/python3-glad/template
@@ -0,0 +1,23 @@
+# Template file for 'python3-glad'
+pkgname=python3-glad
+version=2.0.2
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Jinja2"
+checkdepends="python3-Jinja2 python3-mock python3-nose"
+short_desc="Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator"
+maintainer="mmnmnnmnmm <mnnnm@disroot.org>"
+license="MIT"
+homepage="https://glad.dav1d.de/"
+distfiles="https://github.com/Dav1dde/glad/archive/refs/tags/v${version}.tar.gz"
+checksum=0326d59b1ccf8ccae1fface5bfb71bec1bb41fbe2341e722b31f6acac3068aeb
+make_check=no	# Jinja2 raises exceptions
+
+do_check() {
+	nosetests
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 9db63d2da68700f4ffdaa998e8d4e317b1830bd6 Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:03:49 +0000
Subject: [PATCH 2/4] libplacebo: update to 5.229.1

---
 common/shlibs               |  2 +-
 srcpkgs/libplacebo/template | 18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/common/shlibs b/common/shlibs
index ba5c89ee3bad..a5dab6ea258d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3451,7 +3451,7 @@ libSoapySDR.so.0.8 SoapySDR-0.8.1_1
 libeditorconfig.so.0 editorconfig-0.12.2_1
 libcfitsio.so.10 cfitsio-4.2.0_1
 libapparmor.so.1 libapparmor-2.12.0_1
-libplacebo.so.208 libplacebo-4.208.0_1
+libplacebo.so.229 libplacebo-5.229.1_1
 libw2xc.so waifu2x-converter-cpp-5.2_1
 libnova-0.15.so.0 libnova-0.15.0_1
 libcue.so.2 libcue-2.2.0_1
diff --git a/srcpkgs/libplacebo/template b/srcpkgs/libplacebo/template
index b58d978095d1..c663d3758f1b 100644
--- a/srcpkgs/libplacebo/template
+++ b/srcpkgs/libplacebo/template
@@ -1,32 +1,32 @@
 # Template file for 'libplacebo'
 pkgname=libplacebo
-version=4.208.0
+version=5.229.1
 revision=1
 build_style=meson
 configure_args="-Dshaderc=enabled -Dvulkan=enabled
- -Dlcms=$(vopt_if lcms en dis)abled -Dopengl=$(vopt_if opengl en dis)abled"
-hostmakedepends="pkg-config python3-Mako Vulkan-Headers"
-makedepends="shaderc Vulkan-Headers vulkan-loader $(vopt_if lcms lcms2-devel)
- $(vopt_if opengl libepoxy-devel)"
+ -Dlcms=$(vopt_if lcms en dis)abled -Ddemos=false -Dtests=true"
+hostmakedepends="pkg-config Vulkan-Headers python3-glad"
+makedepends="shaderc Vulkan-Headers vulkan-loader python3-MarkupSafe
+ python3-Jinja2 $(vopt_if lcms lcms2-devel)"
 short_desc="Reusable library for GPU-accelerated video/image rendering"
 maintainer="Enrico Belleri <idesmi@protonmail.com>"
 license="LGPL-2.1-or-later"
 homepage="https://code.videolan.org/videolan/libplacebo"
 distfiles="https://code.videolan.org/videolan/libplacebo/-/archive/v${version}/libplacebo-v${version}.tar.gz"
-checksum=7b3c857934ee3d30f743e43d7f0606e10950806661ea0ea385f8a1f06cbab854
+checksum=fc021fc68376b92511977b5bd32340fc575dc36af5c471cc095b5b7e3fa581d4
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
 	LDFLAGS+=" -latomic"
 fi
 
-build_options="lcms opengl"
-build_options_default="lcms opengl"
+build_options="lcms"
+build_options_default="lcms"
 desc_option_lcms="Enable support for LittleCMS 2 engine"
 
 libplacebo-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision} vulkan-loader
-	 $(vopt_if lcms lcms2-devel) $(vopt_if opengl libepoxy-devel)"
+	 $(vopt_if lcms lcms2-devel)"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include

From dda046e5fb978f62d20563f547464a7a6e5d902e Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 18 Dec 2022 14:51:28 +0000
Subject: [PATCH 3/4] mpv: revbump for libplacebo-5.229.1

---
 srcpkgs/mpv/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mpv/template b/srcpkgs/mpv/template
index 5dcef38aa241..74e94bc4451e 100644
--- a/srcpkgs/mpv/template
+++ b/srcpkgs/mpv/template
@@ -1,7 +1,7 @@
 # Template file for 'mpv'
 pkgname=mpv
 version=0.35.0
-revision=2
+revision=3
 build_style=meson
 configure_args="-Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled
  -Dlibmpv=true -Dcplugins=enabled

From 55408fd44889a42f07454b1354f138b60ca00519 Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:04:48 +0000
Subject: [PATCH 4/4] vlc: revbump for libplacebo-5.229.1

---
 srcpkgs/vlc/patches/libplacebo-v5.patch | 113 ++++++++++++++++++++++++
 srcpkgs/vlc/template                    |   2 +-
 2 files changed, 114 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/vlc/patches/libplacebo-v5.patch

diff --git a/srcpkgs/vlc/patches/libplacebo-v5.patch b/srcpkgs/vlc/patches/libplacebo-v5.patch
new file mode 100644
index 000000000000..3fa20249db7e
--- /dev/null
+++ b/srcpkgs/vlc/patches/libplacebo-v5.patch
@@ -0,0 +1,113 @@
+Patch from Arch Linux
+https://raw.githubusercontent.com/archlinux/svntogit-packages/e35c373bdfcafaabbdf6af9108090f130de66b14/trunk/libplacebo-5.patch
+
+---
+
+patch vaguely ported from: https://code.videolan.org/videolan/vlc/-/merge_requests/2233
+
+diff --git a/modules/video_output/opengl/converter.h b/modules/video_output/opengl/converter.h
+index 7000e1f..49fa667 100644
+--- a/modules/video_output/opengl/converter.h
++++ b/modules/video_output/opengl/converter.h
+@@ -26,6 +26,9 @@
+ #include <vlc_picture_pool.h>
+ #include <vlc_opengl.h>
+
++#include <libplacebo/log.h>
++#include <libplacebo/shaders.h>
++
+ /* if USE_OPENGL_ES2 is defined, OpenGL ES version 2 will be used, otherwise
+  * normal OpenGL will be used */
+ #ifdef __APPLE__
+@@ -253,10 +256,6 @@ static inline bool HasExtension(const char *apis, const char *api)
+     return false;
+ }
+
+-struct pl_context;
+-struct pl_shader;
+-struct pl_shader_res;
+-
+ /*
+  * Structure that is filled by "glhw converter" module probe function
+  * The implementation should initialize every members of the struct that are
+@@ -273,7 +272,7 @@ struct opengl_tex_converter_t
+     vlc_gl_t *gl;
+
+     /* libplacebo context, created by the caller (optional) */
+-    struct pl_context *pl_ctx;
++    pl_log pl_log;
+
+     /* Function pointers to OpenGL functions, set by the caller */
+     const opengl_vtable_t *vt;
+@@ -337,7 +336,7 @@ struct opengl_tex_converter_t
+     bool yuv_color;
+     GLfloat yuv_coefficients[16];
+
+-    struct pl_shader *pl_sh;
++    pl_shader pl_sh;
+     const struct pl_shader_res *pl_sh_res;
+
+     /* Private context */
+diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c
+index ecf7226..29f4148 100644
+--- a/modules/video_output/opengl/fragment_shaders.c
++++ b/modules/video_output/opengl/fragment_shaders.c
+@@ -611,7 +611,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
+
+ #ifdef HAVE_LIBPLACEBO
+     if (tc->pl_sh) {
+-        struct pl_shader *sh = tc->pl_sh;
++        pl_shader sh = tc->pl_sh;
+         struct pl_color_map_params color_params = pl_color_map_default_params;
+         color_params.intent = var_InheritInteger(tc->gl, "rendering-intent");
+         color_params.tone_mapping_algo = var_InheritInteger(tc->gl, "tone-mapping");
+@@ -634,7 +634,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
+                 pl_color_space_from_video_format(&tc->fmt),
+                 dst_space, NULL, false);
+
+-        struct pl_shader_obj *dither_state = NULL;
++        pl_shader_obj dither_state = NULL;
+         int method = var_InheritInteger(tc->gl, "dither-algo");
+         if (method >= 0) {
+
+diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
+index 13d65e0..1ee99af 100644
+--- a/modules/video_output/opengl/vout_helper.c
++++ b/modules/video_output/opengl/vout_helper.c
+@@ -570,8 +570,7 @@ opengl_deinit_program(vout_display_opengl_t *vgl, struct prgm *prgm)
+
+ #ifdef HAVE_LIBPLACEBO
+     FREENULL(tc->uloc.pl_vars);
+-    if (tc->pl_ctx)
+-        pl_context_destroy(&tc->pl_ctx);
++    pl_log_destroy(&tc->pl_log);
+ #endif
+
+     vlc_object_release(tc);
+@@ -622,21 +621,21 @@ opengl_init_program(vout_display_opengl_t *vgl, struct prgm *prgm,
+     // create the main libplacebo context
+     if (!subpics)
+     {
+-        tc->pl_ctx = pl_context_create(PL_API_VER, &(struct pl_context_params) {
++        tc->pl_log = pl_log_create(PL_API_VER, &(struct pl_log_params) {
+             .log_cb    = log_cb,
+             .log_priv  = tc,
+             .log_level = PL_LOG_INFO,
+         });
+-        if (tc->pl_ctx) {
++        if (tc->pl_log) {
+ #   if PL_API_VER >= 20
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, &(struct pl_shader_params) {
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, &(struct pl_shader_params) {
+                 .glsl.version = tc->glsl_version,
+                 .glsl.gles = tc->is_gles,
+             });
+ #   elif PL_API_VER >= 6
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0);
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, NULL, 0);
+ #   else
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0, 0);
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, NULL, 0, 0);
+ #   endif
+         }
+     }
diff --git a/srcpkgs/vlc/template b/srcpkgs/vlc/template
index 25867af43440..210762b0a7e2 100644
--- a/srcpkgs/vlc/template
+++ b/srcpkgs/vlc/template
@@ -1,7 +1,7 @@
 # Template file for 'vlc'
 pkgname=vlc
 version=3.0.18
-revision=2
+revision=3
 build_style=gnu-configure
 configure_args="--disable-gme --disable-libtar --enable-jack
  --enable-live555 --disable-fluidsynth --enable-dvdread

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Updated] libplacebo: update to 5.229.1
  2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
                   ` (2 preceding siblings ...)
  2022-12-18 16:54 ` mmnmnnmnmm
@ 2023-02-18 12:38 ` mmnmnnmnmm
  2023-02-26 18:04 ` [PR REVIEW] libplacebo: update to 5.229.2 mhmdanas
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmnmnnmnmm @ 2023-02-18 12:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]

There is an updated pull request by mmnmnnmnmm against master on the void-packages repository

https://github.com/mmnmnnmnmm/void-packages libplacebo
https://github.com/void-linux/void-packages/pull/40807

libplacebo: update to 5.229.1
I am unable to test Vulkan output, but OpenGL works fine.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv6l-musl (cross)



A patch file from https://github.com/void-linux/void-packages/pull/40807.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libplacebo-40807.patch --]
[-- Type: text/x-diff, Size: 10054 bytes --]

From dfc8283e2450908110219eefe6604441feac0622 Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:02:51 +0000
Subject: [PATCH 1/4] New package: python3-glad-2.0.2

---
 srcpkgs/python3-glad/template | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 srcpkgs/python3-glad/template

diff --git a/srcpkgs/python3-glad/template b/srcpkgs/python3-glad/template
new file mode 100644
index 000000000000..fcaf41654fe6
--- /dev/null
+++ b/srcpkgs/python3-glad/template
@@ -0,0 +1,23 @@
+# Template file for 'python3-glad'
+pkgname=python3-glad
+version=2.0.2
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Jinja2"
+checkdepends="python3-Jinja2 python3-mock python3-nose"
+short_desc="Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator"
+maintainer="mmnmnnmnmm <mnnnm@disroot.org>"
+license="MIT"
+homepage="https://glad.dav1d.de/"
+distfiles="https://github.com/Dav1dde/glad/archive/refs/tags/v${version}.tar.gz"
+checksum=0326d59b1ccf8ccae1fface5bfb71bec1bb41fbe2341e722b31f6acac3068aeb
+make_check=no	# Jinja2 raises exceptions
+
+do_check() {
+	nosetests
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 445bf0b03c42cfe881cf336f8806b0c3faacff2f Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:03:49 +0000
Subject: [PATCH 2/4] libplacebo: update to 5.229.2

---
 common/shlibs               |  2 +-
 srcpkgs/libplacebo/template | 18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/common/shlibs b/common/shlibs
index 504d29f4cb98..281cd15fcfb4 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3448,7 +3448,7 @@ libSoapySDR.so.0.8 SoapySDR-0.8.1_1
 libeditorconfig.so.0 editorconfig-0.12.2_1
 libcfitsio.so.10 cfitsio-4.2.0_1
 libapparmor.so.1 libapparmor-2.12.0_1
-libplacebo.so.208 libplacebo-4.208.0_1
+libplacebo.so.229 libplacebo-5.229.2_1
 libw2xc.so waifu2x-converter-cpp-5.2_1
 libnova-0.15.so.0 libnova-0.15.0_1
 libcue.so.2 libcue-2.2.0_1
diff --git a/srcpkgs/libplacebo/template b/srcpkgs/libplacebo/template
index b58d978095d1..4d506bd9e477 100644
--- a/srcpkgs/libplacebo/template
+++ b/srcpkgs/libplacebo/template
@@ -1,32 +1,32 @@
 # Template file for 'libplacebo'
 pkgname=libplacebo
-version=4.208.0
+version=5.229.2
 revision=1
 build_style=meson
 configure_args="-Dshaderc=enabled -Dvulkan=enabled
- -Dlcms=$(vopt_if lcms en dis)abled -Dopengl=$(vopt_if opengl en dis)abled"
-hostmakedepends="pkg-config python3-Mako Vulkan-Headers"
-makedepends="shaderc Vulkan-Headers vulkan-loader $(vopt_if lcms lcms2-devel)
- $(vopt_if opengl libepoxy-devel)"
+ -Dlcms=$(vopt_if lcms en dis)abled -Ddemos=false -Dtests=true"
+hostmakedepends="pkg-config Vulkan-Headers python3-glad"
+makedepends="shaderc Vulkan-Headers vulkan-loader python3-MarkupSafe
+ python3-Jinja2 $(vopt_if lcms lcms2-devel)"
 short_desc="Reusable library for GPU-accelerated video/image rendering"
 maintainer="Enrico Belleri <idesmi@protonmail.com>"
 license="LGPL-2.1-or-later"
 homepage="https://code.videolan.org/videolan/libplacebo"
 distfiles="https://code.videolan.org/videolan/libplacebo/-/archive/v${version}/libplacebo-v${version}.tar.gz"
-checksum=7b3c857934ee3d30f743e43d7f0606e10950806661ea0ea385f8a1f06cbab854
+checksum=a42035c69e4a6373cb9856cc0c5736f24af4485006f3b29605ddffba377264db
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
 	LDFLAGS+=" -latomic"
 fi
 
-build_options="lcms opengl"
-build_options_default="lcms opengl"
+build_options="lcms"
+build_options_default="lcms"
 desc_option_lcms="Enable support for LittleCMS 2 engine"
 
 libplacebo-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision} vulkan-loader
-	 $(vopt_if lcms lcms2-devel) $(vopt_if opengl libepoxy-devel)"
+	 $(vopt_if lcms lcms2-devel)"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include

From 4089fc8a056219db1d1ab1f8c138f0289a567294 Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 18 Dec 2022 14:51:28 +0000
Subject: [PATCH 3/4] mpv: revbump for libplacebo-5.229.2

---
 srcpkgs/mpv/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mpv/template b/srcpkgs/mpv/template
index 0a56d037e194..e163c496c6eb 100644
--- a/srcpkgs/mpv/template
+++ b/srcpkgs/mpv/template
@@ -1,7 +1,7 @@
 # Template file for 'mpv'
 pkgname=mpv
 version=0.35.1
-revision=1
+revision=2
 build_style=meson
 configure_args="-Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled
  -Dlibmpv=true -Dcplugins=enabled

From 62b9a2beeb7f0bf70f8e466dde96fd4216f2dc45 Mon Sep 17 00:00:00 2001
From: mmnmnnmnmm <mnnnm@disroot.org>
Date: Sun, 27 Nov 2022 18:04:48 +0000
Subject: [PATCH 4/4] vlc: revbump for libplacebo-5.229.2

---
 srcpkgs/vlc/patches/libplacebo-v5.patch | 113 ++++++++++++++++++++++++
 srcpkgs/vlc/template                    |   2 +-
 2 files changed, 114 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/vlc/patches/libplacebo-v5.patch

diff --git a/srcpkgs/vlc/patches/libplacebo-v5.patch b/srcpkgs/vlc/patches/libplacebo-v5.patch
new file mode 100644
index 000000000000..3fa20249db7e
--- /dev/null
+++ b/srcpkgs/vlc/patches/libplacebo-v5.patch
@@ -0,0 +1,113 @@
+Patch from Arch Linux
+https://raw.githubusercontent.com/archlinux/svntogit-packages/e35c373bdfcafaabbdf6af9108090f130de66b14/trunk/libplacebo-5.patch
+
+---
+
+patch vaguely ported from: https://code.videolan.org/videolan/vlc/-/merge_requests/2233
+
+diff --git a/modules/video_output/opengl/converter.h b/modules/video_output/opengl/converter.h
+index 7000e1f..49fa667 100644
+--- a/modules/video_output/opengl/converter.h
++++ b/modules/video_output/opengl/converter.h
+@@ -26,6 +26,9 @@
+ #include <vlc_picture_pool.h>
+ #include <vlc_opengl.h>
+
++#include <libplacebo/log.h>
++#include <libplacebo/shaders.h>
++
+ /* if USE_OPENGL_ES2 is defined, OpenGL ES version 2 will be used, otherwise
+  * normal OpenGL will be used */
+ #ifdef __APPLE__
+@@ -253,10 +256,6 @@ static inline bool HasExtension(const char *apis, const char *api)
+     return false;
+ }
+
+-struct pl_context;
+-struct pl_shader;
+-struct pl_shader_res;
+-
+ /*
+  * Structure that is filled by "glhw converter" module probe function
+  * The implementation should initialize every members of the struct that are
+@@ -273,7 +272,7 @@ struct opengl_tex_converter_t
+     vlc_gl_t *gl;
+
+     /* libplacebo context, created by the caller (optional) */
+-    struct pl_context *pl_ctx;
++    pl_log pl_log;
+
+     /* Function pointers to OpenGL functions, set by the caller */
+     const opengl_vtable_t *vt;
+@@ -337,7 +336,7 @@ struct opengl_tex_converter_t
+     bool yuv_color;
+     GLfloat yuv_coefficients[16];
+
+-    struct pl_shader *pl_sh;
++    pl_shader pl_sh;
+     const struct pl_shader_res *pl_sh_res;
+
+     /* Private context */
+diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c
+index ecf7226..29f4148 100644
+--- a/modules/video_output/opengl/fragment_shaders.c
++++ b/modules/video_output/opengl/fragment_shaders.c
+@@ -611,7 +611,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
+
+ #ifdef HAVE_LIBPLACEBO
+     if (tc->pl_sh) {
+-        struct pl_shader *sh = tc->pl_sh;
++        pl_shader sh = tc->pl_sh;
+         struct pl_color_map_params color_params = pl_color_map_default_params;
+         color_params.intent = var_InheritInteger(tc->gl, "rendering-intent");
+         color_params.tone_mapping_algo = var_InheritInteger(tc->gl, "tone-mapping");
+@@ -634,7 +634,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
+                 pl_color_space_from_video_format(&tc->fmt),
+                 dst_space, NULL, false);
+
+-        struct pl_shader_obj *dither_state = NULL;
++        pl_shader_obj dither_state = NULL;
+         int method = var_InheritInteger(tc->gl, "dither-algo");
+         if (method >= 0) {
+
+diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
+index 13d65e0..1ee99af 100644
+--- a/modules/video_output/opengl/vout_helper.c
++++ b/modules/video_output/opengl/vout_helper.c
+@@ -570,8 +570,7 @@ opengl_deinit_program(vout_display_opengl_t *vgl, struct prgm *prgm)
+
+ #ifdef HAVE_LIBPLACEBO
+     FREENULL(tc->uloc.pl_vars);
+-    if (tc->pl_ctx)
+-        pl_context_destroy(&tc->pl_ctx);
++    pl_log_destroy(&tc->pl_log);
+ #endif
+
+     vlc_object_release(tc);
+@@ -622,21 +621,21 @@ opengl_init_program(vout_display_opengl_t *vgl, struct prgm *prgm,
+     // create the main libplacebo context
+     if (!subpics)
+     {
+-        tc->pl_ctx = pl_context_create(PL_API_VER, &(struct pl_context_params) {
++        tc->pl_log = pl_log_create(PL_API_VER, &(struct pl_log_params) {
+             .log_cb    = log_cb,
+             .log_priv  = tc,
+             .log_level = PL_LOG_INFO,
+         });
+-        if (tc->pl_ctx) {
++        if (tc->pl_log) {
+ #   if PL_API_VER >= 20
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, &(struct pl_shader_params) {
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, &(struct pl_shader_params) {
+                 .glsl.version = tc->glsl_version,
+                 .glsl.gles = tc->is_gles,
+             });
+ #   elif PL_API_VER >= 6
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0);
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, NULL, 0);
+ #   else
+-            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0, 0);
++            tc->pl_sh = pl_shader_alloc(tc->pl_log, NULL, 0, 0);
+ #   endif
+         }
+     }
diff --git a/srcpkgs/vlc/template b/srcpkgs/vlc/template
index 25867af43440..210762b0a7e2 100644
--- a/srcpkgs/vlc/template
+++ b/srcpkgs/vlc/template
@@ -1,7 +1,7 @@
 # Template file for 'vlc'
 pkgname=vlc
 version=3.0.18
-revision=2
+revision=3
 build_style=gnu-configure
 configure_args="--disable-gme --disable-libtar --enable-jack
  --enable-live555 --disable-fluidsynth --enable-dvdread

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR REVIEW] libplacebo: update to 5.229.2
  2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
                   ` (3 preceding siblings ...)
  2023-02-18 12:38 ` mmnmnnmnmm
@ 2023-02-26 18:04 ` mhmdanas
  2023-02-26 18:04 ` mhmdanas
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mhmdanas @ 2023-02-26 18:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 209 bytes --]

New review comment by mhmdanas on void-packages repository

https://github.com/void-linux/void-packages/pull/40807#discussion_r1118127720

Comment:
```suggestion
make_check=no # Jinja2 raises exceptions
```

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR REVIEW] libplacebo: update to 5.229.2
  2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
                   ` (5 preceding siblings ...)
  2023-02-26 18:04 ` mhmdanas
@ 2023-02-26 18:04 ` mhmdanas
  2023-02-26 18:09 ` mhmdanas
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mhmdanas @ 2023-02-26 18:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

New review comment by mhmdanas on void-packages repository

https://github.com/void-linux/void-packages/pull/40807#discussion_r1118127218

Comment:
Tests should only be enabled when checks are enabled:

```suggestion
 -Dlcms=$(vopt_if lcms en dis)abled -Ddemos=false"
```

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR REVIEW] libplacebo: update to 5.229.2
  2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
                   ` (4 preceding siblings ...)
  2023-02-26 18:04 ` [PR REVIEW] libplacebo: update to 5.229.2 mhmdanas
@ 2023-02-26 18:04 ` mhmdanas
  2023-02-26 18:04 ` mhmdanas
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mhmdanas @ 2023-02-26 18:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 374 bytes --]

New review comment by mhmdanas on void-packages repository

https://github.com/void-linux/void-packages/pull/40807#discussion_r1118127524

Comment:
```suggestion
fi

if [ -n "$XBPS_CHECK_PKGS" ]; then
	configure_args+=" -Dtests=true"
else
	configure_args+=" -Dtests=false"
fi
```

(I like to add both branches just in case the default value of the option changes)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR REVIEW] libplacebo: update to 5.229.2
  2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
                   ` (6 preceding siblings ...)
  2023-02-26 18:04 ` mhmdanas
@ 2023-02-26 18:09 ` mhmdanas
  2023-02-26 18:33 ` mhmdanas
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mhmdanas @ 2023-02-26 18:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 244 bytes --]

New review comment by mhmdanas on void-packages repository

https://github.com/void-linux/void-packages/pull/40807#discussion_r1118127720

Comment:
```suggestion
make_check=no # Jinja2 raises exceptions

do_check() {
	nosetests
}
```



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: libplacebo: update to 5.229.2
  2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
                   ` (7 preceding siblings ...)
  2023-02-26 18:09 ` mhmdanas
@ 2023-02-26 18:33 ` mhmdanas
  2023-05-28  2:00 ` github-actions
  2023-06-11  2:09 ` [PR PATCH] [Closed]: " github-actions
  10 siblings, 0 replies; 12+ messages in thread
From: mhmdanas @ 2023-02-26 18:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 212 bytes --]

New comment by mhmdanas on void-packages repository

https://github.com/void-linux/void-packages/pull/40807#issuecomment-1445430044

Comment:
Tested PR (also not with Vulkan but OpenGL) and can confirm it works.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: libplacebo: update to 5.229.2
  2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
                   ` (8 preceding siblings ...)
  2023-02-26 18:33 ` mhmdanas
@ 2023-05-28  2:00 ` github-actions
  2023-06-11  2:09 ` [PR PATCH] [Closed]: " github-actions
  10 siblings, 0 replies; 12+ messages in thread
From: github-actions @ 2023-05-28  2:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/40807#issuecomment-1565796633

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Closed]: libplacebo: update to 5.229.2
  2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
                   ` (9 preceding siblings ...)
  2023-05-28  2:00 ` github-actions
@ 2023-06-11  2:09 ` github-actions
  10 siblings, 0 replies; 12+ messages in thread
From: github-actions @ 2023-06-11  2:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]

There's a closed pull request on the void-packages repository

libplacebo: update to 5.229.2
https://github.com/void-linux/void-packages/pull/40807

Description:
I am unable to test Vulkan output, but OpenGL works fine.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv6l-musl (cross)



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-06-11  2:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-27 17:56 [PR PATCH] libplacebo: update to 5.229.1 mmnmnnmnmm
2022-11-27 18:06 ` [PR PATCH] [Updated] " mmnmnnmnmm
2022-11-27 18:08 ` mmnmnnmnmm
2022-12-18 16:54 ` mmnmnnmnmm
2023-02-18 12:38 ` mmnmnnmnmm
2023-02-26 18:04 ` [PR REVIEW] libplacebo: update to 5.229.2 mhmdanas
2023-02-26 18:04 ` mhmdanas
2023-02-26 18:04 ` mhmdanas
2023-02-26 18:09 ` mhmdanas
2023-02-26 18:33 ` mhmdanas
2023-05-28  2:00 ` github-actions
2023-06-11  2:09 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).