NetBSD Problem Report #50022

From simonb@thistledown.com.au  Thu Jul  2 08:30:30 2015
Return-Path: <simonb@thistledown.com.au>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8A172A5858
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  2 Jul 2015 08:30:30 +0000 (UTC)
Message-Id: <20150702083027.03657598A0@thoreau.thistledown.com.au>
Date: Thu,  2 Jul 2015 18:30:27 +1000 (EST)
From: Simon Burge <simonb@NetBSD.org>
Reply-To: Simon Burge <simonb@NetBSD.org>
To: gnats-bugs@gnats.NetBSD.org
Subject: NetBSD 4.x can't build NetBSD 7.x
X-Send-Pr-Version: 3.95

>Number:         50022
>Category:       toolchain
>Synopsis:       NetBSD 4.x can't build NetBSD 7.x
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lukem
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 02 08:35:00 +0000 2015
>Closed-Date:    Sat Jun 10 07:21:09 +0000 2023
>Last-Modified:  Sat Jun 10 07:21:09 +0000 2023
>Originator:     Simon Burge
>Release:        NetBSD 7.0 RC1
>Organization:
>Environment:
	System: NetBSD thoreau.thistledown.com.au 4.0_STABLE NetBSD 4.0_STABLE (THOREAU-4) #7: Sun Sep 21 17:57:39 EST 2008 simonb@thoreau.thistledown.com.au:/usr/obj/sys/arch/i386/compile/THOREAU-4 i386
	Architecture: i386
	Machine: i386
>Description:
	Running build.sh on a netbsd-7 branch source tree from 02 July 2015
	gets an error trying to build the tools version of file:


	dependall ===> tools/file
	  [ ... ]
	checking whether /NetBSD/build7/tools/bin/nbmake supports nested variables... yes
	usage: rm [-f|-i] [-dPRrvW] file ...
	Oops!

	Your 'rm' program seems unable to run without file operands specified
	on the command line, even when the '-f' option is present.  This is contrary
	to the behaviour of most rm programs out there, and not conforming with
	the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>

	  [ ... ]

	configure: error: Your 'rm' program is bad, sorry.

	  [ ... ]

	Stop.
	nbmake[6]: stopped in /NetBSD/src7/tools/file

>How-To-Repeat:
	./build.sh ...
>Fix:
	NFI.  Must have been the leap second yesterday?!

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Thu, 18 May 2023 15:22:53 +0000
State-Changed-Why:

This is going to be an issue for any of the external tools that use automake
and have been generated with automake 1.13b or newer (released 2013-05-31).
See upstream commit:
  https://git.savannah.gnu.org/cgit/automake.git/commit/m4/init.m4?id=f78b0f0b2741fcdd4e21151758a8a75ddaa8aa17

The automake upstream head has unreleased reversion:
  https://git.savannah.gnu.org/cgit/automake.git/commit/m4/init.m4?id=3099097d74c96bbb30aa38233091f96634eda27a

Given it's not practical to locally fix and regenerate all the upstream
external/**/dist/configure for this issue, NetBSD 4.0 is waaay EOL
(as is NetBSD 7), thoreau is now running 9.99 (thanks for providing access),
do we need to keep this ticket open?

Ps: the upstream commit/thread does point to this posix bug
  https://www.austingroupbugs.net/view.php?id=542
which has a comment that NetBSD 4.0 doesn't work with rm -f without an argument:
Look for "0002407" on that page.


Responsible-Changed-From-To: toolchain-manager->lukem
Responsible-Changed-By: lukem@NetBSD.org
Responsible-Changed-When: Sat, 20 May 2023 08:37:59 +0000
Responsible-Changed-Why:


State-Changed-From-To: feedback->closed
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Sat, 10 Jun 2023 07:21:09 +0000
State-Changed-Why:
We're not going to add build fixes for NetBSD 4 host and NetBSD 7 target,
given NetBSD 7 was EOL in 2020, and NetBSD 4 was EOL probably in 2012
(and I know the host system is running NetBSD 9 now :)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.