From c5ea81f7a6786e7398678551e7d26d5b628c4caa Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 28 May 2020 22:05:50 +0000 Subject: [PATCH] rename in-tree libevent v1 to libevent1 r316063 installed pf's embedded libevent as a private lib, with headers in /usr/include/private/event. Unfortunately we also have a copy of libevent v2 included in ntp, which needed to be updated for compatibility with OpenSSL 1.1. As unadorned 'libevent' generally refers to libevent v2, be explicit that this one is libevent v1. Reviewed by: vangyzen (earlier) Differential Revision: https://reviews.freebsd.org/D17275 --- ObsoleteFiles.inc | 4 ++++ etc/mtree/BSD.usr.dist | 2 +- lib/Makefile | 2 +- lib/{libevent => libevent1}/Makefile | 2 +- lib/{libevent => libevent1}/Makefile.depend | 0 share/mk/src.libnames.mk | 2 +- usr.sbin/ftp-proxy/Makefile | 2 +- usr.sbin/ypldap/Makefile | 2 +- 8 files changed, 10 insertions(+), 6 deletions(-) rename lib/{libevent => libevent1}/Makefile (97%) rename lib/{libevent => libevent1}/Makefile.depend (100%) diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc index 4c35cb7d64a..0343fb7cb95 100644 --- a/ObsoleteFiles.inc +++ b/ObsoleteFiles.inc @@ -36,6 +36,10 @@ # xargs -n1 | sort | uniq -d; # done +# 20200528: libevent renamed libevent1 +OLD_FILES+=usr/include/private/event/event.h +OLD_DIRS+=usr/include/private/event + # 20200523: new clang import which bumps version from 10.0.0 to 10.0.1.s OLD_FILES+=usr/lib/clang/10.0.0/include/cuda_wrappers/algorithm OLD_FILES+=usr/lib/clang/10.0.0/include/cuda_wrappers/complex diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist index f5c1cb24eba..3c7350ea24e 100644 --- a/etc/mtree/BSD.usr.dist +++ b/etc/mtree/BSD.usr.dist @@ -11,7 +11,7 @@ private bsdstat .. - event + event1 .. gmock internal diff --git a/lib/Makefile b/lib/Makefile index 4d72fab858a..3c29635ffda 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -48,7 +48,7 @@ SUBDIR= ${SUBDIR_BOOTSTRAP} \ libdwarf \ libedit \ libelftc \ - libevent \ + libevent1 \ libexecinfo \ libexpat \ libfetch \ diff --git a/lib/libevent/Makefile b/lib/libevent1/Makefile similarity index 97% rename from lib/libevent/Makefile rename to lib/libevent1/Makefile index 1618d0199ef..8c3a9acf82a 100644 --- a/lib/libevent/Makefile +++ b/lib/libevent1/Makefile @@ -5,7 +5,7 @@ PACKAGE=lib${LIB} .include -LIB= event +LIB= event1 SHLIB_MAJOR= 1 PRIVATELIB= diff --git a/lib/libevent/Makefile.depend b/lib/libevent1/Makefile.depend similarity index 100% rename from lib/libevent/Makefile.depend rename to lib/libevent1/Makefile.depend diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk index b827dafb506..2045e5b8af6 100644 --- a/share/mk/src.libnames.mk +++ b/share/mk/src.libnames.mk @@ -18,7 +18,7 @@ _PRIVATELIBS= \ auditd \ bsdstat \ devdctl \ - event \ + event1 \ gmock \ gtest \ gmock_main \ diff --git a/usr.sbin/ftp-proxy/Makefile b/usr.sbin/ftp-proxy/Makefile index 443db1c00a2..7d05aa9bf62 100644 --- a/usr.sbin/ftp-proxy/Makefile +++ b/usr.sbin/ftp-proxy/Makefile @@ -9,7 +9,7 @@ SRCS= ftp-proxy.c filter.c CFLAGS+=-I${SRCTOP}/contrib/pf/libevent -LIBADD= event +LIBADD= event1 WARNS?= 3 diff --git a/usr.sbin/ypldap/Makefile b/usr.sbin/ypldap/Makefile index 4ba12a7bbd2..7fbe945aaf5 100644 --- a/usr.sbin/ypldap/Makefile +++ b/usr.sbin/ypldap/Makefile @@ -9,7 +9,7 @@ SRCS= parse.y ypldap.c log.c \ MAN= ypldap.8 ypldap.conf.5 -LIBADD= openbsd event util rpcsvc +LIBADD= openbsd event1 util rpcsvc CFLAGS+=-I${.CURDIR} CFLAGS+=-I${SRCTOP}/contrib/pf/libevent