From nobody Sat Mar 02 21:57:01 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TnJhZ0QhWz5D2M3; Sat, 2 Mar 2024 21:57:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TnJhY6zWkz4ggx; Sat, 2 Mar 2024 21:57:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709416622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VM2dIM5+qRFhGnWHjfdyjSB7uwf3CGX3ETFupIxLpNA=; b=UF4N7n4bKI0KHdb2kb4BO7sISJHp1sN2FfU6GdffB//sMKrF3+Ukv5eEJQsTv41vP5S582 vPVNWtSItcyilKgqMqEGtId+EvOPuryOEi3BNGs9WOX1KjswizxTOfDVF63YSrG0IHiF3X 5ZqnqBHU/8L1qBZaXW+0acYj+RH8DMY5k3I5TDZdC9yRGa57tV+33VULUaecJDY59DTubl LWYkdK0R65kcUn8LQZ1QPiM9l5aDons//V4OJKvtKEjLN3D5LztUGSYCFIWTXK3u3l+XSL ogoNZiSHET+uEPJuJu/rNvmfCLPmDZOX42CR+R1SZXyia1sHvn6n03OjYjoONQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709416622; a=rsa-sha256; cv=none; b=e9hOJNlPpMIFJsLIRgiEm8lNsXMS2h1q9mXbFOrRjzI7iDYB6WKg+rJcV6cvtY0pK+uCF/ OFYE+1Rc7c0LkvQfZ+rhha5EBk9lv9uc/27R9H+1Kao1R5YY9BupCINs1IA2Any+yOR3Ds 3FFSzi3K8mx/4NcXwre0yuv3q0M1EZvd9Mq3l+fXT1UQe7K1BJYceuPrf7cpWohUQBMgie XeFbQ186SP0ACTngHzlzvDfXDPFeFsG6EqKss8kxBdtU04M4pNIx7eEeoU4zI7lrw7G52D lKCldnyoaJiNXPCQDhwO5Yz7+ITqzD+x56g20+xSmdqS1BVJGpBGnQoFA6lPbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709416622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VM2dIM5+qRFhGnWHjfdyjSB7uwf3CGX3ETFupIxLpNA=; b=na6CYe+2Uoo+TMN0YtabAmKR0pTJc455/uOgwXjHZIDQcALroQx523Op7QfYG0b+eCOiiU JIzMHNG23zfaYgYE3doY/KZHvN4YmP85TXYagzkVxyEWZFJ8tSPGu53/y5v+IZc2ttz9cD w8vbkFkt7a5mR7FS3JC6oCcCK+CVF27NtCJG7yc2shgzJaZw/JcWFR0Za0Xvr4wkxrYt2r Vhrasb87ZpAEM3E4hcYGAxncVsBJJs6L7K7DsgHiz1aLxjrDVKq14thqNJwuR66qtRonA0 21SR3CSpkkv8d5dWdjSFcwhnwMcLEG0UZu7r3SwG5sJMd4CNWUJOe/gGxnivCg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TnJhY6Zwvz1R49; Sat, 2 Mar 2024 21:57:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 422Lv1q6059978; Sat, 2 Mar 2024 21:57:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 422Lv11v059975; Sat, 2 Mar 2024 21:57:01 GMT (envelope-from git) Date: Sat, 2 Mar 2024 21:57:01 GMT Message-Id: <202403022157.422Lv11v059975@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Joseph Mingrone Subject: git: c9675e79436d - main - print/foomatic-filters: Patch Ghostscript call to count PDF pages List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c9675e79436d9e67e3f1e7795bed009020ded456 Auto-Submitted: auto-generated The branch main has been updated by jrm: URL: https://cgit.FreeBSD.org/ports/commit/?id=c9675e79436d9e67e3f1e7795bed009020ded456 commit c9675e79436d9e67e3f1e7795bed009020ded456 Author: Joseph Mingrone AuthorDate: 2024-03-02 16:00:16 +0000 Commit: Joseph Mingrone CommitDate: 2024-03-02 21:55:30 +0000 print/foomatic-filters: Patch Ghostscript call to count PDF pages Before this patch, the Ghostscript call for counting PDF pages used the obsolete "pdfdict". Patch to use "runpdfbegin" instead. For more information, see Arch Linux bug 62251. https://bugs.archlinux.org/task/62251 Reported by: Thomas Vaughan Sponsored by: The FreeBSD Foundation --- print/foomatic-filters/Makefile | 2 +- print/foomatic-filters/files/patch-pdf.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/print/foomatic-filters/Makefile b/print/foomatic-filters/Makefile index e69d5fa58e72..07fbf57f7db5 100644 --- a/print/foomatic-filters/Makefile +++ b/print/foomatic-filters/Makefile @@ -1,6 +1,6 @@ PORTNAME= foomatic-filters PORTVERSION= 4.0.17 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= print MASTER_SITES= http://www.openprinting.org/download/foomatic/ diff --git a/print/foomatic-filters/files/patch-pdf.c b/print/foomatic-filters/files/patch-pdf.c new file mode 100644 index 000000000000..2abffc572915 --- /dev/null +++ b/print/foomatic-filters/files/patch-pdf.c @@ -0,0 +1,14 @@ +--- pdf.c.orig 2012-07-02 14:50:46 UTC ++++ pdf.c +@@ -46,9 +46,8 @@ static int pdf_count_pages(const char *filename) + int pagecount; + + snprintf(gscommand, 4095, "%s -dNODISPLAY -q -c " +- "'/pdffile (%s) (r) file def pdfdict begin pdffile pdfopen begin " +- "(PageCount: ) print pdfpagecount == flush currentdict pdfclose " +- "end end quit'", ++ "'/pdffile (%s) (r) file runpdfbegin (PageCount: ) print " ++ "pdfpagecount = quit'", + gspath, filename); + + FILE *pd = popen(gscommand, "r");