pkgsrc-Bugs archive

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

Re: pkg/60184 (Fix chibi-scheme installation on macos)



On Sun Apr 12, 2026 at 3:09 PM CEST, Taylor R Campbell wrote:
>> Date: Sat, 11 Apr 2026 22:14:46 +0200
>> From: "Diogo" <db7%sdf.org@localhost>
>>
>> > So why isn't shlib-dylib.awk already working here?
>>
> Here's the relevant fragments of mk/plist/plist.mk:
> ...
> So the files to look at should be lang/chibi-scheme/work/.PLIST*.  in
> particular, .PLIST-3mag should have the .so paths, and .PLIST should
> have them all fixed up to be dylibs.

That's what I needed, thanks!

It turns out that the regex inside shlib-dylib.awk correctly converts
`lib<name>.so` -> `lib<name>.dylib`, but several modules in chibi-scheme do not
have the "lib" prefix, ie, they are just `<name>.so`.

An extremely easy fix would be to drop the "lib" prefix of the regex. In my
local pkgsrc that worked perfectly. However, I am afraid that this solution
could affect other packages that have `<name>.so` files even on macOS.

IIRC chicken5, for example, does store libraries as .so files even on macOS. The
best would be to work with upstream to get this fixed and use .dylib instead,
but I am not sure how likely that solution would be.

An alternative is to default the conversion of everything that ends with .so to
.dylib, while providing an option to disable that behavior.



Home | Main Index | Thread Index | Old Index