From owner-svn-ports-all@FreeBSD.ORG Mon Jun 24 06:02:22 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6495E743; Mon, 24 Jun 2013 06:02:22 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 55C611EBB; Mon, 24 Jun 2013 06:02:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5O62L4P054150; Mon, 24 Jun 2013 06:02:21 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5O62L91054147; Mon, 24 Jun 2013 06:02:21 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201306240602.r5O62L91054147@svn.freebsd.org> From: Baptiste Daroussin Date: Mon, 24 Jun 2013 06:02:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r321664 - head/ports-mgmt/pkg X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jun 2013 06:02:22 -0000 Author: bapt Date: Mon Jun 24 06:02:21 2013 New Revision: 321664 URL: http://svnweb.freebsd.org/changeset/ports/321664 Log: Update to 1.1 final Changes since 1.0.X: - new simpler and more reliable solver - shared libraries are now always tracked - ssh:// is supported as a protocol to distribute packages (needs pkg 1.1+ on the server hosting the packages) - multirepository is no longer considered experimental and works by default. - incremental update of the catalog (only if the repository was created by pkg 1.1+) - simplification of the public API - stabilisation of the public API (we will now try to keep it stable and if change are needed there will be deprecation time before removal of some old functions) - new experimental pkg convert (can convert from and to legacy pkg database) pkg2ng now uses pkg convert (still recommanded to use pkg2ng) - new pkg lock/unlock to prevent any manipulation of a given package (no upgrade,delete,etc) - improved UI (now you can see the progress of an upgrade what is left to be done) - new pkg annotation to allow one to add annotations (free form key/value) to a package) - pkg audit is now able to directly parse the vuxml native format and not only the compact version - pkg -vv now shows all available options and their current settings - pkg -vvv now shows a description of all the available options - pkg info now automatically considers the query as globbing if * is in the requested pattern - new hook plugin interface (allows users to create hooks that get called at anytime during and upgrade/installation/deletion of a package) - new cmd plugin interface (allows users to create new sub command available for pkg) - pkg register can now register a port installation in the legacy database format - repository can be defined in simple yaml files - Explain why a package is being reinstalled - A package can now be marked to only be upgraded from a given repository via annotations - install and upgrade will show from which repository packages are taken from - old/unused 'informations' field has been removed in favor of using annotations - pkg repo produce a repo.txz in pkg 1.0 (legacy) fromat Internal: - massive usage of hash tables (uthash), which simplifies a lot of the code, and improves performances - lots of optimisation in plist and manifest parsing - lots of optimisation in loading packages (mmap used when possible) - lots of cleanup in memory usage - regression test framework is now ready (using atf) regression test are slowly being added and populated. Modified: head/ports-mgmt/pkg/Makefile head/ports-mgmt/pkg/distinfo head/ports-mgmt/pkg/pkg-plist Modified: head/ports-mgmt/pkg/Makefile ============================================================================== --- head/ports-mgmt/pkg/Makefile Mon Jun 24 05:55:58 2013 (r321663) +++ head/ports-mgmt/pkg/Makefile Mon Jun 24 06:02:21 2013 (r321664) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= pkg -DISTVERSION= 1.0.14 +DISTVERSION= 1.1 CATEGORIES= ports-mgmt MASTER_SITES= LOCAL/portmgr \ http://files.etoilebsd.net/pkg/ \ @@ -30,16 +30,19 @@ USE_SUBMAKE= yes MAN8= pkg.8 \ pkg-add.8 \ + pkg-annotate.8 \ pkg-autoremove.8 \ pkg-audit.8 \ pkg-backup.8 \ pkg-check.8 \ pkg-clean.8 \ + pkg-convert.8 \ pkg-create.8 \ pkg-delete.8 \ pkg-fetch.8 \ pkg-info.8 \ pkg-install.8 \ + pkg-lock.8 \ pkg-query.8 \ pkg-register.8 \ pkg-repo.8 \ @@ -54,8 +57,11 @@ MAN8= pkg.8 \ pkg-upgrade.8 \ pkg-version.8 \ pkg-which.8 -MAN5= pkg.conf.5 +MAN5= pkg.conf.5 \ + pkg-repository.5 +MAN3= pkg_printf.3 MLINKS= pkg-delete.8 pkg-remove.8 \ + pkg-lock.8 pkg-unlock.8 \ pkg.8 pkg-static.8 .include @@ -106,34 +112,12 @@ PKG_BIN= ${WRKSRC}/pkg-static/pkg-static .endif .endif -.if ${OSVERSION} < 800505 -IGNORE= not supported on 7.x or early 8.0 -.endif - PERIODIC_DAILY= 400.status-pkg 411.pkg-backup 490.status-pkg-changes PERIODIC_SECURITY= 410.pkg-audit 460.pkg-checksum PERIODIC_ALL= ${PERIODIC_DAILY} ${PERIODIC_SECURITY} post-install: -.for periodic in ${PERIODIC_ALL} - @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/scripts/periodic/${periodic} -.endfor - @${MKDIR} ${PREFIX}/etc/periodic/security - @${MKDIR} ${PREFIX}/etc/periodic/daily -.for periodic in ${PERIODIC_DAILY} - @${INSTALL_SCRIPT} ${WRKSRC}/scripts/periodic/${periodic} ${PREFIX}/etc/periodic/daily -.endfor -.for periodic in ${PERIODIC_SECURITY} - @${INSTALL_SCRIPT} ${WRKSRC}/scripts/periodic/${periodic} ${PREFIX}/etc/periodic/security -.endfor - @${INSTALL_SCRIPT} ${WRKSRC}/ports/pkg2ng ${PREFIX}/sbin - @${INSTALL_SCRIPT} ${WRKSRC}/ports/pkg2ng ${PREFIX}/sbin @${INSTALL_DATA} ${WRKSRC}/pkg/pkg.conf.sample ${PREFIX}/etc - @${INSTALL_DATA} ${WRKSRC}/libpkg/pkg.pc ${PREFIX}/libdata/pkgconfig/ - @${MKDIR} ${PREFIX}/share/zsh/site-functions - @${INSTALL_DATA} ${WRKSRC}/scripts/zsh/_pkg ${PREFIX}/share/zsh/site-functions/ - @${MKDIR} ${PREFIX}/etc/bash_completion.d - @${INSTALL_DATA} ${WRKSRC}/scripts/bash/_pkg.bash ${PREFIX}/etc/bash_completion.d/ @${CAT} ${PKGMESSAGE} .include Modified: head/ports-mgmt/pkg/distinfo ============================================================================== --- head/ports-mgmt/pkg/distinfo Mon Jun 24 05:55:58 2013 (r321663) +++ head/ports-mgmt/pkg/distinfo Mon Jun 24 06:02:21 2013 (r321664) @@ -1,2 +1,2 @@ -SHA256 (pkg-1.0.14.tar.xz) = ded2c91b0e13fb34da36868328e9b5f3700c634c1fa4962ce3910f20d66a0a53 -SIZE (pkg-1.0.14.tar.xz) = 1458472 +SHA256 (pkg-1.1.tar.xz) = c97b22061ffefc47c6697f97089d292d212d0cacda1a41bb162d051d15b80d7e +SIZE (pkg-1.1.tar.xz) = 1554488 Modified: head/ports-mgmt/pkg/pkg-plist ============================================================================== --- head/ports-mgmt/pkg/pkg-plist Mon Jun 24 05:55:58 2013 (r321663) +++ head/ports-mgmt/pkg/pkg-plist Mon Jun 24 06:02:21 2013 (r321664) @@ -3,7 +3,7 @@ sbin/pkg sbin/pkg-static sbin/pkg2ng include/pkg.h -lib/libpkg.so.0 +lib/libpkg.so.1 lib/libpkg.so lib/libpkg.a etc/periodic/daily/400.status-pkg