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

"Diogo via gnats" <[email protected]> Sun, 12 Apr 2026 14:15:01 +0000 (UTC)
Newsgroups gmane.os.netbsd.devel.pkgsrc.bugs
Message-ID <[email protected]>
The following reply was made to PR pkg/60184; it has been noted by GNATS.

From: "Diogo" <[email protected]>
To: "Taylor R Campbell" <[email protected]>, "Diogo" <[email protected]>
Cc: <[email protected]>, <[email protected]>,
        <[email protected]>, <[email protected]>
Subject: Re: pkg/60184 (Fix chibi-scheme installation on macos)
Date: Sun, 12 Apr 2026 16:13:26 +0200

 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" <[email protected]>
 >>
 >> > 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 instea=
 d,
 but I am not sure how likely that solution would be.
 
 An alternative is to default the conversion of everything that ends with .s=
 o to
 .dylib, while providing an option to disable that behavior.