NetBSD Problem Report #56639

From www@netbsd.org  Mon Jan 17 07:19:58 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 13D651A9239
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 17 Jan 2022 07:19:58 +0000 (UTC)
Message-Id: <20220117071956.8FF8C1A923A@mollari.NetBSD.org>
Date: Mon, 17 Jan 2022 07:19:56 +0000 (UTC)
From: pekdon@gmail.com
Reply-To: pekdon@gmail.com
To: gnats-bugs@NetBSD.org
Subject: graphics/netpbm requires REPLACE_SH for Solaris
X-Send-Pr-Version: www-1.0

>Number:         56639
>Category:       pkg
>Synopsis:       graphics/netpbm requires REPLACE_SH for Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    adam
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 17 07:20:00 +0000 2022
>Last-Modified:  Wed Jan 19 10:50:56 +0000 2022
>Originator:     Claes Nstn
>Release:        trunk 2022-01-01
>Organization:
>Environment:
SunOS 5.10 i86pc i386 i86pc
>Description:
Some of the scripts, like anytopbm fails to execute using Solaris /bin/sh.
>How-To-Repeat:
Use anytopbm on Solaris 10:

$ anytopnm 
anytopnm: syntax error at line 541: `tempdir=$' unexpected
>Fix:
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index 788119e5c91..4b98200b151 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -39,6 +39,24 @@ REPLACE_PERL+=       editor/ppmshadow
 REPLACE_PERL+= generator/ppmrainbow
 REPLACE_PERL+= manweb
 REPLACE_SH+=   buildtools/stamp-date
+REPLACE_SH+=   converter/other/anytopnm
+REPLACE_SH+=   converter/other/pnmtoplainpnm
+REPLACE_SH+=   converter/ppm/hpcdtoppm/hpcdtoppm
+REPLACE_SH+=   converter/ppm/hpcdtoppm/pcdovtoppm
+REPLACE_SH+=   converter/pbm/pbmtox10bm
+REPLACE_SH+=   editor/pamstretch-gen
+REPLACE_SH+=   editor/pnmflip
+REPLACE_SH+=   editor/pnmmargin
+REPLACE_SH+=   editor/pnmquant
+REPLACE_SH+=   editor/pnmquantall
+REPLACE_SH+=   editor/ppmfade
+REPLACE_SH+=   editor/ppmquant
+REPLACE_SH+=   editor/ppmquantall
+REPLACE_SH+=   editor/ppmshadow
+REPLACE_SH+=   generator/pgmcrater
+REPLACE_SH+=   generator/ppmrainbow
+REPLACE_SH+=   other/pamfixtrunc
+REPLACE_SH+=   other/ppmtomap
 STAGEDIR=      ${WRKDIR}/staging
 WRKSRC=                ${WRKDIR}/netpbm


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->adam
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Wed, 19 Jan 2022 10:50:56 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.