git: 0851f28403e3 - stable/15 - Makefile.inc1: Use ln -n instead of ln -h

From: Lexi Winter <ivy_at_FreeBSD.org>
Date: Sat, 25 Jul 2026 13:07:56 UTC
The branch stable/15 has been updated by ivy:

URL: https://cgit.FreeBSD.org/src/commit/?id=0851f28403e3eaefd0973eac1d4287765a70d517

commit 0851f28403e3eaefd0973eac1d4287765a70d517
Author:     Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2026-04-27 21:26:45 +0000
Commit:     Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2026-07-25 13:01:23 +0000

    Makefile.inc1: Use ln -n instead of ln -h
    
    We support both -h and -n, but GNU coreutils only supports -n,
    so use that instead.  This fixes the package build on Linux.
    
    MFC after:      2 weeks
    Reviewed by:    (wosch, imp) (previous version), emaste
    Better fix than the original patch suggested by: jrtc27
    Sponsored by:   https://www.patreon.com/bsdivy
    Differential Revision:  https://reviews.freebsd.org/D56656
    
    (cherry picked from commit d455c4bb69eca975854262207687db50a5edc434)
---
 Makefile.inc1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.inc1 b/Makefile.inc1
index c2893782197a..09c986d4a985 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2412,7 +2412,7 @@ real-sign-packages:	_pkgbootstrap .PHONY
 		${REPODIR}/${PKG_ABI}/${PKG_VERSION} \
 		${PKG_REPO_SIGNING_KEY} ; \
 	cd ${REPODIR}/${PKG_ABI}; \
-	ln -hfs ${PKG_OUTPUT_DIR} latest
+	ln -nfs ${PKG_OUTPUT_DIR} latest
 
 #
 #