gimp: update to 3.0.0.

This commit is contained in:
classabbyamp 2024-04-18 02:44:29 -04:00 committed by classabbyamp
parent bd68a85137
commit a29349e666
10 changed files with 80 additions and 352 deletions

View file

@ -554,15 +554,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1 libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1 libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1 libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
libgimp-2.0.so.0 libgimp-2.10.0_1 libgimp-3.0.so.0 libgimp-3.0.0_1
libgimpwidgets-2.0.so.0 libgimp-2.10.0_1 libgimpwidgets-3.0.so.0 libgimp-3.0.0_1
libgimpui-2.0.so.0 libgimp-2.10.0_1 libgimpui-3.0.so.0 libgimp-3.0.0_1
libgimpbase-2.0.so.0 libgimp-2.10.0_1 libgimpbase-3.0.so.0 libgimp-3.0.0_1
libgimpthumb-2.0.so.0 libgimp-2.10.0_1 libgimpthumb-3.0.so.0 libgimp-3.0.0_1
libgimpconfig-2.0.so.0 libgimp-2.10.0_1 libgimpconfig-3.0.so.0 libgimp-3.0.0_1
libgimpmath-2.0.so.0 libgimp-2.10.0_1 libgimpmath-3.0.so.0 libgimp-3.0.0_1
libgimpcolor-2.0.so.0 libgimp-2.10.0_1 libgimpcolor-3.0.so.0 libgimp-3.0.0_1
libgimpmodule-2.0.so.0 libgimp-2.10.0_1 libgimpmodule-3.0.so.0 libgimp-3.0.0_1
libgmic.so.3 gmic-3.1.6_1 libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1 libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1 libexiv2.so.28 exiv2-0.28.1_1

View file

@ -1 +0,0 @@
gimp

View file

@ -2,7 +2,7 @@
case "${ACTION}" in case "${ACTION}" in
pre) pre)
if [ "$UPDATE" = "yes" ]; then if [ "$UPDATE" = "yes" ]; then
xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi fi
;; ;;
esac esac

View file

