tech-pkg archive

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

Re: macOS: WRKOBJDIR=/tmp/work causes some packages to fail to build



* On 2024-12-30 at 11:57 GMT, Greg Troxel wrote:

Jonathan Perkin <jperkin%pkgsrc.org@localhost> writes:

* On 2024-12-30 at 01:11 GMT, Greg Troxel wrote:

There's a known bug for gobject-type programs with a pkgsrc path that's
a symlink.   This is perhaps similar, and might be a wrapper problem.

I'm going to avoid it by not using symlinks, but I thought I'd mention
it in case anyone feels like digging in to mac/symlink/wrapper trouble.

buildlink / wrappers have never supported working through a symlink.
If they are configured to look for /tmp/work and the compiler uses
/private/tmp/work then there's no way for them to know that the
symlink has been realpath'd.

Well, ok, but that's a bug.   At the very least wrappers when
configured should check everything and fail loudly.

That's what _check-wrkdir-canonical is supposed to do, but for some reason it uses "pwd" instead of "pwd -P", rendering it entirely useless.

Adding -P fixes the test for me and breaks WRKOBJDIR=/tmp/blah on macOS. I suggest others try the same for a bit and then we can commit that.

--
Jonathan Perkin                    pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index