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
F171371503: D56656.diff
Thu, Sep 10, 6:16 PM
Unknown Object (File)
Wed, Sep 9, 5:09 PM
Unknown Object (File)
Tue, Sep 8, 6:24 PM
Unknown Object (File)
Tue, Sep 8, 10:45 AM
Unknown Object (File)
Sun, Sep 6, 9:06 PM
Unknown Object (File)
Sun, Sep 6, 8:38 PM
Unknown Object (File)
Sun, Sep 6, 6:22 PM
Unknown Object (File)
Sun, Sep 6, 8:15 AM
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 72585
Build 69468: 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.