The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=1b8ccb02ac72c72d47662e73bc8a45b4210a0f89
commit 1b8ccb02ac72c72d47662e73bc8a45b4210a0f89 Author: Mark Johnston <[email protected]> AuthorDate: 2026-09-01 14:03:41 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2026-09-01 15:28:28 +0000 lib9p: Make it a private library lib9p was imported to add a 9p server to bhyve (and I believe this was the original motivation for writing it in the first place). Its external interfaces are kind of strange (from first-hand experience using it to implement an inetd-based 9p server) and undocumented. Moreover, upstream has been inactive for over five years. I suspect there are no third-party consumers. Let's make it a private library for now, so as to make it easier to rework external interfaces. If we get more code written against it, symbol versioning, and some documentation, we can revisit this decision. PR: 297499 Reviewed by: jhb, emaste Differential Revision: https://reviews.freebsd.org/D58828 --- ObsoleteFiles.inc | 3 +++ lib/lib9p/Makefile | 1 + share/mk/src.libnames.mk | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc index 5506519b790d..5327c530e7fe 100644 --- a/ObsoleteFiles.inc +++ b/ObsoleteFiles.inc @@ -51,6 +51,9 @@ # xargs -n1 | sort | uniq -d; # done +# 20260813: lib9p.so becomes a private library +OLD_LIBS+=usr/lib/lib9p.so.1 + # 20260811: libusb symbol versioning, shared library bumped to version 4 OLD_LIBS+=usr/lib/libusb.so.3 diff --git a/lib/lib9p/Makefile b/lib/lib9p/Makefile index a8e0c74301e0..2310fca34632 100644 --- a/lib/lib9p/Makefile +++ b/lib/lib9p/Makefile @@ -12,6 +12,7 @@ LIBADD+= casper cap_pwd cap_grp .endif LIB= 9p +PRIVATELIB= PACKAGE= lib${LIB} SHLIB_MAJOR= 1 SRCS= connection.c \ diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk index b3c4e1861e24..d4428bd91d45 100644 --- a/share/mk/src.libnames.mk +++ b/share/mk/src.libnames.mk @@ -12,6 +12,7 @@ __<src.libnames.mk>__: .NOTMAIN .include <src.opts.mk> _PRIVATELIBS= \ + 9p \ atf_c \ atf_cxx \ auditd \ @@ -109,7 +110,6 @@ _LIBRARIES= \ ${_INTERNALLIBS} \ ${LOCAL_LIBRARIES} \ 80211 \ - 9p \ alias \ archive \ asn1 \
