From nobody Wed Jan 31 12:16:35 2024 X-Original-To: freebsd-questions@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 4TQ1HB1CMBz58Py4; Wed, 31 Jan 2024 12:16:38 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:7400:8808:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4TQ1H950t4z4WgP; Wed, 31 Jan 2024 12:16:37 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; none X-Catflap-Envelope-From: X-Catflap-Envelope-To: freebsd-hackers@FreeBSD.org Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [209.250.224.51]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 40VCGZuT001052; Wed, 31 Jan 2024 12:16:35 GMT (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 40VCGZSo001051; Wed, 31 Jan 2024 12:16:35 GMT (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202401311216.40VCGZSo001051@donotpassgo.dyslexicfish.net> Date: Wed, 31 Jan 2024 12:16:35 +0000 Organization: Dyslexic Fish To: wojtek@puchar.net, marietto2008@gmail.com Cc: freebsd-questions@FreeBSD.org, freebsd-hackers@FreeBSD.org Subject: Re: set : illegal option -o pipefail error while trying to upgrade pkg. References: <80d527f-df83-5657-6a2a-262156e08440@puchar.net> In-Reply-To: User-Agent: Heirloom mailx 12.4 7/29/08 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [209.250.224.51]); Wed, 31 Jan 2024 12:16:35 +0000 (GMT) X-Rspamd-Queue-Id: 4TQ1H950t4z4WgP X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:7400::/38, country:US] Mario Marietto wrote: > What I haven't understood is why you are talking about newer ports when the > only thing I do is to update ports using the same FreeBSD version,in this > case 10.4. I mean,upgrading ports without upgrading the version of > FreeBSD,can't mean to use newer ports,since I don't use a newer version of > the OS. The ports infrastucture (under /usr/ports/Mk) now contains scripts that set the "pipefail" option - these scripts are updated when you update the ports tree. I had an old out-of-date box for a while, and used this quick hack to get it to work. You need to run this after you update the ports tree: sed -i.bak '/^[[:space:]]*set [+-]o pipefail/d' /usr/ports/Mk/Scripts/* It removes the references to pipefail. This can mean that some build errors are potentially not trapped, but if that's the case you're likely to notice the failure anyway. Still best to update your system or your /bin/sh though! Cheers, Jamie