Page MenuHomeFreeBSD

csh: Remove gethost dependency on tc.const.h
ClosedPublic

Authored by emaste on Feb 7 2025, 1:36 AM.
Tags
None
Referenced Files
F132252847: D48880.id150730.diff
Wed, Oct 15, 5:24 AM
Unknown Object (File)
Tue, Oct 14, 4:27 AM
Unknown Object (File)
Sat, Sep 20, 9:27 PM
Unknown Object (File)
Thu, Sep 18, 8:02 PM
Unknown Object (File)
Wed, Sep 17, 2:38 PM
Unknown Object (File)
Wed, Sep 17, 5:29 AM
Unknown Object (File)
Wed, Sep 17, 12:33 AM
Unknown Object (File)
Mon, Sep 15, 10:09 PM
Subscribers
None

Details

Summary
gethost is a build tool built in stage 2.3, but it had a dependency on
tc.const.h, which requires target headers installed in stage 4.1.  The
build falls back to the host's headers if the target headers don't yet
exist, which may result in a build failure.

As gethost.c doesn't actually require the definitions in tc.const.h add
a hack to skip the include of tc.const.h.

PR: 283273
Fixes: e754e5f36195 ("Upgrade to 6.10")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste requested review of this revision.Feb 7 2025, 1:36 AM
emaste created this revision.

Add a comment explaining the csh build hack

This revision is now accepted and ready to land.Feb 9 2025, 12:28 AM
This revision was automatically updated to reflect the committed changes.