Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2014 09:10:38 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
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).
Message-ID:  <5402D87E.4080701@infracaninophile.co.uk>
In-Reply-To: <CAG=rPVf4eRMEzOLWmP=6gaGdpWM1JJp9OWuLrGqiJK82JvwGkw@mail.gmail.com>
References:  <CAG=rPVf4eRMEzOLWmP=6gaGdpWM1JJp9OWuLrGqiJK82JvwGkw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5402D87E.4080701>