Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Make libuv private, requested by joerg@



details:   https://anonhg.NetBSD.org/src/rev/0fb6e34f6798
branches:  trunk
changeset: 933784:0fb6e34f6798
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 30 20:47:58 2020 +0000

description:
Make libuv private, requested by joerg@

diffstat:

 distrib/sets/lists/base/mi            |   4 ++--
 distrib/sets/lists/base/shl.mi        |   8 ++++----
 distrib/sets/lists/comp/mi            |  26 +++++++++++++-------------
 distrib/sets/lists/comp/shl.mi        |   4 ++--
 distrib/sets/lists/debug/mi           |   4 ++--
 distrib/sets/lists/debug/shl.mi       |   6 +++---
 etc/mtree/NetBSD.dist.base            |   3 +--
 external/mit/libuv/lib/Makefile       |   6 +++++-
 external/mpl/bind/Makefile.inc        |  17 +++++++++++++----
 external/mpl/bind/lib/libisc/Makefile |  14 +++++++++++++-
 external/mpl/bind/lib/libisc/isc.map  |   4 ++++
 external/mpl/dhcp/Makefile.inc        |  16 +++++++++++-----
 share/mk/bsd.README                   |   3 +--
 share/mk/bsd.prog.mk                  |   3 +--
 14 files changed, 75 insertions(+), 43 deletions(-)

diffs (truncated from 363 to 300 lines):

diff -r e96f55566411 -r 0fb6e34f6798 distrib/sets/lists/base/mi
--- a/distrib/sets/lists/base/mi        Sat May 30 20:23:25 2020 +0000
+++ b/distrib/sets/lists/base/mi        Sat May 30 20:47:58 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1245 2020/05/24 19:47:59 christos Exp $
+# $NetBSD: mi,v 1.1246 2020/05/30 20:47:58 christos Exp $
 #
 # Note:        Don't delete entries from here - mark them as "obsolete" instead,
 #      unless otherwise stated below.
@@ -1303,7 +1303,7 @@
 ./usr/include/ufs/mfs                          base-c-usr
 ./usr/include/ufs/ufs                          base-c-usr
 ./usr/include/uvm                              base-c-usr
-./usr/include/uv                               base-c-usr
+./usr/include/uv                               base-obsolete           obsolete
 ./usr/include/vm                               base-obsolete           obsolete
 ./usr/lib                                      base-sys-usr            compatdir
 ./usr/lib/clang                                        base-sys-usr
diff -r e96f55566411 -r 0fb6e34f6798 distrib/sets/lists/base/shl.mi
--- a/distrib/sets/lists/base/shl.mi    Sat May 30 20:23:25 2020 +0000
+++ b/distrib/sets/lists/base/shl.mi    Sat May 30 20:47:58 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.889 2020/05/28 17:06:24 christos Exp $
+# $NetBSD: shl.mi,v 1.890 2020/05/30 20:47:58 christos Exp $
 #
 # Note:        Don't delete entries from here - mark them as "obsolete" instead,
 #      unless otherwise stated below.
@@ -920,9 +920,9 @@
 ./usr/lib/libuutil.so                          base-zfs-shlib          compatfile,zfs
 ./usr/lib/libuutil.so.0                                base-zfs-shlib          compatfile,zfs
 ./usr/lib/libuutil.so.0.0                      base-zfs-shlib          compatfile,zfs
-./usr/lib/libuv.so                             base-sys-shlib          compatfile
-./usr/lib/libuv.so.1                           base-sys-shlib          compatfile
-./usr/lib/libuv.so.1.0                         base-sys-shlib          compatfile
+./usr/lib/libuv.so                             base-obsolete           compatfile,obsolete
+./usr/lib/libuv.so.1                           base-obsolete           compatfile,obsolete
+./usr/lib/libuv.so.1.0                         base-obsolete           compatfile,obsolete
 ./usr/lib/libwind.so                           base-krb5-shlib         compatfile,kerberos
 ./usr/lib/libwind.so.1                         base-krb5-shlib         compatfile,kerberos
 ./usr/lib/libwind.so.1.0                       base-krb5-shlib         compatfile,kerberos
