NetBSD Problem Report #60188
From www@netbsd.org Sun Apr 12 14:38:44 2026
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)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 30E371A923A
for <gnats-bugs@gnats.NetBSD.org>; Sun, 12 Apr 2026 14:38:44 +0000 (UTC)
Message-Id: <20260412143843.171071A923E@mollari.NetBSD.org>
Date: Sun, 12 Apr 2026 14:38:43 +0000 (UTC)
From: opensauce04@gmail.com
Reply-To: opensauce04@gmail.com
To: gnats-bugs@NetBSD.org
Subject: pkgsrc bootstrap fails on Linux (Slackware 15.0) due to circular dependency
X-Send-Pr-Version: www-1.0
X-From4GNATS: "opensauce04@gmail.com via gnats" <gnats-admin@NetBSD.org>
>Number: 60188
>Category: pkg
>Synopsis: pkgsrc bootstrap fails on Linux (Slackware 15.0) due to circular dependency
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bsiegert
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 12 14:40:00 +0000 2026
>Closed-Date: Tue Apr 21 17:45:45 +0000 2026
>Last-Modified: Tue Apr 21 17:45:45 +0000 2026
>Originator: Daniel
>Release: pkgsrc 2026Q1 + pkgsrc latest commit
>Organization:
>Environment:
Linux slackbook.example.org 5.15.19 #1 SMP PREEMPT Wed Feb 2 01:50:51 CST 2022 x86_64 Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz GenuineIntel GNU/Linux
>Description:
When attempting to bootstrap pkgsrc on my aforementioned Linux setup, it fails with the following messages (copied with OCR, mind for typos):
===> Installing dependencies for libnbcompat-20251029
=> Tool dependency diffutils>=2.8.1: NOT found
=> Verifying reinstall for ../../devel/diffutils
=> Bootstrap dependency digest>=20211023: NOT found
=> Verifying reinstall for ../../pkgtools/digest
===> Installing dependencies for digest-20220214
=> Tool dependency mktools-[0-9]*: NOT found
=> Verifying reinstall for ../../pkgtools/mktools
===> Installing dependencies for mktools-20250213
=> Tool dependency cwrappers>=20150314: NOT found
=> Verifying reinstall for ../../pkgtools/cwrappers
===> Installing dependencies for cwrappers-20220403
=> Build dependency libnbcompat>=20221013: NOT found
=> Verifying reinstall for ../../pkgtools/libnbcompat
ERROR: [can-be-built-here.mk] This package has PKG_FAIL_REASON set:
ERROR: [bsd.pkg.mk] Circular dependency detected
*** Error code 1
This occurs with both the 2026Q1 branch and the latest pkgsrc commit.
>How-To-Repeat:
Attempt to bootstrap pkgsrc using a fresh Slackware 15.0 install
>Fix:
>Release-Note:
>Audit-Trail:
From: opensauce04@gmail.com
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/60188: pkgsrc bootstrap fails on Linux (Slackware 15.0) due
to circular dependency
Date: Tue, 14 Apr 2026 23:52:54 +0100
An update on this, I managed to circumvent the issue by installing the
native Slackware 'diffutils' package via upgradepkg:
https://slackware.pkgs.org/15.0/slackware-x86_64/diffutils-3.8-x86_64-1.txz.html
Still, this took a little while to figure out, and should ideally be
handled by pkgsrc somehow, either by making it so that the circular
dependency doesn't happen during the bootstrap process or by
communicating a fix for the user to perform (such as, in my case,
installing a package).
From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60188 CVS commit: pkgsrc/bootstrap
Date: Tue, 21 Apr 2026 17:37:00 +0000
Module Name: pkgsrc
Committed By: bsiegert
Date: Tue Apr 21 17:37:00 UTC 2026
Modified Files:
pkgsrc/bootstrap: README.Linux
Log Message:
README.Linux: diffutils needs to be installed on Slackware
Reported by Daniel in PR pkg/60188.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/bootstrap/README.Linux
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: pkg-manager->bsiegert
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Tue, 21 Apr 2026 17:45:45 +0000
Responsible-Changed-Why:
take
State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Tue, 21 Apr 2026 17:45:45 +0000
State-Changed-Why:
This could be handled better, agree.
In the meantime, at least I added a mention of this to README.Linux.
>Unformatted:
(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.