NetBSD Problem Report #60119

From gson@gson.org  Sun Mar 22 16:15:26 2026
Return-Path: <gson@gson.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)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 204981A923D
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 22 Mar 2026 16:15:26 +0000 (UTC)
Message-Id: <20260322161522.5C8CD254503@guava.gson.org>
Date: Sun, 22 Mar 2026 18:15:22 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: evbarm-earmv7hf build fails on Linux host
X-Send-Pr-Version: 3.95
X-From4GNATS: "Andreas Gustafsson via gnats" <gnats-admin@NetBSD.org>

>Number:         60119
>Category:       port-evbarm
>Synopsis:       evbarm-earmv7hf build fails on Linux host
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-evbarm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 22 16:20:00 +0000 2026
>Closed-Date:    Sun Mar 22 20:14:32 +0000 2026
>Last-Modified:  Sun Mar 22 20:15:00 +0000 2026
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current, source date >= 2026.02.15.21.07.36
>Organization:

>Environment:
System: NetBSD
Architecture: earmv7hf
Machine: evbarm
>Description:

Building NetBSD-current/evbarm-earmv7hf on a Debian 12 host fails with
the error message:

   src/distrib/utils/embedded/mkimage: 49: set: Illegal option -o pipefail

since this commit:

   2026.02.15.21.07.36 riastradh src/distrib/utils/embedded/mkimage 1.94

For logs, see:

  https://www.gson.org/netbsd/bugs/build/evbarm-earmv7hf/commits-2026.02.html#2026.02.15.21.07.36

This is using the stock Debian /bin/sh which is a symlink to dash.

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: kre@NetBSD.org
State-Changed-When: Sun, 22 Mar 2026 20:14:32 +0000
State-Changed-Why:
The setting of the pipefail option has been reverted.

It was pointless, there are no pipes for it to have any effect upon.

Note however that up to date dash does support the option, it is
a posix standard option (since 2024).


From: "Robert Elz" <kre@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60119 CVS commit: src/distrib/utils/embedded
Date: Sun, 22 Mar 2026 20:11:36 +0000

 Module Name:	src
 Committed By:	kre
 Date:		Sun Mar 22 20:11:36 UTC 2026

 Modified Files:
 	src/distrib/utils/embedded: mkimage

 Log Message:
 PR 60119 - don't set -o pipefail (revert previous)

 I was going to make the setting of the pipefail option check if
 the executing shell supports the option or not (all should really,
 and up to date dash does - it is a standard option) - but then I
 looked at the script, and couldn't find a pipe used anywhere.

 The option is useless here.   So, bye-bye pipefail.


 To generate a diff of this commit:
 cvs rdiff -u -r1.94 -r1.95 src/distrib/utils/embedded/mkimage

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.