diff -r e96f55566411 -r 0fb6e34f6798 distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Sat May 30 20:23:25 2020 +0000
+++ b/distrib/sets/lists/comp/mi        Sat May 30 20:47:58 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.2330 2020/05/24 19:47:59 christos Exp $
+#      $NetBSD: mi,v 1.2331 2020/05/30 20:47:58 christos Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.comp                           comp-sys-root
@@ -3302,12 +3302,12 @@
 ./usr/include/utmp.h                           comp-c-include
 ./usr/include/utmpx.h                          comp-c-include
 ./usr/include/uuid.h                           comp-c-include
-./usr/include/uv.h                             comp-c-include
-./usr/include/uv/bsd.h                         comp-c-include
-./usr/include/uv/errno.h                       comp-c-include
-./usr/include/uv/threadpool.h                  comp-c-include
-./usr/include/uv/unix.h                                comp-c-include
-./usr/include/uv/version.h                     comp-c-include
+./usr/include/uv.h                             comp-c-obsolete         obsolete
+./usr/include/uv/bsd.h                         comp-c-obsolete         obsolete
+./usr/include/uv/errno.h                       comp-c-obsolete         obsolete
+./usr/include/uv/threadpool.h                  comp-c-obsolete         obsolete
+./usr/include/uv/unix.h                                comp-c-obsolete         obsolete
+./usr/include/uv/version.h                     comp-c-obsolete         obsolete
 ./usr/include/uvm/uvm.h                                comp-c-include
 ./usr/include/uvm/uvm_amap.h                   comp-c-include
 ./usr/include/uvm/uvm_amap_i.h                 comp-obsolete           obsolete
@@ -3925,8 +3925,8 @@
 ./usr/lib/libusbhid_p.a                                comp-c-proflib          compatfile,profile
 ./usr/lib/libutil.a                            comp-c-lib              compatfile
 ./usr/lib/libutil_p.a                          comp-c-proflib          compatfile,profile
-./usr/lib/libuv.a                              comp-c-lib              compatfile
-./usr/lib/libuv_p.a                            comp-c-proflib          compatfile,profile
+./usr/lib/libuv.a                              comp-obsolete           compatfile,obsolete
+./usr/lib/libuv_p.a                            comp-obsolete           obsolete
 ./usr/lib/libuutil.a                           comp-zfs-lib            compatfile,zfs
 ./usr/lib/libuutil_p.a                         comp-zfs-proflib        compatfile,zfs,profile
 ./usr/lib/libwind.a                            comp-krb5-lib           compatfile,kerberos
@@ -3953,7 +3953,7 @@
 ./usr/lib/pkgconfig/libcrypto.pc               comp-crypto-lib         share
 ./usr/lib/pkgconfig/libfido2.pc                        comp-c-lib              share
 ./usr/lib/pkgconfig/libssl.pc                  comp-crypto-lib         share
-./usr/lib/pkgconfig/libuv.pc                   comp-c-lib              share
+./usr/lib/pkgconfig/libuv.pc                   comp-obsolete           share,obsolete
 ./usr/lib/pkgconfig/lutok.pc                   comp-crypto-lib         kyua,share
 ./usr/lib/pkgconfig/openssl.pc                 comp-crypto-lib         share
 ./usr/lib/pkgconfig/sqlite3.pc                 comp-c-lib
@@ -8480,7 +8480,7 @@
 ./usr/share/man/cat3/libusb.0                  comp-obsolete           obsolete
 ./usr/share/man/cat3/libusbhid.0               comp-c-catman           .cat
 ./usr/share/man/cat3/libutil.0                 comp-c-catman           .cat
-./usr/share/man/cat3/libuv.0                   comp-c-catman           .cat
+./usr/share/man/cat3/libuv.0                   comp-obsolete           obsolete
 ./usr/share/man/cat3/limits.0                  comp-c-catman           .cat
 ./usr/share/man/cat3/link_addr.0               comp-c-catman           .cat
 ./usr/share/man/cat3/link_field.0              comp-c-catman           .cat
@@ -16578,7 +16578,7 @@
 ./usr/share/man/html3/libsaslc.html            comp-c-htmlman          html
 ./usr/share/man/html3/libusbhid.html           comp-c-htmlman          html
 ./usr/share/man/html3/libutil.html             comp-c-htmlman          html
