Page MenuHomeFreeBSD

locale: tools: Make finalize idempotent
ClosedPublic

Authored by jlduran on Nov 28 2025, 8:07 PM.
Tags
None
Referenced Files
F174010028: D53981.diff
Tue, Sep 29, 11:07 PM
F173982986: D53981.id167275.diff
Tue, Sep 29, 6:59 PM
F173982921: D53981.id167257.diff
Tue, Sep 29, 6:59 PM
F173982795: D53981.id167644.diff
Tue, Sep 29, 6:57 PM
F173965676: D53981.diff
Tue, Sep 29, 4:43 PM
Unknown Object (File)
Tue, Sep 15, 7:35 AM
Unknown Object (File)
Fri, Sep 11, 5:59 PM
Unknown Object (File)
Mon, Sep 7, 7:18 PM
Subscribers

Details

Summary

The finalize script renames source files with 3 components in their name
into names with two components with an @modifier, in the process.

Running the script for a second time without cleaning will strip the
@modifier from the files, producing invalid Makefiles and unusable
locales.

Prevent this by adding a guard at the beginning of the script.

Also, use a sub-shell for directory changes to avoid working directory
issues.

Diff Detail

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