Received: by mail.netbsd.org (Postfix, from userid 605) id 8850D84D84; Thu, 29 Feb 2024 03:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1709177293; bh=91bve5KSwv8ZhGoT+77Me8M43p6zXAbUJEN1IM6SPgU=; h=Date:From:Subject:To:Reply-To:List-Id:List-Unsubscribe; b=2kAQzBruMYUjoAc0L8zxNKmL65PTBMOu7IsAg+qlpqiwqSOAice5VIWMm+BtaOjbT V+gyw190DwwRC9w1FKy9HS/0svv13SwYpakYPVB3wu4UFtcIWWa3Gku9axgtOn3Cy6 DC2J8OIwfmbjefTT7jrhz2jPYsFnGhaEORbPnulU= Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 9D2EB84E57 for ; Thu, 29 Feb 2024 02:03:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id FZHSaI-wStMC for ; Thu, 29 Feb 2024 02:03:21 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id E726784CE8 for ; Thu, 29 Feb 2024 02:03:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1709172201; bh=91bve5KSwv8ZhGoT+77Me8M43p6zXAbUJEN1IM6SPgU=; h=Date:From:Subject:To:Reply-To; b=i43YQHCw3JouImA2VknTxwlhapHCany7FMVwQ1T0in+in+6aYbbin8tDBE4hmwyRZ kzGgDuXHCEtFjHZhsMZU+myP5jjkCEjYt9lwQCj8HEp0kBCXvEcBG7n3WW8IamlMwf Nb3fIfRE7DpJRFMVJj1+ArwK8i97zEYXxl0lbPt0= Received: by cvs.NetBSD.org (Postfix, from userid 500) id D8D5AFA27; Thu, 29 Feb 2024 02:03:20 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_170917220077610" MIME-Version: 1.0 Date: Thu, 29 Feb 2024 02:03:20 +0000 From: "Jason R Thorpe" Subject: CVS commit: pkgsrc/devel/icestorm To: pkgsrc-changes@NetBSD.org Reply-To: thorpej@netbsd.org X-Mailer: log_accum Message-Id: <20240229020320.D8D5AFA27@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_170917220077610 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: thorpej Date: Thu Feb 29 02:03:20 UTC 2024 Modified Files: pkgsrc/devel/icestorm: Makefile distinfo Added Files: pkgsrc/devel/icestorm/patches: patch-icebox_Makefile Log Message: On Darwin, add gsed to USE_TOOLS and patch the icestorm Makefile to stop working around a behavioral difference in the Darwin sed(1) -i option relative to other sed implementations. If textproc/nbsed supported the -i option, the USE_TOOLS change would not be necessary. But since the Darwin system sed(1) is not used in pkgsrc at the moment, the Makefile patch would still be required. See also PR pkg/57970. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/icestorm/Makefile \ pkgsrc/devel/icestorm/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/devel/icestorm/patches/patch-icebox_Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_170917220077610 Content-Disposition: inline Content-Length: 2832 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/devel/icestorm/Makefile diff -u pkgsrc/devel/icestorm/Makefile:1.1 pkgsrc/devel/icestorm/Makefile:1.2 --- pkgsrc/devel/icestorm/Makefile:1.1 Wed Feb 28 06:02:38 2024 +++ pkgsrc/devel/icestorm/Makefile Thu Feb 29 02:03:20 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2024/02/28 06:02:38 thorpej Exp $ +# $NetBSD: Makefile,v 1.2 2024/02/29 02:03:20 thorpej Exp $ # There are no release tags for icestorm ICESTORM_VERSION=0.0.20240227 @@ -13,8 +13,16 @@ HOMEPAGE= https://github.com/YosysHQ/ice COMMENT= Lattice iCE40 FPGAs Bitstream Documentation and tools LICENSE= isc +.include "../../mk/bsd.prefs.mk" + USE_LANGUAGES= c c++ USE_TOOLS+= gmake +.if ${OPSYS} == "Darwin" +# The -i option on Darwin sed(1) behaves differently, and textproc/nbsed +# (which gets substituted for the system sed(1) for other reasons) doesn't +# support the -i option. See also patches/patch-icebox_Makefile. +USE_TOOLS+= gsed +.endif REPLACE_PYTHON+= icebox/*.py Index: pkgsrc/devel/icestorm/distinfo diff -u pkgsrc/devel/icestorm/distinfo:1.1 pkgsrc/devel/icestorm/distinfo:1.2 --- pkgsrc/devel/icestorm/distinfo:1.1 Wed Feb 28 06:02:38 2024 +++ pkgsrc/devel/icestorm/distinfo Thu Feb 29 02:03:20 2024 @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1 2024/02/28 06:02:38 thorpej Exp $ +$NetBSD: distinfo,v 1.2 2024/02/29 02:03:20 thorpej Exp $ BLAKE2s (icestorm-0.0.20240227-1a40ae75d4eebee9cce73a2c4d634fd42ed0110f.tar.gz) = 511978571885ce362c39616dfb1fcccd5a1df31562b8cbb925547f15d5853cce SHA512 (icestorm-0.0.20240227-1a40ae75d4eebee9cce73a2c4d634fd42ed0110f.tar.gz) = f0bfbc0af651a5d1cc45ecc4ce6cb9f6a8fdf4797f17b2af7e70278f0786b8d063503606cbf624aee558a3e32a3dc7c595694ac335ce7b52bfece9b18b5543da Size (icestorm-0.0.20240227-1a40ae75d4eebee9cce73a2c4d634fd42ed0110f.tar.gz) = 948430 bytes +SHA1 (patch-icebox_Makefile) = 2b99d8c0e780c3b22a0697bfbd9e5b0259e0839d SHA1 (patch-icetime_iceutil.cc) = d5cd83337808631b148f64d9c2ac6157c0b4d823 Added files: Index: pkgsrc/devel/icestorm/patches/patch-icebox_Makefile diff -u /dev/null pkgsrc/devel/icestorm/patches/patch-icebox_Makefile:1.1 --- /dev/null Thu Feb 29 02:03:20 2024 +++ pkgsrc/devel/icestorm/patches/patch-icebox_Makefile Thu Feb 29 02:03:20 2024 @@ -0,0 +1,22 @@ +$NetBSD: patch-icebox_Makefile,v 1.1 2024/02/29 02:03:20 thorpej Exp $ + +Disable special case for Darwin sed(1); the package Makefile forces +the use of GNU sed(1) on Darwin. + +--- icebox/Makefile.orig 2024-02-28 20:06:15 ++++ icebox/Makefile 2024-02-28 18:31:57 +@@ -1,10 +1,10 @@ + include ../config.mk + +-ifneq ($(shell uname -s),Darwin) ++#ifneq ($(shell uname -s),Darwin) + SED_I = sed -i +-else +- SED_I = sed -i '' +-endif ++#else ++# SED_I = sed -i '' ++#endif + + all: chipdb-384.txt chipdb-1k.txt chipdb-8k.txt chipdb-5k.txt chipdb-lm4k.txt chipdb-u4k.txt + --_----------=_170917220077610--