NetBSD Problem Report #56101

From  Sun Apr 11 02:33:02 2021
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id E93E81A9217
	for <>; Sun, 11 Apr 2021 02:33:01 +0000 (UTC)
Message-Id: <>
Date: Sun, 11 Apr 2021 02:33:00 +0000 (UTC)
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
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
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.

$ export PATH=$LOCALBASE/gnu/bin
$ cd pkgtools/pkg_install
$ bmake
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:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.