pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/print/ghostscript-agpl
Module Name: pkgsrc
Committed By: jmcneill
Date: Tue Mar 24 10:42:21 UTC 2026
Modified Files:
pkgsrc/print/ghostscript-agpl: Makefile distinfo
Added Files:
pkgsrc/print/ghostscript-agpl/patches: patch-base_gdevmpla.c
Log Message:
ghostscript-agpl: Fix build on 32-bit platforms.
To generate a diff of this commit:
cvs rdiff -u -r1.105 -r1.106 pkgsrc/print/ghostscript-agpl/Makefile
cvs rdiff -u -r1.57 -r1.58 pkgsrc/print/ghostscript-agpl/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/print/ghostscript-agpl/patches/patch-base_gdevmpla.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/print/ghostscript-agpl/Makefile
diff -u pkgsrc/print/ghostscript-agpl/Makefile:1.105 pkgsrc/print/ghostscript-agpl/Makefile:1.106
--- pkgsrc/print/ghostscript-agpl/Makefile:1.105 Fri Feb 6 10:05:43 2026
+++ pkgsrc/print/ghostscript-agpl/Makefile Tue Mar 24 10:42:21 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.105 2026/02/06 10:05:43 wiz Exp $
+# $NetBSD: Makefile,v 1.106 2026/03/24 10:42:21 jmcneill Exp $
DISTNAME= ghostscript-${GS_VERSION}
PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/}
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_GITHUB:=ArtifexSoftware/}
GITHUB_PROJECT= ghostpdl-downloads
Index: pkgsrc/print/ghostscript-agpl/distinfo
diff -u pkgsrc/print/ghostscript-agpl/distinfo:1.57 pkgsrc/print/ghostscript-agpl/distinfo:1.58
--- pkgsrc/print/ghostscript-agpl/distinfo:1.57 Mon Mar 16 12:12:19 2026
+++ pkgsrc/print/ghostscript-agpl/distinfo Tue Mar 24 10:42:21 2026
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.57 2026/03/16 12:12:19 nia Exp $
+$NetBSD: distinfo,v 1.58 2026/03/24 10:42:21 jmcneill Exp $
BLAKE2s (ghostscript-10.06.0.tar.xz) = 52cf486c0daa8286f4e68e10a277c5cc66ac3ce1e7db5d781b16b42161ccc6b1
SHA512 (ghostscript-10.06.0.tar.xz) = e9efa6a334cf34703f565f5043dd794452270415b34c2bea260e9dac6c72ebbcbedfa2e4cb9029841f8f582bbce91be8160e135a190081f3262bcf04417f80f1
Size (ghostscript-10.06.0.tar.xz) = 68955484 bytes
+SHA1 (patch-base_gdevmpla.c) = ae36e9930262cb0ac0b26cb22c246ddec808bb3e
SHA1 (patch-base_gserrors_h) = 36c8fcf27fcb0bfdcc075ad96efe3e44fb727d9a
SHA1 (patch-base_lib.mak) = 1a10fc045e2d703095357a4cf40b97d83f90ad6a
SHA1 (patch-base_mkromfs.c) = 9d9afbd0fbb8c70c8f4f7de3cadc5b54541f0db0
Added files:
Index: pkgsrc/print/ghostscript-agpl/patches/patch-base_gdevmpla.c
diff -u /dev/null pkgsrc/print/ghostscript-agpl/patches/patch-base_gdevmpla.c:1.1
--- /dev/null Tue Mar 24 10:42:22 2026
+++ pkgsrc/print/ghostscript-agpl/patches/patch-base_gdevmpla.c Tue Mar 24 10:42:21 2026
@@ -0,0 +1,31 @@
+$NetBSD: patch-base_gdevmpla.c,v 1.1 2026/03/24 10:42:21 jmcneill Exp $
+
+Fix build on 32-bit platforms. check_64bit_multiply() takes an int64_t for
+number of bytes, and intptr_t / size_t may be 32-bit.
+
+--- base/gdevmpla.c.orig 2026-03-24 10:36:32.461181101 +0000
++++ base/gdevmpla.c
+@@ -1954,12 +1954,12 @@ mem_planar_strip_copy_rop2(gx_device * dev,
+ int i;
+ int j;
+ intptr_t chunky_sraster;
+- intptr_t nbytes;
++ int64_t nbytes;
+ byte **line_ptrs;
+ byte *sbuf, *buf;
+
+ chunky_sraster = sraster * (intptr_t)mdev->num_planar_planes;
+- if (check_64bit_multiply(height, chunky_sraster, (size_t *)&nbytes) != 0)
++ if (check_64bit_multiply(height, chunky_sraster, &nbytes) != 0)
+ return gs_note_error(gs_error_undefinedresult);
+ buf = gs_alloc_bytes(mdev->memory, nbytes, "mem_planar_strip_copy_rop(buf)");
+ if (buf == NULL) {
+@@ -2003,7 +2003,7 @@ mem_planar_strip_copy_rop2(gx_device * dev,
+ intptr_t i;
+ intptr_t chunky_t_raster;
+ int chunky_t_height;
+- intptr_t nbytes;
++ int64_t nbytes;
+ byte **line_ptrs;
+ byte *tbuf, *buf;
+ gx_strip_bitmap newtex;
Home |
Main Index |
Thread Index |
Old Index