Page MenuHomeFreeBSD

Allow dhclient and ping to build WITHOUT_DYNAMICROOT
ClosedPublic

Authored by emaste on Sep 7 2018, 6:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 11, 10:18 AM
Unknown Object (File)
Mon, Apr 29, 4:41 AM
Unknown Object (File)
Sat, Apr 27, 5:19 PM
Unknown Object (File)
Sat, Apr 27, 4:33 AM
Unknown Object (File)
Jan 27 2024, 10:24 AM
Unknown Object (File)
Jan 19 2024, 8:18 AM
Unknown Object (File)
Jan 16 2024, 3:03 PM
Unknown Object (File)
Jan 13 2024, 4:18 AM
Subscribers

Details

Summary

dhclient and ping normally use libcasper services. These are not available in statically-linked binaries, so when WITHOUT_DYNAMICROOT is set disable libcasper use, as with rescue builds. Also emit a warning as it's undesirable to build this way.

Reported by:    Michael Dexter (D17040)
Sponsored by:   The FreeBSD Foundation

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Sep 7 2018, 6:26 PM

It just hit me and I have to ask, why isnt libcasper avaliable in a static configuration? I certainly see a /usr/lib/libcasper.a on my systems.

I certainly see a /usr/lib/libcasper.a on my systems.

See rS325398 - it's not built any longer.

That looks good to me. Please advise if you want me to test it.

Please go ahead and test if you have time, a confirmation would be good. I will send the request to re after.

Please go ahead and test if you have time, a confirmation would be good. I will send the request to re after.

OK. Will do shortly.

This diff should address ping as well.

This diff should address ping as well.

See that. Sorry. Building.

Ed, this builds and installs for me wth both pristine sources that include only these, and my sources with my other build option changes updated to this for dhcpclient/ping.

The warnings work too:

make[5]: "/usr/srcpristine/sbin/dhclient/Makefile" line 48: warning: dhclient built without libcasper support

Looks good.

This revision was automatically updated to reflect the committed changes.

Seems D17040 did not generate a link above, so mention it again to add the xref.