Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Mar 2023 17:13:25 GMT
From:      Christoph Moench-Tegeder <cmt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 68c402ae8744 - main - print/gutenprint: fix build with LLVM 15
Message-ID:  <202303051713.325HDPbv026972@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cmt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=68c402ae8744294ecb65d34960dea1fd233b9411

commit 68c402ae8744294ecb65d34960dea1fd233b9411
Author:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
AuthorDate: 2023-03-05 17:11:54 +0000
Commit:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: 2023-03-05 17:11:54 +0000

    print/gutenprint: fix build with LLVM 15
    
    as observed on -CURRENT as of now.
    
    PR:             269972
    Reported by:    ohartmann@walstatt.org
---
 print/gutenprint/files/patch-src_gimp2_print.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/print/gutenprint/files/patch-src_gimp2_print.c b/print/gutenprint/files/patch-src_gimp2_print.c
new file mode 100644
index 000000000000..20f63594c0b6
--- /dev/null
+++ b/print/gutenprint/files/patch-src_gimp2_print.c
@@ -0,0 +1,13 @@
+--- src/gimp2/print.c.orig	2023-03-05 16:39:18.726997000 +0100
++++ src/gimp2/print.c	2023-03-05 16:39:46.126948000 +0100
+@@ -114,8 +114,8 @@
+ {
+   if (gimp_thumbnail_data)
+     g_free(gimp_thumbnail_data);
+-  gint x = gimp_image_width(image_ID);
+-  gint y = gimp_image_height(image_ID);
++  gint x = gimp_image_width(p2gint(image_ID));
++  gint y = gimp_image_height(p2gint(image_ID));
+   if (*width > x)
+     *width = x;
+   if (*height > y)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303051713.325HDPbv026972>