From owner-freebsd-pkg@FreeBSD.ORG Sun Aug 31 08:11:08 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 079D0267 for ; Sun, 31 Aug 2014 08:11:08 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 852C51832 for ; Sun, 31 Aug 2014 08:11:07 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.9/8.14.9) with ESMTP id s7V8Ap9W093729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 31 Aug 2014 09:10:52 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk s7V8Ap9W093729 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1409472652; bh=uXnh8OG4AHAwSu++oq+MxfwUNTcNlqaQiBqL6gaZcu8=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Sun,=2031=20Aug=202014=2009:10:38=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-pkg@fr eebsd.org|Subject:=20Re:=20pkg-static:=20pkg-1.4.0.p.a11=20conflic ts=20with=20pkg-1.3.7=20(installs=0D=0A=20files=20into=20the=20sam e=20place).|References:=20|In-Reply-To:=20; b=Iq+/bAnvS5Y7E34rC8DAU9ilKlas7bxnHOSatGvki1CHCgvPrQczfDlOw0BsMNsWo zeJTNacLkWMUyPui0BQeXxYombxvlU9oYAEDZ8RoSgK7KOf3B1AmnPi75a9knvaHV8 GIqUGFvqn4R8gF7M4WgMVShg9mN4hi+ZXLqn0lUw= Message-ID: <5402D87E.4080701@infracaninophile.co.uk> Date: Sun, 31 Aug 2014 09:10:38 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-pkg@freebsd.org Subject: Re: pkg-static: pkg-1.4.0.p.a11 conflicts with pkg-1.3.7 (installs files into the same place). References: In-Reply-To: OpenPGP: id=E1ECF9BB Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KHRvvitlKikCBFlV8rKTh4NH3Qj1u6ldK" X-Virus-Scanned: clamav-milter 0.98.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2014 08:11:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KHRvvitlKikCBFlV8rKTh4NH3Qj1u6ldK Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 31/08/2014 06:02, Craig Rodrigues wrote: > I did a fresh install of 10-STABLE on a new system. >=20 > I set up the new xorg repository as outlined here: >=20 > https://lists.freebsd.org/pipermail/freebsd-announce/2014-July/001570.h= tml >=20 > When I tried to install a bunch of packages, > I got this conflict: >=20 > pkg-static: pkg-1.4.0.p.a11 conflicts with pkg-1.3.7 (installs files > into the same place). > Problematic file: /usr/local/etc/bash_completion.d/_pkg.bash >=20 > The full log of what I typed is here: > https://people.freebsd.org/~rodrigc/pkg-1.3.7-pkg-1.40.conflict.txt >=20 > What is the best way to solve this? >=20 > In future, how do we deal with the case where someone sets up > multiple package repositories, but one repo has a dependency > on a different version of pkg? Presumably pkg-1.4.0.p.a11 is from the pkg-devel port? Your output shows no sign of the pkg bootstrapping process, so pkg-devel must have already been installed. Yet in your list of packages to install you specifically include 'pkg' As far as I know, the only package in the ports tree that has a specific run-time dependency (ie. the only sort of dependency pkg(8) cares about when handling binary packages) on pkg itself is net-snmp[*], but you aren't installing that, so you could use either pkg or pkg-devel quite happily. Your transcript also shows pkg-1.3.7 being upgraded, and then later deleted. That's a known bug -- https://github.com/freebsd/pkg/issues/980 -- but this is the first report of pkg doing that to itself. In order to sort out your specific case, try this: - first, ensure that you have the version of pkg installed that you want. For the standard release version: # pkg install pkg - then delete pkg from your list of stuff to install. Practically speaking when installing a set of packages like this, you can assume that pkg is already installed. If it isn't then the /usr/sbin/pkg bootstrapping process will achieve the same effect as soon as you try and install anything. - try again to install your list of packages. Judging by the output you showed, most of them were in fact installed then, but it looks like there are 60-odd stragglers to deal with. Cheers, Matthew [*] Run time dependencies on pkg(8) should as a rule, be avoided without very good reason. --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --KHRvvitlKikCBFlV8rKTh4NH3Qj1u6ldK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iQJ8BAEBCgBmBQJUAtiLXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATr2wQAJUwm8H/aIFmkuPfrBuSezPm EJkoy1DpaZGp0/o/bVQfbvL5knYzIoiMLSM3nAwpy9Bi7i04ri3CChIEGPqbPwq7 qjY0dwTFUgBnVIH2tkSukzTxV4xyMqHzrYbD61MnEeu12qo170OSoEe04poVEakk T0MjeAeOx6Q6vC3g5K9Z5VX6vfrgSxINME/R5qwnCHfRAz05DcZjkD5qjhmmO1bU 9WUOsMdYIgbcid2XTYnanvvC60wKcYg3ouTX/RNWe8s7+HDMtEwBs+DeEEIPWa0f Zie1cy6Lu+GPtnWOWX+HFdRDsy3b+BZ6qMnozSuUcVVIYmdQaGEDppBKEqmm6dy9 qnmUXRsBKMwHgz/2Lbs9k8ZvEBDXukT/Qup8uDaPA8w6BX8dP/4d7DInlFtZJwMU O4OG1j+ROlEgXvmYnlkk2Aq6lOtfJlxluPHIfBiusVSF1it+KD7WXZTnNKsGRmpf Aepr0EY0kYDFSXhbYZ3XmZqnLMkrRV3qBHWg5lNGH/1VeioLACnbEeSLu+zXAcPR NawBWWHofHeCvruYlixVfD2ar5yF7aWDsJwWxgK2yYv4XrR71hTlj4XM42Rgy8hi bbZm1UP/F/Lf5H4hJpXfvFBk4vUbO459niPNQnMT/1MXQJlkk3dYh/Ba5T1KXUVa 62LjxFpwpu63RZlr3Y/M =hvdo -----END PGP SIGNATURE----- --KHRvvitlKikCBFlV8rKTh4NH3Qj1u6ldK--