diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-11-14 12:33:46 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-11-14 12:37:06 +0100 |
commit | 7363e212718580aa76308ea6b00a5a0c60f09142 (patch) | |
tree | 2d72698b485579fe5baf941da5dcd7d40bb274be /net-print | |
parent | dev-ruby/ascii85: add 2.0.1 (diff) | |
download | gentoo-7363e212718580aa76308ea6b00a5a0c60f09142.tar.gz gentoo-7363e212718580aa76308ea6b00a5a0c60f09142.tar.bz2 gentoo-7363e212718580aa76308ea6b00a5a0c60f09142.zip |
net-print/gutenprint: fix for modern C
Patch by Nuitari <nuitari@nuitari.net>
Closes: https://bugs.gentoo.org/935662
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/gutenprint/files/gutenprint-5.3.4-invalidint.patch | 13 | ||||
-rw-r--r-- | net-print/gutenprint/gutenprint-5.3.4-r2.ebuild | 5 |
2 files changed, 17 insertions, 1 deletions
diff --git a/net-print/gutenprint/files/gutenprint-5.3.4-invalidint.patch b/net-print/gutenprint/files/gutenprint-5.3.4-invalidint.patch new file mode 100644 index 000000000000..a39a974d78b0 --- /dev/null +++ b/net-print/gutenprint/files/gutenprint-5.3.4-invalidint.patch @@ -0,0 +1,13 @@ +--- gutenprint-5.3.4.orig/src/gimp2/print.c 2024-09-17 01:59:12.666943714 -0400 ++++ gutenprint-5.3.4/src/gimp2/print.c 2024-09-17 02:02:46.637482947 -0400 +@@ -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((gint32)(intptr_t)image_ID); ++ gint y = gimp_image_height((gint32)(intptr_t)image_ID); + if (*width > x) + *width = x; + if (*height > y) diff --git a/net-print/gutenprint/gutenprint-5.3.4-r2.ebuild b/net-print/gutenprint/gutenprint-5.3.4-r2.ebuild index 0fe23da68e57..7b623834aec4 100644 --- a/net-print/gutenprint/gutenprint-5.3.4-r2.ebuild +++ b/net-print/gutenprint/gutenprint-5.3.4-r2.ebuild @@ -39,7 +39,10 @@ RDEPEND=" DEPEND="${RDEPEND}" DOCS=( AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} ) -PATCHES=( "${FILESDIR}"/${PN}-5.3.1-cflags.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-5.3.1-cflags.patch + "${FILESDIR}"/${P}-invalidint.patch +) src_prepare() { default |