pkgsrc-Users archive

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

Re: macOS 12.x (Monterey) vs. pkgsrc



At Wed, 2 Mar 2022 21:29:35 +0000, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
Subject: Re: macOS 12.x (Monterey) vs. pkgsrc
>
> * On 2022-03-02 at 21:09 GMT, Greg A. Woods wrote:
>
> > At Wed, 2 Mar 2022 07:12:47 +0000, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
> > Subject: Re: macOS 12.x (Monterey) vs. pkgsrc
> >>
> >> * On 2022-03-02 at 04:15 GMT, Greg A. Woods wrote:
> >>
> >> > # otool -XL libavltree.so.1.1
> >> >        libavltree.so.1.1 (compatibility version 0.0.0, current version 0.0.0)
> >> >        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)
> >> >
> >> >
> >> > I'm thinking mk/check/check-shlibs-macho.awk should not complain if then
> >> > library depends on itself like this?
> >>
> >> No, it needs to be correct, otherwise any
> >> binaries or libraries that link against it
> >> will also be incorrect, and then it's
> >> impossible to do any meaningful checks.
> >
> > Well, I don't know all the details of macOS dylib, but I think Mansour's
> > reply suggests my fix is indeed the, or at least a sufficiently correct,
> > fix.
>
> It's nothing of the sort.  It completely
> breaks the entire REQUIRES logic.  Just do
> a post-install fixup, there are plenty of
> examples of how to do that across the
> pkgsrc tree.

You'll have to be a lot more explicit and technically detailed than that
to help me to understand.

The REQUIRES logic isn't affected at all so far as I can tell.

I agree that it's not an ideal fix, but only from the point of view that
using .so naming conventions is wrong for Darwin in the first place, and
that the better fix would involve either replacing, or hacking on,
bsd.lib.mk from bootstrap-mk-files.  As part of that what Mansour
suggested can also be applied safely in a target-specific manner.

Doing what you suggest also requires hacking on bootstrap-mk-files.
That's the only way to make a correct fix that'll apply transparently to
any current and/or future packages using BSD Makefiles.

--
					Greg A. Woods <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgp5GZqhMqYfE.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index