@ -0,0 +1,21 @@
source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/atol.patch
commit f3237e747d854967a5333b5870dc7aae5cd19431
Author: q66 <q66@chimera-linux.org>
Date: Fri May 12 02:52:40 2023 +0200
don't use unsafe atol
diff --git a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
index 5a3b68e..81e8b0d 100644
--- a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+++ b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
@@ -1256,7 +1256,7 @@ static pointer mk_atom(scheme *sc, char *q) {
if(has_dec_point) {
return mk_real(sc,g_ascii_strtod(q,NULL));
}
- return (mk_integer(sc, atol(q)));
+ return (mk_integer(sc, strtol(q, NULL, 10)));
}
/* make atom from sharp expr representing constant.

View file

@ -0,0 +1,15 @@
source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/brushes.patch
diff --git a/meson.build b/meson.build
index daae225..7744671 100644
--- a/meson.build
+++ b/meson.build
@@ -378,7 +378,7 @@ lcms_minver = '2.8'
lcms = dependency('lcms2', version: '>='+lcms_minver)
libmypaint_minver = '1.3.0'
libmypaint = dependency('libmypaint', version: '>='+libmypaint_minver)
-mypaint_brushes = dependency('mypaint-brushes-1.0',version: '>='+libmypaint_minver)
+mypaint_brushes = dependency('mypaint-brushes-2.0',version: '>='+libmypaint_minver)
if not libmypaint.version().version_compare('>=1.4.0')
libmypaint_warning='''

View file

@ -1,18 +0,0 @@
--- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
@@ -14,6 +14,7 @@ else
libm = -lm
endif
+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
@@ -85,6 +86,7 @@ script_fu_SOURCES = \
scheme-wrapper.h
LDADD = \
+ $(libgimpmodule) \
$(libgimpui) \
$(libgimpwidgets) \
$(libgimpconfig) \

View file

@ -1,169 +0,0 @@
diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
index 064f2c4..b17d82f 100644
--- a/app/dialogs/dialogs.c
+++ b/app/dialogs/dialogs.c
@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
menu_factory);
gimp_dialog_factory_set_singleton (factory);
- for (i = 0; i < G_N_ELEMENTS (entries); i++)
+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
+ char *name, *blurb;
+ name = entries[i].name ? gettext(entries[i].name) : NULL;
+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
+
gimp_dialog_factory_register_entry (factory,
entries[i].identifier,
- gettext (entries[i].name),
- gettext (entries[i].blurb),
+ name,
+ blurb,
entries[i].icon_name,
entries[i].help_id,
entries[i].new_func,
@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
entries[i].hideable,
entries[i].image_window,
entries[i].dockable);
+ }
global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
}
diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
index 04bd1b6..12eff51 100644
--- a/app/widgets/gimpactiongroup.c
+++ b/app/widgets/gimpactiongroup.c
@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
for (i = 0; i < n_entries; i++)
{
GimpAction *action;
- const gchar *label;
+ const gchar *label = NULL;
const gchar *tooltip = NULL;
if (! gimp_action_group_check_unique_action (group, entries[i].name))
@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
if (msg_context)
{
- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+ if (entries[i].label)
+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
if (entries[i].tooltip)
tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
}
else
{
- label = gettext (entries[i].label);
- tooltip = gettext (entries[i].tooltip);
+ if (entries[i].label)
+ label = gettext (entries[i].label);
+ if (entries[i].tooltip)
+ tooltip = gettext (entries[i].tooltip);
}
action = gimp_action_impl_new (entries[i].name, label, tooltip,
@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
if (msg_context)
{
- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+ if (entries[i].label)
+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
if (entries[i].tooltip)
tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
}
else
{
- label = gettext (entries[i].label);
- tooltip = gettext (entries[i].tooltip);
+ if (entries[i].label)
+ label = gettext (entries[i].label);
+ if (entries[i].tooltip)
+ tooltip = gettext (entries[i].tooltip);
}
action = gimp_toggle_action_new (entries[i].name, label, tooltip,
@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
if (! gimp_action_group_check_unique_action (group, entries[i].name))
continue;
- if (msg_context)
+ if (msg_context)
{
- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+ if (entries[i].label)
+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
if (entries[i].tooltip)
tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
}
else
{
- label = gettext (entries[i].label);
- tooltip = gettext (entries[i].tooltip);
+ if (entries[i].label)
+ label = gettext (entries[i].label);
+ if (entries[i].tooltip)
+ tooltip = gettext (entries[i].tooltip);
}
action = gimp_radio_action_new (entries[i].name, label, tooltip,
@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
for (i = 0; i < n_entries; i++)
{
GimpEnumAction *action;
- const gchar *label;
+ const gchar *label = NULL;
const gchar *tooltip = NULL;
if (! gimp_action_group_check_unique_action (group, entries[i].name))
@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
if (msg_context)
{
- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+ if (entries[i].label)
+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
if (entries[i].tooltip)
tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
}
else
{
- label = gettext (entries[i].label);
- tooltip = gettext (entries[i].tooltip);
+ if (entries[i].label)
+ label = gettext (entries[i].label);
+ if (entries[i].tooltip)
+ tooltip = gettext (entries[i].tooltip);
}
action = gimp_enum_action_new (entries[i].name, label, tooltip,
@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
if (! gimp_action_group_check_unique_action (group, entries[i].name))
continue;
- if (msg_context)
+ if (msg_context)
{
- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+ if (entries[i].label)
+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
if (entries[i].tooltip)
tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
}
else
{
- label = gettext (entries[i].label);
- tooltip = gettext (entries[i].tooltip);
+ if (entries[i].label)
+ label = gettext (entries[i].label);
+ if (entries[i].tooltip)
+ tooltip = gettext (entries[i].tooltip);
}
action = gimp_string_action_new (entries[i].name, label, tooltip,

View file

@ -1,109 +0,0 @@
From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Fri, 13 Jan 2023 13:29:07 +0100
Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
Do not call the undeclared exit function. Implicit function
declarations are likely not going to be supported by future compilers
by default, changing the outcome of this configure probe with
such compilers.
---
configure.ac | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 03047899841..b8718955471 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
char *shmaddr;
id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
if (id == -1)
- exit (2);
+ return 2;
shmaddr = shmat (id, 0, 0);
shmctl (id, IPC_RMID, 0);
if ((char*) shmat (id, 0, 0) == (char*) -1)
{
shmdt (shmaddr);
- exit (1);
+ return 1;
}
shmdt (shmaddr);
shmdt (shmaddr);
- exit (0);
+ return 0;
}
]])],
[AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
diff --git a/configure b/configure
index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
--- a/configure
+++ b/configure
@@ -28898,17 +28898,17 @@ else $as_nop
char *shmaddr;
id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
if (id == -1)
- exit (2);
+ return 2;
shmaddr = shmat (id, 0, 0);
shmctl (id, IPC_RMID, 0);
if ((char*) shmat (id, 0, 0) == (char*) -1)
{
shmdt (shmaddr);
- exit (1);
+ return 1;
}
shmdt (shmaddr);
shmdt (shmaddr);
- exit (0);
+ return 0;
}
_ACEOF
---
GitLab
From 24df4f1fc800f11e44c44f8036e7d8d7ee90b62a Mon Sep 17 00:00:00 2001
From: Alx Sa <cmyk.student@gmail.com>
Date: Tue, 23 Jul 2024 21:21:53 +0000
Subject: [PATCH] plug-ins: Backport of fixes for gcc-14
This backports a2458f15 and 51311f91
for 2.10 so that it can build with
gcc-14.
---
plug-ins/file-tiff/file-tiff-load.c | 4 ++--
plug-ins/metadata/metadata-editor.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/plug-ins/file-tiff/file-tiff-load.c b/plug-ins/file-tiff/file-tiff-load.c
index 72e9538032e..4fc3b6c75f3 100644
--- a/plug-ins/file-tiff/file-tiff-load.c
+++ b/plug-ins/file-tiff/file-tiff-load.c
@@ -1301,8 +1301,8 @@ load_image (GFile *file,
/* any resolution info in the file? */
{
- gfloat xres = 72.0;
- gfloat yres = 72.0;
+ gdouble xres = 72.0;
+ gdouble yres = 72.0;
gushort read_unit;
GimpUnit unit = GIMP_UNIT_PIXEL; /* invalid unit */
diff --git a/plug-ins/metadata/metadata-editor.c b/plug-ins/metadata/metadata-editor.c
index 87a2e87098d..9e8a08a1770 100644
--- a/plug-ins/metadata/metadata-editor.c
+++ b/plug-ins/metadata/metadata-editor.c
@@ -2140,7 +2140,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
}
else
{
- if (! g_strv_contains (values, equiv_values[evi]))
+ if (! g_strv_contains ((const gchar * const *) values, equiv_values[evi]))
{
gchar *tmpvalue;
--
GitLab

View file

@ -1,20 +0,0 @@
--- a/configure.ac 2024-08-29 18:28:19.457012043 -0500
+++ b/configure.ac 2024-08-29 18:28:29.154953488 -0500
@@ -1843,13 +1843,13 @@
can_import_avif=no
can_export_avif=no
if test "x$have_libheif" = xyes; then
- can_import_heic=`$PKG_CONFIG --variable=builtin_h265_decoder libheif`
- can_export_heic=`$PKG_CONFIG --variable=builtin_h265_encoder libheif`
+ can_import_heic=yes
+ can_export_heic=yes
if test "x$can_import_heic" = xyes; then
MIME_TYPES="$MIME_TYPES;image/heif;image/heic"
fi
- can_import_avif=`$PKG_CONFIG --variable=builtin_avif_decoder libheif`
- can_export_avif=`$PKG_CONFIG --variable=builtin_avif_encoder libheif`
+ can_import_avif=yes
+ can_export_avif=yes
if test "x$can_import_avif" = xyes; then
MIME_TYPES="$MIME_TYPES;image/avif"
fi

View file

@ -1,34 +1,40 @@
# Template file for 'gimp' # Template file for 'gimp'
pkgname=gimp pkgname=gimp
version=2.10.38 version=3.0.0
revision=3 revision=1
build_style=gnu-configure build_style=meson
configure_args="--disable-check-update --datadir=/usr/share --disable-python" build_helper="gir qemu"
hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
libtool pkg-config perl-XML-Parser gtk-doc iso-codes" -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel AppStream gettext gi-docgen gobject-introspection
libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel yelp-tools librsvg-devel glib-devel"
libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1 makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
poppler-glib-devel glib-networking libwebp-devel libmypaint-devel mypaint-brushes librsvg-devel glib-networking appstream-glib-devel
libheif-devel libopenjpeg2-devel x265-devel gtk+-devel" libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1" libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
libunwind-devel lua51-lgi"
depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes python3-gobject gjs"
checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program" short_desc="GNU image manipulation program"
conf_files="/etc/gimp/${version%%.*}.0/*" conf_files="/etc/gimp/${version%%.*}.0/*"
maintainer="fosslinux <fosslinux@aussies.space>" maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only" license="GPL-3.0-only"
homepage="https://www.gimp.org" homepage="https://www.gimp.org"
changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS" distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version/+rc/-RC}.tar.xz"
distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2" checksum=93f1ca3d9d1bd8cac0e52c49fb886cbbe4b28222ee835bf1319e3287901d2d20
checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
lib32disabled=yes lib32disabled=yes
no_generic_pkgconfig_link=yes
pre_configure() { if [ "$CROSS_BUILD" ]; then
NOCONFIGURE=1 autoreconf -fi hostmakedepends+=" gimp"
# don't allow configure to set DATADIRNAME=lib fi
vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
} if [ -n "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dheadless-tests=enabled"
else
configure_args+=" -Dheadless-tests=disabled"
fi
libgimp_package() { libgimp_package() {
short_desc+=" - runtime libraries" short_desc+=" - runtime libraries"
@ -38,13 +44,16 @@ libgimp_package() {
} }
gimp-devel_package() { gimp-devel_package() {
depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}" depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files" short_desc+=" - development files"
pkg_install() { pkg_install() {
vmove usr/include vmove usr/include
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
vmove usr/share/aclocal
vmove "usr/lib/*.so" vmove "usr/lib/*.so"
if [ -z "$CROSS_BUILD" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
vmove usr/share/doc
fi
} }
} }