Page MenuHomeFreeBSD

devel/ksh93: remove sbrk() use
ClosedPublic

Authored by brooks on Nov 8 2022, 11:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 31, 11:24 PM
Unknown Object (File)
Sat, Dec 7, 2:04 AM
Unknown Object (File)
Nov 4 2024, 5:29 AM
Unknown Object (File)
Oct 20 2024, 6:16 AM
Unknown Object (File)
Sep 18 2024, 3:39 AM
Unknown Object (File)
Sep 5 2024, 10:05 PM
Unknown Object (File)
Sep 5 2024, 10:05 PM
Unknown Object (File)
Sep 5 2024, 10:01 PM
Subscribers

Details

Summary

ksh supports multiple sources of heap memory. Completely disable the
use of sbrk() as a memory source in favor of mmap(). This allows
compilation on aarch64 (and presumably riscv64).

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I've tested this as far as running the built ksh trivially and aarch64. Unfortunately make test blew up with a mktemp usage error that I've not dug into yet.

@cy
Perhaps time to switch repo to https://github.com/ksh93/ksh
@brooks Submit it upstream if applicable?

@brooks Submit it upstream if applicable?

This patch isn't suitable for upstream, but I can certainly look at doing that eventually. For now this unblocked testing zfs on aarch64.

@brooks Submit it upstream if applicable?

This patch isn't suitable for upstream, but I can certainly look at doing that eventually. For now this unblocked testing zfs on aarch64.

There is no need to switch because we already have ports that based on https://github.com/ksh93/ksh in shells/ksh and shells/ksh-devel. shells/ksh93 is the legacy version with all its undocumented but assumed bugs and warts for people who still need the legacy version. People are encouraged to use shells/ksh and shells/ksh-devel.

Go ahead and commit this change and don't forget to bump PORTREVISION. And don't consider basing this port on GH ksh93/ksh. We already have two ports based on that project.

This revision is now accepted and ready to land.Nov 9 2022, 7:36 PM

Ahh, I managed to missed that looking at shells. Thanks for the clarification!

This revision was automatically updated to reflect the committed changes.