media-video/megapixels: fix build with GCC 15

Closes: https://bugs.gentoo.org/932831
Closes: https://bugs.gentoo.org/945308
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono 2024-11-30 20:27:11 +09:00
parent 4b738d34d7
commit e36fb57526
No known key found for this signature in database
GPG Key ID: 91CA2604719DDA61
2 changed files with 27 additions and 8 deletions

View File

@ -0,0 +1,14 @@
https://bugs.gentoo.org/945308
https://gitlab.com/megapixels-org/Megapixels/-/merge_requests/34
Fix build with GCC 15.
--- a/src/process_pipeline.c
+++ b/src/process_pipeline.c
@@ -693,7 +693,7 @@ mp_process_pipeline_process_image(MPBuffer buffer)
}
static void
-capture()
+capture(struct _MPPipeline *, const void *)
{
char template[] = "/tmp/megapixels.XXXXXX";
char *tempdir;

View File

@ -1,11 +1,11 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit gnome2-utils meson xdg
DESCRIPTION="A GTK3 camera application that knows how to deal with the media request api"
DESCRIPTION="GTK4 camera application that knows how to deal with the media request api"
HOMEPAGE="https://git.sr.ht/~martijnbraam/megapixels"
SRC_URI="https://gitlab.com/postmarketOS/megapixels/-/archive/${PV}/${P}.tar.bz2"
@ -14,17 +14,22 @@ SLOT="0"
KEYWORDS="~amd64 ~arm64"
DEPEND="
gui-libs/gtk
x11-libs/gtk+:3
media-libs/tiff
dev-libs/glib:2
gui-libs/gtk:4
media-gfx/zbar
media-libs/libepoxy
media-libs/libraw
media-libs/tiff:=
"
RDEPEND="
${DEPEND}
media-gfx/dcraw
media-gfx/imagemagick
"
RDEPEND="${DEPEND}"
PATCHES=(
# bug #945308
"${FILESDIR}/${P}-gcc15.patch"
)
pkg_postinst() {
xdg_pkg_postinst