NetBSD Problem Report #56101

From www@netbsd.org  Sun Apr 11 02:33:02 2021
Return-Path: <www@netbsd.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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E93E81A9217
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 11 Apr 2021 02:33:01 +0000 (UTC)
Message-Id: <20210411023300.EC3FE1A9239@mollari.NetBSD.org>
Date: Sun, 11 Apr 2021 02:33:00 +0000 (UTC)
From: simmonds@polymorphism.ca
Reply-To: simmonds@polymorphism.ca
To: gnats-bugs@NetBSD.org
Subject: pkg_install fails to build with GNU tsort
X-Send-Pr-Version: www-1.0

>Number:         56101
>Category:       pkg
>Synopsis:       pkg_install fails to build with GNU tsort
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 11 02:35:00 +0000 2021
>Originator:     Colin Simmonds
>Release:        pkgsrc from git commit c9535bd18052d21dbf13a7f3ca4b46d52d8d3e7f
>Organization:
>Environment:
Darwin mirage.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 arm64 arm64 MacBookAir10,1 Darwin
>Description:
I have the coreutils package installed and my PATH variable set to include its gnu/bin directory before the default pkgsrc one, such that the version of tsort found is the GNU one. With this configuration, the pkg_install package fails to build due to an unsupported option:

tsort: invalid option -- 'q'
Try 'tsort --help' for more information.

>How-To-Repeat:
$ export PATH=$LOCALBASE/gnu/bin
$ cd pkgtools/pkg_install
$ bmake
>Fix:
The workaround is to run bmake with the PATH set to not include the GNU bin directory.

A proper fix would involve updating the build script to avoid using tsort -q or force the use of the BSD version of it.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.