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 committed 2024-11-30 20:27:11 +09:00
1 parent 4b738d34d7
commit e36fb57526
2 files changed
+27 -8

No files matched your search

@@ -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;
@@ -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 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=8
inherit gnome2-utils meson xdg 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" HOMEPAGE="https://git.sr.ht/~martijnbraam/megapixels"
SRC_URI="https://gitlab.com/postmarketOS/megapixels/-/archive/${PV}/${P}.tar.bz2" SRC_URI="https://gitlab.com/postmarketOS/megapixels/-/archive/${PV}/${P}.tar.bz2"
@@ -14,17 +14,22 @@ SLOT="0"
KEYWORDS="~amd64 ~arm64" KEYWORDS="~amd64 ~arm64"
DEPEND=" DEPEND="
gui-libs/gtk dev-libs/glib:2
x11-libs/gtk+:3 gui-libs/gtk:4
media-libs/tiff
media-gfx/zbar media-gfx/zbar
media-libs/libepoxy media-libs/libepoxy
media-libs/libraw media-libs/tiff:=
"
RDEPEND="
${DEPEND}
media-gfx/dcraw media-gfx/dcraw
media-gfx/imagemagick media-gfx/imagemagick
" "
RDEPEND="${DEPEND}" PATCHES=(
# bug #945308
"${FILESDIR}/${P}-gcc15.patch"
)
pkg_postinst() { pkg_postinst() {
xdg_pkg_postinst xdg_pkg_postinst