NetBSD Problem Report #57801
From www@netbsd.org Fri Dec 29 05:15:27 2023
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 33AAE1A923A
for <gnats-bugs@gnats.NetBSD.org>; Fri, 29 Dec 2023 05:15:27 +0000 (UTC)
Message-Id: <20231229051526.3070D1A923C@mollari.NetBSD.org>
Date: Fri, 29 Dec 2023 05:15:26 +0000 (UTC)
From: simmonds@polymorphism.ca
Reply-To: simmonds@polymorphism.ca
To: gnats-bugs@NetBSD.org
Subject: lang/nim fails to build package due to pax on macOS
X-Send-Pr-Version: www-1.0
>Number: 57801
>Category: pkg
>Synopsis: lang/nim fails to build package due to pax on macOS
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 29 05:20:00 +0000 2023
>Closed-Date: Sat Mar 07 09:53:56 +0000 2026
>Last-Modified: Sat Mar 07 09:53:56 +0000 2026
>Originator: Colin Simmonds
>Release: pkgsrc git trunk latest
>Organization:
>Environment:
Darwin meiling.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64 arm Darwin
>Description:
trying to build and install lang/nim on a Mac, I encountered the following error in the install step:
$ sudo bmake install
....
cd /Users/colin/tmp/pkgsrc-work/lang/nim/work/nim-2.0.0/nimsuggest && /bin/pax -r -w . /Users/colin/tmp/pkgsrc-work/lang/nim/work/.destdir/opt/pkg/nim/nimsuggest
pax: Cannot access destination directory /Users/colin/tmp/pkgsrc-work/lang/nim/work/.destdir/opt/pkg/nim/nimsuggest <No such file or directory>
It looks like the version of pax installed in Darwin by default will not create the destination directory if it does not already exist. I couldn't find a version number for the binary, and it appears to be based on a version from FreeBSD.
>How-To-Repeat:
$ cd lang/nim
$ bmake
$ sudo bmake install
>Fix:
The package builds successfully if I force it to use the NetBSD version of pax from the archivers/pax package:
$ sudo PAX=/opt/pkg/bin/nbpax bmake install
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: triaxx@NetBSD.org
State-Changed-When: Thu, 26 Feb 2026 05:42:26 +0000
State-Changed-Why:
Successful installation with /bin/pax on Darwin 25.2.0. Does the issue still persist?
From: Colin Simmonds <simmonds@polymorphism.ca>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org,
pkgsrc-bugs@netbsd.org,
gnats-admin@netbsd.org,
"triaxx@netbsd.org" <triaxx@NetBSD.org>
Subject: Re: pkg/57801 (lang/nim fails to build package due to pax on macOS)
Date: Thu, 5 Mar 2026 21:33:11 -0500
It seems to be fixed. I=E2=80=99m able to build and install it on =
machines running macOS 15.7.4 and 26.3.
Colin
> On Feb 26, 2026, at 00:42, triaxx@netbsd.org wrote:
>=20
> Synopsis: lang/nim fails to build package due to pax on macOS
>=20
> State-Changed-From-To: open->feedback
> State-Changed-By: triaxx@NetBSD.org
> State-Changed-When: Thu, 26 Feb 2026 05:42:26 +0000
> State-Changed-Why:
> Successful installation with /bin/pax on Darwin 25.2.0. Does the issue =
still persist?
>=20
>=20
>=20
State-Changed-From-To: feedback->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 07 Mar 2026 09:53:56 +0000
State-Changed-Why:
confirmed fixed
>Unformatted:
(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-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.