Page MenuHomeFreeBSD

Fix build with NO_HISTORY set
ClosedPublic

Authored by bdrewery on Apr 17 2020, 12:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 23 2024, 5:21 PM
Unknown Object (File)
Feb 23 2024, 5:21 PM
Unknown Object (File)
Feb 23 2024, 5:00 PM
Unknown Object (File)
Feb 23 2024, 5:00 PM
Unknown Object (File)
Feb 23 2024, 4:39 PM
Unknown Object (File)
Feb 14 2024, 11:58 PM
Unknown Object (File)
Jan 11 2024, 10:09 PM
Unknown Object (File)
Jan 9 2024, 11:56 AM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jilles requested changes to this revision.Apr 17 2020, 11:46 AM

This solution looks inconsistent. Either fc and bind are always available (writing an error message if history is not compiled in), in which case mkbuiltins should not be omitting them, or they are not available if history is not compiled in, in which case the functions should not be defined at all if history is not compiled in.

The latter approach will produce the smallest binaries, so I think it is best.

This revision now requires changes to proceed.Apr 17 2020, 11:46 AM

builtins.h does define these prototypes

OK.

A follow-up is to delete -h from mkbuiltins and builtins.def.

This revision is now accepted and ready to land.Apr 18 2020, 9:20 PM

I have no opinions on how this should work. I was just trying to follow what was there. The presence of -h is definitely inconsistent now. If you want to pick this up and pick the right route that's fine with me.

Feel free to commit this revision as is. I will handle -h in mkbuiltins.

This revision was automatically updated to reflect the committed changes.