Re: Fink for Ventura / Xcode 15?

Hanspeter Niederstrasser <[email protected]>
Newsgroups gmane.os.apple.fink.general
Organization Snaggled Works
Message-ID <[email protected]>
On 9/26/23 8:17 AM, Scott Hannahs via Fink-users wrote:
> Hanspeter,
> 
> I think the lz4 utility also needs a similar patch.
> 
> sudo -u fink-bld [ENV] sh -c /tmp/fink.TEneP
> make PREFIX=/opt/sw DESTDIR=/opt/sw/src/fink.build/root-lz4-1.8.3-1
> compiling static library
> compiling dynamic library 1.8.3
> ld: unknown options: -read_only_stubs
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[1]: *** [liblz4.1.8.3.dylib] Error 1
> make: *** [lib-release] Error 2
> ### execution of make failed, exit code 2
> 
> These are just the ones that I am triggering.  If I grep the .info files I get the following other packages that may have this issue.
> 
> % grep -r  read_only_stubs /opt/sw/fink/dists/stable/main/finkinfo
> /opt/sw/fink/dists/stable/main/finkinfo/net/whois.info:SetLDFLAGS: -Wl,-read_only_stubs -Wl,-bind_at_load -fPIE -Wl,-pie -liconv
> /opt/sw/fink/dists/stable/main/finkinfo/net/openvpn.info:SetLDFLAGS: -fPIE -Wl,-pie -Wl,-read_only_stubs -Wl,-bind_at_load
> /opt/sw/fink/dists/stable/main/finkinfo/net/socat.info:SetLDFLAGS: -Wl,-read_only_stubs -Wl,-bind_at_load -fPIE -Wl,-pie
> /opt/sw/fink/dists/stable/main/finkinfo/web/lynx-cur.info:SetLDFLAGS: -Wl,-read_only_stubs -Wl,-bind_at_load -fPIE -Wl,-pie
> /opt/sw/fink/dists/stable/main/finkinfo/web/nginx.info:SetLDFLAGS: -Wl,-read_only_stubs -Wl,-bind_at_load -fPIE -Wl,-pie
> /opt/sw/fink/dists/stable/main/finkinfo/web/netrik.info:SetLDFLAGS: -Wl,-read_only_stubs -Wl,-bind_at_load -fPIE -Wl,-pie
> /opt/sw/fink/dists/stable/main/finkinfo/editors/nano.info:SetLDFLAGS: -Wl,-read_only_stubs -Wl,-bind_at_load -fPIE -Wl,-pie
> /opt/sw/fink/dists/stable/main/finkinfo/editors/ldapvi.info:SetLDFLAGS: -Wl,-read_only_stubs -Wl,-bind_at_load -Wl,-pie
> /opt/sw/fink/dists/stable/main/finkinfo/editors/joe.info:SetLDFLAGS: -Wl,-read_only_stubs -Wl,-bind_at_load -fPIE -Wl,-pie
> /opt/sw/fink/dists/stable/main/finkinfo/libs/lz4.info:SetLDFLAGS: -Wl,-read_only_stubs -Wl,-bind_at_load
> /opt/sw/fink/dists/stable/main/finkinfo/libs/lzo2.info:SetLDFLAGS: -Wl,-read_only_stubs -Wl,-bind_at_load -fPIE -Wl,-pie
> /opt/sw/fink/dists/stable/main/finkinfo/sound/mikmod.info:#SetLDFLAGS: -Wl,-read_only_stubs
> /opt/sw/fink/dists/stable/main/finkinfo/sound/libmikmod3.info:#SetLDFLAGS: -Wl,-read_only_stubs

Yes, the former maintainer of all those packages liked to add a bunch of 
hardening flags to all his packages. But I guess they're not needed on 
ARM and so Apple is making them fatal, even on x86_64. If you edit the 
.info files for those packages and get rid of the flag, they should 
build hopefully.

Working on an across-the-board removal
https://github.com/fink/fink-distributions/issues/1066

Hanspeter


_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.