gstreamermm: fix build with gcc>=11

This commit is contained in:
Duncaen 2022-10-10 15:05:53 +02:00
parent 103ed358dc
commit 115cd96ff1
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
2 changed files with 21 additions and 11 deletions

View File

@ -0,0 +1,17 @@
https://bugs.gentoo.org/786444
g_once_init_enter(void*) should NOT be passed a volatile argument:
https://developer.gnome.org/glib/stable/glib-Threads.html#g-once-init-enter
"While location has a volatile qualifier, this is a historical
artifact and the pointer passed to it should not be volatile."
--- gstreamermm-1.10.0/gstreamer/gstreamermm/register.h.orig 2017-10-20 12:26:46.000000000 +0300
+++ gstreamermm-1.10.0/gstreamer/gstreamermm/register.h 2021-05-25 17:52:13.031337753 +0300
@@ -110,7 +110,7 @@
/* The typedef for GType may be gulong or gsize, depending on the
* system and whether the compiler is c++ or not. The g_once_init_*
* functions always take a gsize * though ... */
- static volatile gsize gonce_data = 0;
+ static gsize gonce_data = 0;
if (g_once_init_enter (&gonce_data)) {
GTypeInfo info;

View File

@ -1,24 +1,18 @@
# Template file for 'gstreamermm'
pkgname=gstreamermm
version=1.10.0
revision=2
revision=3
build_style=gnu-configure
configure_args="--disable-plugins-bad"
hostmakedepends="pkg-config perl"
makedepends="gst-plugins-base1-devel pangomm-devel"
configure_args="--disable-plugins-bad"
short_desc="GStreamer API C++ bindings"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="GPL-2.0-only, LGPL-2.1-or-later"
homepage="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
license="GPL-2, GPL-2.1"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
distfiles="${GNOME_SITE}/gstreamermm/${version%.*}/gstreamermm-${version}.tar.xz"
checksum=be58fe9ef7d7e392568ec85e80a84f4730adbf91fb0355ff7d7c616675ea8d60
post_install() {
vlicense COPYING
vlicense COPYING.examples
vlicense COPYING.tools
}
gstreamermm-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
@ -30,4 +24,3 @@ gstreamermm-devel_package() {
vmove usr/share
}
}