Index | Thread | Search

From:
Landry Breuil <landry@openbsd.org>
Subject:
Re: Fail early when extracting distfiles
To:
ports@openbsd.org
Date:
Wed, 30 Jul 2025 11:34:02 +0200

Download raw body.

Thread
Le Wed, Jul 30, 2025 at 10:54:10AM +0200, Jeremie Courreges-Anglas a écrit :
> 
> Most entries in EXTRACT_CASES look like ${decompressor} | tar -xf -.
> When the decompressor fails, for example because of a lack of memory,
> the error is currently ignored.  This results in an impartially extracted
> distfile, and weird patch / build errors in a later step.
> 
> The trick is to catch those pipe errors with the not-so-new pipefail
> option.  I've used this in in an almost complete bulk build on amd64
> and arm64.
> 
> ok?

definitely ok, and thanks !