From owner-svn-src-head@freebsd.org Sat Apr 15 20:05:23 2017 Return-Path: Delivered-To: svn-src-head@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 D33E4D3F7C4; Sat, 15 Apr 2017 20:05:23 +0000 (UTC) (envelope-from bapt@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 B020B195; Sat, 15 Apr 2017 20:05:23 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3FK5Msf002465; Sat, 15 Apr 2017 20:05:22 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3FK5M2j002459; Sat, 15 Apr 2017 20:05:22 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201704152005.v3FK5M2j002459@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Sat, 15 Apr 2017 20:05:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316978 - in head: contrib/zstd etc/mtree lib lib/libzstd share/mk usr.bin usr.bin/zstd X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2017 20:05:23 -0000 Author: bapt Date: Sat Apr 15 20:05:22 2017 New Revision: 316978 URL: https://svnweb.freebsd.org/changeset/base/316978 Log: Import zstandard 1.1.4 in base zstandard is a new compression library/tool which is very fast at compression/decompression For now import as a private library Added: head/contrib/zstd/ - copied from r316976, vendor/zstd/dist/ head/lib/libzstd/ head/lib/libzstd/Makefile (contents, props changed) head/usr.bin/zstd/ head/usr.bin/zstd/Makefile (contents, props changed) Modified: head/etc/mtree/BSD.usr.dist head/lib/Makefile head/share/mk/src.libnames.mk head/usr.bin/Makefile Modified: head/etc/mtree/BSD.usr.dist ============================================================================== --- head/etc/mtree/BSD.usr.dist Sat Apr 15 20:03:50 2017 (r316977) +++ head/etc/mtree/BSD.usr.dist Sat Apr 15 20:05:22 2017 (r316978) @@ -17,6 +17,8 @@ .. ucl .. + zstd + .. .. .. lib Modified: head/lib/Makefile ============================================================================== --- head/lib/Makefile Sat Apr 15 20:03:50 2017 (r316977) +++ head/lib/Makefile Sat Apr 15 20:05:22 2017 (r316978) @@ -90,6 +90,7 @@ SUBDIR= ${SUBDIR_BOOTSTRAP} \ libxo \ liby \ libz \ + libzstd \ ncurses # Inter-library dependencies. When the makefile for a library contains LDADD Added: head/lib/libzstd/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libzstd/Makefile Sat Apr 15 20:05:22 2017 (r316978) @@ -0,0 +1,34 @@ +# $FreeBSD$ + +LIB= zstd +SRCS= entropy_common.c \ + error_private.c \ + fse_decompress.c \ + pool.c \ + threading.c \ + xxhash.c \ + zstd_common.c \ + fse_compress.c \ + huf_compress.c \ + zstd_compress.c \ + zstdmt_compress.c \ + huf_decompress.c \ + zstd_decompress.c \ + zbuff_common.c \ + zbuff_compress.c \ + zbuff_decompress.c \ + cover.c \ + divsufsort.c \ + zdict.c +WARNS= 2 +INCS= zstd.h +CFLAGS+= -I${ZSTDDIR}/lib -I${ZSTDDIR}/lib/common -DXXH_NAMESPACE=ZSTD_ + +PRIVATELIB= yes + +ZSTDDIR= ${SRCTOP}/contrib/zstd +.PATH: ${ZSTDDIR}/lib/common ${ZSTDDIR}/lib/compress \ + ${ZSTDDIR}/lib/decompress ${ZSTDDIR}/lib/deprecated \ + ${ZSTDDIR}/lib/dictBuilder ${ZSTDDIR}/lib + +.include Modified: head/share/mk/src.libnames.mk ============================================================================== --- head/share/mk/src.libnames.mk Sat Apr 15 20:03:50 2017 (r316977) +++ head/share/mk/src.libnames.mk Sat Apr 15 20:05:22 2017 (r316978) @@ -24,7 +24,8 @@ _PRIVATELIBS= \ sqlite3 \ ssh \ ucl \ - unbound + unbound \ + zstd _INTERNALLIBS= \ amu \ Modified: head/usr.bin/Makefile ============================================================================== --- head/usr.bin/Makefile Sat Apr 15 20:03:50 2017 (r316977) +++ head/usr.bin/Makefile Sat Apr 15 20:05:22 2017 (r316978) @@ -189,7 +189,8 @@ SUBDIR= alias \ xo \ xz \ xzdec \ - yes + yes \ + zstd # NB: keep these sorted by MK_* knobs Added: head/usr.bin/zstd/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.bin/zstd/Makefile Sat Apr 15 20:05:22 2017 (r316978) @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PROG= zstd +SRCS= bench.c \ + datagen.c \ + dibio.c \ + fileio.c \ + zstdcli.c + +CFLAGS+= -I${SRCTOP}/contrib/zstd/programs \ + -I${SRCTOP}/contrib/zstd/lib/common \ + -I${SRCTOP}/contrib/zstd/lib/compress \ + -I${SRCTOP}/contrib/zstd/lib/dictBuilder \ + -I${SRCTOP}/contrib/zstd/lib \ + -DXXH_NAMESPACE=ZSTD_ + +WARNS= 2 +LIBADD= zstd +.PATH: ${SRCTOP}/contrib/zstd/programs + +.include