From owner-svn-doc-all@freebsd.org Mon Dec 4 16:30:26 2017 Return-Path: Delivered-To: svn-doc-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 A02C8E56E48; Mon, 4 Dec 2017 16:30:26 +0000 (UTC) (envelope-from mat@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 532FC6E99B; Mon, 4 Dec 2017 16:30:26 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB4GUPTL083294; Mon, 4 Dec 2017 16:30:25 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB4GUPhd083293; Mon, 4 Dec 2017 16:30:25 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201712041630.vB4GUPhd083293@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Mon, 4 Dec 2017 16:30:25 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r51255 - head/en_US.ISO8859-1/books/porters-handbook/makefiles X-SVN-Group: doc-head X-SVN-Commit-Author: mat X-SVN-Commit-Paths: head/en_US.ISO8859-1/books/porters-handbook/makefiles X-SVN-Commit-Revision: 51255 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2017 16:30:26 -0000 Author: mat Date: Mon Dec 4 16:30:25 2017 New Revision: 51255 URL: https://svnweb.freebsd.org/changeset/doc/51255 Log: Add two examples of `pkg version -t` usage inside examples. Sponsored by: Absolight Modified: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Mon Dec 4 04:16:21 2017 (r51254) +++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Mon Dec 4 16:30:25 2017 (r51255) @@ -290,7 +290,11 @@ DISTVERSION= 1.2-pre4 DISTVERSION= 1.2p4 Both will generate a PORTVERSION of - 1.2.p4. + 1.2.p4 which is before than 1.2. + &man.pkg-version.8; can be used to check that fact: + + &prompt.user; pkg version -t 1.2.p4 1.2 +< @@ -309,7 +313,27 @@ PORTVERSION= 1.2p4 In this case, using DISTVERSION is not possible because it would generate a version of 1.2.p4 which would be before - 1.2 and not after. + 1.2 and not after. &man.pkg-version.8; + will verify this: + + &prompt.user; pkg version -t 1.2 1.2.p4 +> +&prompt.user; pkg version -t 1.2 1.2p4 +< + + + + 1.2 is after + 1.2.p4, which is + wrong in this case. + + + + 1.2 is before + 1.2p4, which is what was + needed. + + For some more advanced examples of setting