-./usr/share/man/html3/libuv.html               comp-c-htmlman          html
+./usr/share/man/html3/libuv.html               comp-obsolete           obsolete
 ./usr/share/man/html3/limits.html              comp-c-htmlman          html
 ./usr/share/man/html3/link_addr.html           comp-c-htmlman          html
 ./usr/share/man/html3/link_field.html          comp-c-htmlman          html
@@ -24659,7 +24659,7 @@
 ./usr/share/man/man3/libusb.3                  comp-obsolete           obsolete
 ./usr/share/man/man3/libusbhid.3               comp-c-man              .man
 ./usr/share/man/man3/libutil.3                 comp-c-man              .man
-./usr/share/man/man3/libuv.3                   comp-c-man              .man
+./usr/share/man/man3/libuv.3                   comp-obsolete           obsolete
 ./usr/share/man/man3/limits.3                  comp-c-man              .man
 ./usr/share/man/man3/link_addr.3               comp-c-man              .man
 ./usr/share/man/man3/link_field.3              comp-c-man              .man
diff -r e96f55566411 -r 0fb6e34f6798 distrib/sets/lists/comp/shl.mi
--- a/distrib/sets/lists/comp/shl.mi    Sat May 30 20:23:25 2020 +0000
+++ b/distrib/sets/lists/comp/shl.mi    Sat May 30 20:47:58 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.333 2020/05/24 19:48:00 christos Exp $
+# $NetBSD: shl.mi,v 1.334 2020/05/30 20:47:58 christos Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -279,7 +279,7 @@
 ./usr/lib/libusb_pic.a                         comp-obsolete           obsolete
 ./usr/lib/libusbhid_pic.a                      comp-c-piclib           compatfile,picinstall
 ./usr/lib/libutil_pic.a                                comp-c-piclib           compatfile,picinstall
-./usr/lib/libuv_pic.a                          comp-c-piclib           compatfile,picinstall
+./usr/lib/libuv_pic.a                          comp-obsolete           obsolete
 ./usr/lib/libuutil_pic.a                       comp-zfs-piclib         compatfile,picinstall,zfs
 ./usr/lib/libwind_pic.a                                comp-c-piclib           compatfile,picinstall,kerberos
 ./usr/lib/libwrap_pic.a                                comp-c-piclib           compatfile,picinstall
diff -r e96f55566411 -r 0fb6e34f6798 distrib/sets/lists/debug/mi
--- a/distrib/sets/lists/debug/mi       Sat May 30 20:23:25 2020 +0000
+++ b/distrib/sets/lists/debug/mi       Sat May 30 20:47:58 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.312 2020/05/24 19:48:00 christos Exp $
+# $NetBSD: mi,v 1.313 2020/05/30 20:47:58 christos Exp $
 ./etc/mtree/set.debug                           comp-sys-root
 ./usr/lib                                      comp-sys-usr            compatdir
 ./usr/lib/i18n/libBIG5_g.a                     comp-c-debuglib         debuglib,compatfile
@@ -265,7 +265,7 @@
 ./usr/lib/libunbound_g.a                       comp-c-debuglib         debuglib,compatfile,unbound
 ./usr/lib/libusbhid_g.a                                comp-c-debuglib         debuglib,compatfile
 ./usr/lib/libutil_g.a                          comp-c-debuglib         debuglib,compatfile
-./usr/lib/libuv_g.a                            comp-c-debuglib         debuglib,compatfile
+./usr/lib/libuv_g.a                            comp-obsolete           obsolete,compatfile
 ./usr/lib/libuutil_g.a                         comp-c-debuglib         debuglib,compatfile,zfs
 ./usr/lib/libvers_g.a                          comp-c-debuglib         debuglib,compatfile,kerberos
 ./usr/lib/libwind_g.a                          comp-c-debuglib         debuglib,compatfile,kerberos
diff -r e96f55566411 -r 0fb6e34f6798 distrib/sets/lists/debug/shl.mi
--- a/distrib/sets/lists/debug/shl.mi   Sat May 30 20:23:25 2020 +0000
+++ b/distrib/sets/lists/debug/shl.mi   Sat May 30 20:47:58 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.250 2020/05/28 17:06:24 christos Exp $
+# $NetBSD: shl.mi,v 1.251 2020/05/30 20:47:58 christos Exp $
 ./usr/lib/libbfd_g.a                                           comp-c-debuglib debuglib,compatfile,binutils
 ./usr/libdata/debug/lib                                                base-sys-usr    debug,dynamicroot,compatdir
 ./usr/libdata/debug/lib/libavl.so.0.0.debug                    comp-zfs-debug  debug,dynamicroot,zfs
