NetBSD Problem Report #37968

From yamt@mwd.biglobe.ne.jp  Wed Feb  6 09:49:57 2008
Return-Path: <yamt@mwd.biglobe.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1443F63B853
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  6 Feb 2008 09:49:57 +0000 (UTC)
Message-Id: <20080206094956.8874811703@yamt.dyndns.org>
Date: Wed,  6 Feb 2008 18:49:56 +0900 (JST)
From: yamt@mwd.biglobe.ne.jp
Reply-To: yamt@mwd.biglobe.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Subject: bootstrap-mk-files does LORDER?=echo for linux
X-Send-Pr-Version: 3.95

>Number:         37968
>Category:       pkg
>Synopsis:       bootstrap-mk-files does LORDER?=echo for linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 06 09:50:00 +0000 2008
>Last-Modified:  Mon May 23 05:15:02 +0000 2022
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        pkgsrc-current
>Organization:

>Environment:
	Linux imawoto 2.6.24-rc8-mm1 #8 SMP Fri Feb 1 12:08:08 JST 2008 x86_64 GNU/Linux
>Description:
	bootstrap-mk-files has:
		LORDER?=	echo

	it makes tsort complain when building a library with bsd.lib.mk.
>How-To-Repeat:

>Fix:
	make it "LORDER?=lorder".

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/37968: bootstrap-mk-files does LORDER?=echo for linux
Date: Mon, 23 May 2022 05:11:17 +0000

 Not only has this not been fixed, it's spread:

 % grep -l 'LORDER.*=.*echo' pkgtools/bootstrap-mk-files/files/mods/*.mk
 pkgtools/bootstrap-mk-files/files/mods/FreeMiNT.sys.mk
 pkgtools/bootstrap-mk-files/files/mods/GNUkFreeBSD.sys.mk
 pkgtools/bootstrap-mk-files/files/mods/Haiku.sys.mk
 pkgtools/bootstrap-mk-files/files/mods/IRIX.sys.mk
 pkgtools/bootstrap-mk-files/files/mods/Linux.sys.mk
 pkgtools/bootstrap-mk-files/files/mods/Minix.sys.mk
 pkgtools/bootstrap-mk-files/files/mods/QNX.sys.mk

 Since the invocation is $(CC) `$(LORDER) $(OBJS) | $(TSORT)` this will
 work and produce a spurious ordering half the time, and fail the other
 half. (And fail always if tsort demands two entries per line, as ours
 doesn't but I think it's entitled to.)

 Unless TSORT is set to cat; this is the case for QNX but nothng else.

 Unfortunately, there's a user of tsort that uses it for something
 other than lorder output; pkgtools/cdpack uses it to sort dependency
 lists. Setting TSORT to cat will break that... so I'm not sure how to
 proceed.

 -- 
 David A. Holland
 dholland@netbsd.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.