perl version woe

Victor Sudakov vas at mpeks.tomsk.su
Fri Apr 17 03:52:09 UTC 2015


Matthew Seaman wrote:
> >>> > > Do you mean to say, I should be able to safely run "pkg upgrade" and
> >>> > > pkg will resolve this for me?
> >> > 
> >> > Yes, pretty much.
> >> > 
> >> > You can run 'pkg upgrade' safely, as it will show you what packages it
> >> > will install, remove or reinstall and ask you for confirmation before it
> >> > does.  (Assuming you haven't overridden that behaviour in pkg.conf)
> >> > Check what it tells you carefully, and just hit 'n' if you don't agree
> >> > with it.
> 
> > That's exactly what I did. When I saw that it was going to INSTALL
> > perl5 instead of UPDATE it, I refused to proceed and asked a question
> > here.
> 
> Uh -- if you're switching perl versions from an old version of
> perl-5.16, then pkg(8) sees you're changing to a different package,
> because the pkgname has changed.  So pkg(8) isn't going to say
> "Upgrading perl5.16-5.16.2 to perl5-5.18.4" -- it's going to say
> "Installing perl5-5.18.4" and then on the second pass through the solver
> it's going to realize that the two different perl ports conflict, so
> it's then going to say "Deleting perl5.16-5.16.2" and "Installing
> perl5-5.18.4"

Thank for you for the explanation. Now that I understand the logic
behind the scenes, the process looks fine to me. 

However, could you please explain what is happening below and how I
should fix this:

[dd]
Fetching postgresql92-client-9.2.10_1.txz: 100%  991 MiB 146.2kB/s    00:36 ETA
Fetching php5-pdo_pgsql-5.4.39.txz: 100%   17 KiB  17.6kB/s    00:01
Checking integrity... done (2 conflicting)
pkg: Cannot solve problem using SAT solver:
dependency rule: package php5-extensions(r) depends on: php5-ldap(r)php5-ldap(l)
dependency rule: package php5-extensions(l) depends on: php5-ldap(r)php5-ldap(l)
upgrade rule: upgrade local php5-ldap-5.4.39 to remote php5-ldap-5.4.39
cannot install package php5-ldap, remove it from request? [Y/n]: pkg: cannot find php5-ldap in the request
pkg: cannot solve job using SAT solver
Checking integrity... done (0 conflicting)
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
[root at gw /]

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov at sibptus.tomsk.ru


More information about the freebsd-pkg mailing list