Page MenuHomeFreeBSD

Remove -m (update) from ldconfig -32 invocation on startup.
ClosedPublic

Authored by kib on Sep 26 2018, 9:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 30 2024, 12:24 AM
Unknown Object (File)
Sep 30 2024, 12:24 AM
Unknown Object (File)
Sep 30 2024, 12:24 AM
Unknown Object (File)
Sep 30 2024, 12:24 AM
Unknown Object (File)
Sep 30 2024, 12:13 AM
Unknown Object (File)
Sep 18 2024, 9:37 AM
Unknown Object (File)
Sep 11 2024, 2:02 AM
Unknown Object (File)
Sep 8 2024, 4:25 AM
Subscribers

Details

Summary

Since r154114 which introduced ldconfig_local32_dirs, ldconfig -32 was called with -m. This means that ld32.so.hints paths set is not cleared for compat32 on boot, unlike ld,so,hints.

The patch fixes the asymmetry, I am not sure if this just a typo or there was some rationale behind the difference.

Noted by: Andreas Longwitz <longwitz@incore.de>

Diff Detail

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

Event Timeline

brooks added a subscriber: jhb.

This seems to make sense.

@jhb when expanding the diff I noticed that we didn't add a mips64 case when it grew n32 support.

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

Seems reasonable to me.

bdrewery added inline comments.
sbin/init/rc.d/ldconfig
83 ↗(On Diff #48491)

What about this -m?

kib marked an inline comment as done.
kib removed a subscriber: imp.
kib added inline comments.
sbin/init/rc.d/ldconfig
83 ↗(On Diff #48491)

This -m was added in r294295 by imp. From my code reading -soft implies separate ld-soft.so.hints, but I will wait for the confirmation.

In other words yes, the instance should be removed as well.

imp added inline comments.
sbin/init/rc.d/ldconfig
83 ↗(On Diff #48491)

I think this can be safely removed. I think I copied it from -32 code.

Also remove -m for -soft.

This revision now requires review to proceed.Sep 27 2018, 12:27 AM
This revision is now accepted and ready to land.Sep 27 2018, 12:29 AM
This revision was automatically updated to reflect the committed changes.