pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/57801: lang/nim fails to build package due to pax on macOS



>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 29 05:20:00 +0000 2023
>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


Home | Main Index | Thread Index | Old Index