git: 2d935a1e93af - main - man.4: Create if_mgb.4 symlink on supported architectures only.

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Sat, 10 Oct 2026 21:57:16 UTC
The branch main has been updated by otis:

URL: https://cgit.FreeBSD.org/src/commit/?id=2d935a1e93af4d552db1f7218ef97e01f058c084

commit 2d935a1e93af4d552db1f7218ef97e01f058c084
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2026-10-10 13:29:03 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2026-10-10 21:56:34 +0000

    man.4: Create if_mgb.4 symlink on supported architectures only.
    
    Fixes:                  05c49e2aa643 ("man: Link mgb.4 to if_mgb.4")
    Fixes:                  e0a5aa37c1ef
    Differential revision:  https://reviews.freebsd.org/D60551
---
 share/man/man4/Makefile | 3 ++-
 share/man/man4/mgb.4    | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile
index 6bc6b3d14573..803ca8c0d216 100644
--- a/share/man/man4/Makefile
+++ b/share/man/man4/Makefile
@@ -797,6 +797,7 @@ MLINKS+=me.4 if_me.4
 MLINKS+=mem.4 kmem.4
 MLINKS+=mfi.4 mfi_linux.4 \
 	mfi.4 mfip.4
+MLINKS+=${_mgb.4} ${_if_mgb.4}
 MLINKS+=mlx5en.4 mce.4 \
 	mlx5en.4 if_mce.4
 MLINKS+=mos.4 if_mos.4
@@ -913,6 +914,7 @@ _i8254.4=	i8254.4
 _ichwd.4=	ichwd.4
 _if_bxe.4=	if_bxe.4
 _if_hn.4=	if_hn.4
+_if_mgb.4=	if_mgb.4
 _if_nfe.4=	if_nfe.4
 _if_urtw.4=	if_urtw.4
 _if_wpi.4=	if_wpi.4
@@ -952,7 +954,6 @@ _wpi.4=		wpi.4
 _xen.4=		xen.4
 _xnb.4=		xnb.4
 
-MLINKS+=mgb.4 if_mgb.4
 .endif
 
 .if ${MACHINE_CPUARCH} == "amd64"
diff --git a/share/man/man4/mgb.4 b/share/man/man4/mgb.4
index 0d26951d1b1e..4911ff3b348d 100644
--- a/share/man/man4/mgb.4
+++ b/share/man/man4/mgb.4
@@ -22,7 +22,7 @@
 .\" SUCH DAMAGE.
 .\"
 .Dd September 28, 2021
-.Dt MGB 4
+.Dt MGB 4 amd64
 .Os
 .Sh NAME
 .Nm mgb