From nobody Fri Jan 13 02:40:07 2023 X-Original-To: dev-commits-ports-all@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 4NtQcm0z7dz2pDWq; Fri, 13 Jan 2023 02:40:08 +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 4NtQcm0TgCz3sJJ; Fri, 13 Jan 2023 02:40:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673577608; 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=JcYrrXeOb+OAq0ywvjYUZi5jnrvar1ggEOvoPxNOpog=; b=CKa6TlgY/cb/vHleGCPVMRnwIIDFtjIfQkdkOcwqEdGN+jmyjMVtD3Smtnyvwf+e2ejUz/ I4JGud68DK9nYJlMcfCsh9gkwyGjbq0iUHM3YKiH8eIB/8nwGvPOd1oTib8hVi9wvnt1th uFjSnnmJq0MHXeK12z8//+xwohdIiojhGM3DhDC4yIZGqahBhfwWdzrsrEP95/4Wsmo9Cn uTyhNZ2W6wFLMAvG9qpdq2ewB8M9gkPL77kDxEM7sJC1XANjtQOkm9ncDZk7ktpDNy7UBG eTsQl9Mc61Vvfdcp4INhtuE8mSlVsGvQB//HOkoMb8aQHOPc+nWgymIl2J6xzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673577608; 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=JcYrrXeOb+OAq0ywvjYUZi5jnrvar1ggEOvoPxNOpog=; b=EAtUp2aNRBtsa3kDnwXgXOAHuIarYipfCkhgDUnt8eAY7m333vm8MIwbz0KqMH1B/cccxK hRUH+MATJieP6vA8sT+xWxgYG1RVI3yq8dlPYKkDzEBCc7Twmn3dYjx72S4UGuhjS+sABb kHV6UOKwGhU5hlQipjhCj/D8dAEWmMBi4Pv1Jg/1SPWfkPW8zX1O7CSFrGv4sVkXHZlEKA MwxZRxyUmRLTZVgNxC84gMMKUIEPXntF63r1dLNHzrGiJU3bWDRv0MM6+UGFZs5evZXhvf BbAVqGQ8jiHEwbda87PHLHf9dNLhR4+xT4A/UL6Hbpqc46xPKD3mDTUsykiNEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673577608; a=rsa-sha256; cv=none; b=dorHqtVfVw4zzEmkvZ1ObWE+V0rl25LIwSa2CaAhW+myHcE43anJfTliGzIk1sHe0sKKvb ILBsmXtk3gsVNnJeDPX4pXcG7PYhfRgr8KNVZB+C6bbD4hmoXCZuTMNEC9PH/jVBPRpKFX 4AhJPT8mcpMjcZhZ8mZ1GaK7Qr9tyNr9Q+Ek7yaqT1YBP7IUinOtFzAV73S0hscOay756c BbV5O2YSzgfIge4gca7eaTv1cLlpHCfRJYgwtERRgZMiwaW0xeBVqBWWzKvbSsy4VMQ5sx zyhct1e1/sfScXEQ+NH1rbr10zcEo63Mi2ULMo5AxH3V/k087YLXYEqAOloPxQ== 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 4NtQcl6XVVzrWt; Fri, 13 Jan 2023 02:40:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30D2e7KK027108; Fri, 13 Jan 2023 02:40:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30D2e7DK027105; Fri, 13 Jan 2023 02:40:07 GMT (envelope-from git) Date: Fri, 13 Jan 2023 02:40:07 GMT Message-Id: <202301130240.30D2e7DK027105@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Sato Subject: git: bb3de43f0f63 - main - print/html2ps: Replace POSIX::tmpnam() with File::Temp::tempfile() List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hrs X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bb3de43f0f63a2212cd82b7c44e957485b7609a5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hrs: URL: https://cgit.FreeBSD.org/ports/commit/?id=bb3de43f0f63a2212cd82b7c44e957485b7609a5 commit bb3de43f0f63a2212cd82b7c44e957485b7609a5 Author: Tom AuthorDate: 2023-01-13 02:38:19 +0000 Commit: Hiroki Sato CommitDate: 2023-01-13 02:39:22 +0000 print/html2ps: Replace POSIX::tmpnam() with File::Temp::tempfile() --- print/html2ps/Makefile | 2 +- print/html2ps/files/patch-html2ps | 24 ++++++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/print/html2ps/Makefile b/print/html2ps/Makefile index ca64b97ef1af..cd88412a6a6c 100644 --- a/print/html2ps/Makefile +++ b/print/html2ps/Makefile @@ -1,6 +1,6 @@ PORTNAME= html2ps DISTVERSION= 1.0b7 -PORTREVISION= 5 +PORTREVISION= 6 PORTEPOCH= 1 CATEGORIES= print www perl5 MASTER_SITES= LOCAL/hrs diff --git a/print/html2ps/files/patch-html2ps b/print/html2ps/files/patch-html2ps index 84c80ddf321f..c1d7f38df050 100644 --- a/print/html2ps/files/patch-html2ps +++ b/print/html2ps/files/patch-html2ps @@ -1,18 +1,21 @@ --- html2ps.orig 2010-05-07 11:22:12 UTC +++ html2ps -@@ -26,8 +26,9 @@ eval 'exec perl -S $0 "$@"' +@@ -26,9 +26,12 @@ eval 'exec perl -S $0 "$@"' # Set the name of the global configuration file. See the installation notes # and manual page for more details on configuration files. -$globrc='/it/sw/share/www/lib/html2ps/html2psrc'; -$ug='/it/sw/share/www/lib/html2ps/html2ps.html'; ++use File::Temp qw/tempfile/; + +$LIBPAPER=1; +$globrc='%%PREFIX%%/etc/html2psrc'; +$ug='%%DATADIR%%/html2ps.html'; - ++ $conf=<<'EOR'; @html2ps { -@@ -46,7 +47,7 @@ $conf=<<'EOR'; + package { +@@ -46,7 +49,7 @@ $conf=<<'EOR'; path: ""; } paper { @@ -21,7 +24,16 @@ height: ""; width: ""; } -@@ -613,6 +614,23 @@ for (0..10) { +@@ -495,7 +498,7 @@ die "Ghostscript is required to generate DSC PostScrip + if($opt_D && !$package{'Ghostscript'}); + die "Ghostscript is required to generate cross references\n" + if($opt_R && !$package{'Ghostscript'}); +-$tmpname=$posix?POSIX::tmpnam():"h2p_$$"; ++$tmpname = tempfile(); + ($scr=$tmpname)=~/\w+$/; + $tempdir=$`; + +@@ -613,6 +616,23 @@ for (0..10) { $height{"b$_"}=int($temp*2**(1/2)*1000+.5)/10; } if(!$pagew || !$pageh) { @@ -45,7 +57,7 @@ if($width{"\L$paper{'type'}"}) { $paper{'width'}=$width{"\L$paper{'type'}"} if(!defined $paper{'width'}); $paper{'height'}=$height{"\L$paper{'type'}"} if(!defined $paper{'height'}); -@@ -620,6 +638,7 @@ if(!$pagew || !$pageh) { +@@ -620,6 +640,7 @@ if(!$pagew || !$pageh) { } elsif($paper{'type'}) { &dbg("Unknown paper type: $paper{'type'}\n"); } @@ -53,7 +65,7 @@ } if($opt_L) { $wl=$pageh-$mll-$mrl; -@@ -3405,7 +3424,6 @@ sub Getopts { +@@ -3405,7 +3426,6 @@ sub Getopts { local($optlist)=@_; local(@args,$_,$opt,$opts,$rest,$olist,$plist,$found,@popts); local($errs)=0;