Page MenuHomeFreeBSD

Mk/Uses/sbrk.mk: centralize sbrk handling
ClosedPublic

Authored by brooks on Tue, Oct 22, 8:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 5:38 PM
Unknown Object (File)
Tue, Nov 19, 5:36 PM
Unknown Object (File)
Tue, Nov 5, 1:28 PM
Unknown Object (File)
Tue, Oct 29, 9:56 PM
Unknown Object (File)
Fri, Oct 25, 9:05 PM
Subscribers

Details

Summary

Add a USES=sbrk that sets BROKEN_aarch64 and BROKEN_risc64. This paves
the way for further deprecation of sbrk and will be extended to support
patching around various uses.

Diff Detail

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

Event Timeline

brooks created this revision.

I'm sorry, I am not quite sure I understand what this is for.
Could you add a small documentation at the top of the file explaining exactly why this is needed, and in which cases one should add USES=sbrk?
Also, maybe in the ignore message, add that it does not take any argument.

Be more clear that arguments are not (yet) allowed

In D47258#1083446, @mat wrote:

I'm sorry, I am not quite sure I understand what this is for.

This centralizes a bunch of inconsistent BROKEN entries (see D47259) for aarch64 and riscv64 and makes it easy to search for consumers. I'm planning to further break sbrk support in 15 so there will need to be additional OSVERSION cases at which point it will all be a mess.

Further, I'm planning to add a library (not sure if it will be in ports or base) to access the compatibility symbols. When I do I plan to extend this code to support that library via additional ARGS.

With your explanation and seeing the other review, I get it. It would have been nice to have all in the same review, it would have saved me some time trying to figure things out :-)
Please go ahead with both reviews.

This revision was not accepted when it landed; it landed in state Needs Review.Tue, Nov 19, 5:31 PM
This revision was automatically updated to reflect the committed changes.