The branch main has been updated by brooks:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=1995ea1ea2654d5c32ef17ddf651380ecc23c635

commit 1995ea1ea2654d5c32ef17ddf651380ecc23c635
Author:     Brooks Davis <[email protected]>
AuthorDate: 2024-02-09 17:21:15 +0000
Commit:     Brooks Davis <[email protected]>
CommitDate: 2024-02-09 17:22:13 +0000

    libsys: add guards to MD manpages
    
    This avoids duplicate installations which fail packaging tests.
    
    Reported by:    emaste
---
 lib/libsys/i386/Makefile.sys | 2 ++
 lib/libsys/x86/Makefile.sys  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/lib/libsys/i386/Makefile.sys b/lib/libsys/i386/Makefile.sys
index f42c5f7ec0ef..2957dc548cf8 100644
--- a/lib/libsys/i386/Makefile.sys
+++ b/lib/libsys/i386/Makefile.sys
@@ -5,9 +5,11 @@ SRCS+= i386_get_fsbase.c i386_get_gsbase.c i386_get_ioperm.c 
i386_get_ldt.c \
 
 MDASM= vfork.S cerror.S getcontext.S syscall.S
 
+.if ${LIB} == "sys"
 MAN+=  i386_get_ioperm.2 i386_get_ldt.2 i386_vm86.2
 MAN+=  i386_set_watch.3
 
 MLINKS+=i386_get_ioperm.2 i386_set_ioperm.2
 MLINKS+=i386_get_ldt.2 i386_set_ldt.2
 MLINKS+=i386_set_watch.3 i386_clr_watch.3
+.endif # ${LIB} == "sys"
diff --git a/lib/libsys/x86/Makefile.sys b/lib/libsys/x86/Makefile.sys
index d5e4cd75e78b..483d1784bdc9 100644
--- a/lib/libsys/x86/Makefile.sys
+++ b/lib/libsys/x86/Makefile.sys
@@ -5,8 +5,10 @@ SRCS+= \
        pkru.c \
        sched_getcpu_x86.c
 
+.if ${LIB} == "sys"
 MAN+=  \
        pkru.3
+.endif # ${LIB} == "sys"
 
 # Note: vdso support for hyperv only on amd64
 .if ${MACHINE_CPUARCH} == "amd64" && ${MK_HYPERV} != "no"

Reply via email to