From owner-svn-src-all@freebsd.org Sat Feb 4 17:21:19 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 794ACCD03CE; Sat, 4 Feb 2017 17:21:19 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3926BFE7; Sat, 4 Feb 2017 17:21:19 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v14HLIOd089574; Sat, 4 Feb 2017 17:21:18 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v14HLHb6089570; Sat, 4 Feb 2017 17:21:17 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201702041721.v14HLHb6089570@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Sat, 4 Feb 2017 17:21:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r313242 - in stable/11: . usr.sbin/bsnmpd/tools usr.sbin/bsnmpd/tools/bsnmptools usr.sbin/bsnmpd/tools/libbsnmptools X-SVN-Group: stable-11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2017 17:21:19 -0000 Author: ngie Date: Sat Feb 4 17:21:17 2017 New Revision: 313242 URL: https://svnweb.freebsd.org/changeset/base/313242 Log: MFC r311174: Make /usr/lib/libbsnmptools.so.0 into an INTERRNALLIB Although it increases the size of the bsnmp{get,set,walk} binaries by four on my [amd64] system, it removes the need for producing .debug files, profiled libraries, and for installing the library itself, reducing the overall size use on disk by the utilities noted previously. Plus, it guards against ABI/API compatibility issues with the library as it's only used internal to the tools themselves. Modified: stable/11/ObsoleteFiles.inc stable/11/usr.sbin/bsnmpd/tools/Makefile stable/11/usr.sbin/bsnmpd/tools/bsnmptools/Makefile stable/11/usr.sbin/bsnmpd/tools/libbsnmptools/Makefile Directory Properties: stable/11/ (props changed) Modified: stable/11/ObsoleteFiles.inc ============================================================================== --- stable/11/ObsoleteFiles.inc Sat Feb 4 17:18:49 2017 (r313241) +++ stable/11/ObsoleteFiles.inc Sat Feb 4 17:21:17 2017 (r313242) @@ -38,6 +38,11 @@ # xargs -n1 | sort | uniq -d; # done +# 20170103: libbsnmptools.so made into an INTERNALLIB +OLD_FILES+=usr/lib/libbsnmptools.a +OLD_FILES+=usr/lib/libbsnmptools_p.a +OLD_LIBS+=usr/lib/libbsnmptools.so.0 +OLD_LIBS+=usr/lib/libbsnmptools.so # 20170112: sysdecode_getfsstat_flags() renamed to sysdecode_getfsstat_mode() OLD_FILES+=usr/share/man/man3/sysdecode_getfsstat_flags.3.gz # 20161229: Three files from gnop tests consolidated into one Modified: stable/11/usr.sbin/bsnmpd/tools/Makefile ============================================================================== --- stable/11/usr.sbin/bsnmpd/tools/Makefile Sat Feb 4 17:18:49 2017 (r313241) +++ stable/11/usr.sbin/bsnmpd/tools/Makefile Sat Feb 4 17:21:17 2017 (r313242) @@ -4,4 +4,8 @@ SUBDIR= libbsnmptools \ bsnmptools +SUBDIR_DEPEND_bsnmptools= libbsnmptools + +SUBDIR_PARALLEL= + .include Modified: stable/11/usr.sbin/bsnmpd/tools/bsnmptools/Makefile ============================================================================== --- stable/11/usr.sbin/bsnmpd/tools/bsnmptools/Makefile Sat Feb 4 17:18:49 2017 (r313241) +++ stable/11/usr.sbin/bsnmpd/tools/bsnmptools/Makefile Sat Feb 4 17:21:17 2017 (r313242) @@ -8,7 +8,9 @@ PROG= bsnmpget LIBADD= bsnmp bsnmptools -CFLAGS+= -I${.CURDIR}/../libbsnmptools + +CFLAGS+= -I${.CURDIR:H}/libbsnmptools +LDFLAGS+= -L${.OBJDIR:H}/libbsnmptools LINKS= ${BINDIR}/bsnmpget ${BINDIR}/bsnmpwalk LINKS+= ${BINDIR}/bsnmpget ${BINDIR}/bsnmpset Modified: stable/11/usr.sbin/bsnmpd/tools/libbsnmptools/Makefile ============================================================================== --- stable/11/usr.sbin/bsnmpd/tools/libbsnmptools/Makefile Sat Feb 4 17:18:49 2017 (r313241) +++ stable/11/usr.sbin/bsnmpd/tools/libbsnmptools/Makefile Sat Feb 4 17:21:17 2017 (r313242) @@ -5,9 +5,9 @@ .PATH: ${.CURDIR} LIB= bsnmptools -#INTERNALLIB= + SRCS= bsnmpimport.c bsnmpmap.c bsnmptools.c bsnmptc.c -SHLIB_MAJOR= 0 +INTERNALLIB= .include