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)
Mar 22 2024, 8:12 PM
Unknown Object (File)
Mar 22 2024, 8:12 PM
Unknown Object (File)
Mar 22 2024, 8:12 PM
Unknown Object (File)
Mar 22 2024, 8:12 PM
Unknown Object (File)
Mar 9 2024, 3:58 PM
Unknown Object (File)
Jan 15 2024, 3:51 PM
Unknown Object (File)
Jan 4 2024, 2:48 AM
Unknown Object (File)
Jan 4 2024, 2:48 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.