@@ -320,9 +320,9 @@
 ./usr/libdata/debug/usr/lib/libumem.so.0.0.debug               comp-zfs-debug  debug,compatfile,zfs
 ./usr/libdata/debug/usr/lib/libunbound.so.6.2.debug            comp-net-debug  debug,compatfile,unbound
 ./usr/libdata/debug/usr/lib/libusbhid.so.1.0.debug             comp-sys-debug  debug,compatfile
-./usr/libdata/debug/usr/lib/libutil.so.7.23.debug              comp-obsolete   debug,compatfile,obsolete,compatfile
+./usr/libdata/debug/usr/lib/libutil.so.7.23.debug              comp-obsolete   debug,compatfile,obsolete
 ./usr/libdata/debug/usr/lib/libutil.so.7.24.debug              comp-sys-debug  debug,compatfile
-./usr/libdata/debug/usr/lib/libuv.so.1.0.debug                 comp-sys-debug  debug,compatfile
+./usr/libdata/debug/usr/lib/libuv.so.1.0.debug                 comp-obsolete   debug,compatfile,obsolete
 ./usr/libdata/debug/usr/lib/libuutil.so.0.0.debug              comp-zfs-debug  debug,compatfile,zfs
 ./usr/libdata/debug/usr/lib/libwind.so.1.0.debug               comp-krb5-debug debug,compatfile,kerberos
 ./usr/libdata/debug/usr/lib/libwrap.so.1.0.debug               comp-net-debug  debug,compatfile
diff -r e96f55566411 -r 0fb6e34f6798 etc/mtree/NetBSD.dist.base
--- a/etc/mtree/NetBSD.dist.base        Sat May 30 20:23:25 2020 +0000
+++ b/etc/mtree/NetBSD.dist.base        Sat May 30 20:47:58 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: NetBSD.dist.base,v 1.216 2020/05/24 19:29:19 christos Exp $
+#      $NetBSD: NetBSD.dist.base,v 1.217 2020/05/30 20:47:59 christos Exp $
 #      @(#)4.4BSD.dist 8.1 (Berkeley) 6/13/93
 
 # Do not customize this file as it may be overwritten on upgrades.
@@ -255,7 +255,6 @@
 ./usr/include/ufs/lfs
 ./usr/include/ufs/mfs
 ./usr/include/ufs/ufs
-./usr/include/uv
 ./usr/include/uvm
 ./usr/lib
 ./usr/lib/clang
diff -r e96f55566411 -r 0fb6e34f6798 external/mit/libuv/lib/Makefile
--- a/external/mit/libuv/lib/Makefile   Sat May 30 20:23:25 2020 +0000
+++ b/external/mit/libuv/lib/Makefile   Sat May 30 20:47:58 2020 +0000
@@ -1,13 +1,17 @@
-# $NetBSD: Makefile,v 1.1 2020/05/24 19:28:10 christos Exp $
+# $NetBSD: Makefile,v 1.2 2020/05/30 20:47:59 christos Exp $
+
+LIBISPRIVATE=yes
 
 .include <bsd.own.mk>
 
 MKLINT=        no
 LIB=   uv
 
+.if ${LIBISPRIVATE:Uno} == "no"
 INCS=  uv.h uv/unix.h uv/bsd.h uv/errno.h uv/version.h uv/threadpool.h
 INCSDIR=/usr/include
 MAN=   libuv.3
+.endif
 
 LIBUVDIR=${.CURDIR}/../dist
 
diff -r e96f55566411 -r 0fb6e34f6798 external/mpl/bind/Makefile.inc
--- a/external/mpl/bind/Makefile.inc    Sat May 30 20:23:25 2020 +0000
+++ b/external/mpl/bind/Makefile.inc    Sat May 30 20:47:58 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.7 2020/05/25 15:12:54 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.8 2020/05/30 20:47:59 christos Exp $
 
 .if !defined(BIND9_MAKEFILE_INC)
 BIND9_MAKEFILE_INC=yes
@@ -14,6 +14,9 @@
 
 .include <bsd.own.mk>
 
