Page MenuHomeFreeBSD

Makefile.inc1: Use ln -n instead of ln -h
ClosedPublic

Authored by ivy on Apr 27 2026, 4:44 AM.
Tags
None
Referenced Files
F170738504: D56656.diff
Sun, Sep 6, 8:15 AM
F170722747: D56656.id176605.diff
Sun, Sep 6, 5:35 AM
F170657772: D56656.id176678.diff
Sat, Sep 5, 8:45 PM
F170611997: D56656.id176605.diff
Sat, Sep 5, 3:35 PM
Unknown Object (File)
Sat, Sep 5, 6:34 AM
Unknown Object (File)
Sat, Sep 5, 2:47 AM
Unknown Object (File)
Fri, Sep 4, 8:47 PM
Unknown Object (File)
Fri, Sep 4, 5:17 PM
Subscribers

Details

Summary

We support both -h and -n, but GNU coreutils only supports -n. This fixes the package build on Linux.

MFC after: 2 weeks
Sponsored by: https://www.patreon.com/bsdivy

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 72563
Build 69446: arc lint + arc unit

Event Timeline

ivy requested review of this revision.Apr 27 2026, 4:44 AM
This revision is now accepted and ready to land.Apr 27 2026, 5:21 AM

Might be nice to have something like ${LN_SYMLINK_FLAGS} set to -Tfs or -hfs. I didn't find other obvious instances in the tree though so perhaps not worth effort right now

ivy retitled this revision from Makefile.inc1: Use ln -T instead of ln -h on Linux to Makefile.inc1: Use ln -n instead of ln -h.Apr 27 2026, 7:36 PM
ivy edited the summary of this revision. (Show Details)
This revision now requires review to proceed.Apr 27 2026, 7:36 PM
This revision is now accepted and ready to land.Apr 27 2026, 7:45 PM
This revision was automatically updated to reflect the committed changes.