From owner-freebsd-ports@FreeBSD.ORG Mon Feb 17 03:24:37 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B610A1DA for ; Mon, 17 Feb 2014 03:24:37 +0000 (UTC) Received: from mail1.riverwillow.net.au (mail1.riverwillow.net.au [IPv6:2001:8000:1000:1801::36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 151921D75 for ; Mon, 17 Feb 2014 03:24:36 +0000 (UTC) Received: from rwpc15.gfn.riverwillow.net.au (rwpc15.gfn.riverwillow.net.au [IPv6:2001:8000:1000:18e1:20c:76ff:fe0a:2117]) (authenticated bits=56) by mail1.riverwillow.net.au (8.14.8/8.14.8) with ESMTP id s1H3OXmu023351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Feb 2014 14:24:34 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=riverwillow.com.au; s=m1001; t=1392607475; bh=kUODV5bsq3k6tl2RiANzqk8vg5/LV7xR0GevHUbs4sA=; h=Date:From:To:Subject; b=xy1AfP5z6sMDctanHZUK5P7CyxW3xVGzcDC4ttC+1Gkc2xnMpAlKKysYfk4Hkx7mA vySG0XAh4iplOoQdsCEIsPXhPTImfTqvl/te+pj4GQ4VrH6DbvaaRs3zP8AJ/vblGg 1/DGKG9LMOpEnG4LjAgEXI5D/7DTWG+UXrcqbV2A= Date: Mon, 17 Feb 2014 14:24:33 +1100 From: John Marshall To: freebsd-ports@freebsd.org Subject: ports-mgmt/pkg pkg-repo(8) does not catalogue latest package Message-ID: <20140217032433.GA47810@rwpc15.gfn.riverwillow.net.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nq2Wo0NMKNjxTN9z" Content-Disposition: inline OpenPGP: id=A29A84A2; url=http://pki.riverwillow.com.au/pgp/johnmarshall.asc User-Agent: Mutt/1.5.22 (2013-10-16) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Feb 2014 03:24:37 -0000 --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Creating a repository catalogue with "pkg repo ${repo_root}" includes only the OLDEST version of any package found in a directory below the repository root. Perhaps I'm just not driving it properly? When I build ports with portmaster, I pass the -g option so that portmaster saves a (pkgng flavour) package of the port in ${repo_root}/All. After a ports tree upgrade, building the upgraded ports and saving their packages in ${repo_root}/All, both the old and new versions of the upgraded port's packages are present in that directory. If I go to ${repo_root}, delete any existing repository catalogue, and create a fresh one using "pkg repo ${repo_root}", querying the fresh catalogue shows that only the older version of the package has been included in the catalogue. pkg-repo(8) states: Symbolic links are ignored, and only the most recent package for each origin is included in the catalogue. The only way to get this to "work" seems to be deleting all but the latest version of the package prior to creating the catalogue. I have filed a PR (ports/186827) --=20 John Marshall --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlMBgPEACgkQw/tAaKKahKLmwQCgxN0D4Su4SCoPcqTgMACaFqep uooAoIgvwF5gcEF+OZukZyhDWUMglWpF =t3CM -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z--