+LIBUVDIR=${NETBSDSRCDIR}/external/mit/libuv
+LIBUVOBJDIR!=   cd ${LIBUVDIR}/lib && ${PRINTOBJDIR}
+
 NAMED_USE_OPENSSL?=yes
 
 .if exists(${NETBSDSRCDIR}/sys/sys/atomic.h)
@@ -67,12 +70,18 @@
 # NOTE: the order of these libraries is important...
 .if defined(NAMED_DEBUG)
 LDADD+=                -lbind9_g -lisccfg_g -ldns_g -lns_g -lirs_g
-LDADD+=                -lisccc_g -lisc_g -luv_g -lkvm_g -lz_g
+LDADD+=                -lisccc_g -lisc_g
+LDADD+=                -L${LIBUVOBJDIR} -luv_g
+LDADD+=                -lkvm_g -lz_g
 .else
 LDADD+=                -lbind9 -lisccfg -ldns -lns -lirs
 DPADD+=                ${LIBBIND9} ${LIBISCCFG} ${LIBDNS} ${LIBNS} ${LIBIRS}
-LDADD+=                -lisccc -lisc -luv -lkvm -lz
-DPADD+=                ${LIBISCCC} ${LIBISC} ${LIBUV} ${LIBKVM} ${LIBZ}
+LDADD+=                -lisccc -lisc 
+LDADD+=                -L${LIBUVOBJDIR} -luv
+LDADD+=                -lkvm -lz
+DPADD+=                ${LIBISCCC} ${LIBISC}
+DPADD+=                ${LIBUVOBJDIR}/libuv.a
+DPADD+=                ${LIBKVM} ${LIBZ}
 .endif
 .else
 CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \
diff -r e96f55566411 -r 0fb6e34f6798 external/mpl/bind/lib/libisc/Makefile
--- a/external/mpl/bind/lib/libisc/Makefile     Sat May 30 20:23:25 2020 +0000
+++ b/external/mpl/bind/lib/libisc/Makefile     Sat May 30 20:47:58 2020 +0000
@@ -1,10 +1,14 @@
-#      $NetBSD: Makefile,v 1.11 2020/05/24 19:46:31 christos Exp $
+#      $NetBSD: Makefile,v 1.12 2020/05/30 20:47:59 christos Exp $
 
 LIB=isc
 #USE_SHLIBDIR=   yes
 
 .include <bsd.own.mk>
 
+LIBUVDIR=${NETBSDSRCDIR}/external/mit/libuv
+LIBUVOBJDIR!=   cd ${LIBUVDIR}/lib && ${PRINTOBJDIR}
+CPPFLAGS+=-I${LIBUVDIR}/dist/include
+
 .include "${.CURDIR}/../Makefile.inc"
 
 DIST=  ${IDIST}/lib/isc
@@ -47,6 +51,14 @@
 SRCS+=         ipv6.c
 .endif
 
+LDFLAGS+=-Wl,--version-script=${.CURDIR}/isc.map
+LDADD+=-Wl,-Bstatic
+
+LDADD+=-L${LIBUVOBJDIR} -luv_pic
+DPADD+=${LIBUVOBJDIR}/libuv_pic.a
+
+LDADD+=-Wl,-Bdynamic
+
 LDADD+=-lz
 DPADD+=${LIBZ}
 
diff -r e96f55566411 -r 0fb6e34f6798 external/mpl/bind/lib/libisc/isc.map
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mpl/bind/lib/libisc/isc.map      Sat May 30 20:47:58 2020 +0000
@@ -0,0 +1,4 @@
+ISC {
+    local:
+       uv_*;
+};
diff -r e96f55566411 -r 0fb6e34f6798 external/mpl/dhcp/Makefile.inc
--- a/external/mpl/dhcp/Makefile.inc    Sat May 30 20:23:25 2020 +0000
+++ b/external/mpl/dhcp/Makefile.inc    Sat May 30 20:47:58 2020 +0000
@@ -1,9 +1,13 @@
-# $NetBSD: Makefile.inc,v 1.7 2020/05/25 15:37:50 christos Exp $
+# $NetBSD: Makefile.inc,v 1.8 2020/05/30 20:47:59 christos Exp $



Home | Main Index | Thread Index | Old Index