pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problems with pkg_rolling-replace and how else to update packages



In the case of Python packages, chances are the package it says it
can't find is installed, but under a different Python version.  In your
case it might be "py36-xcbgen" or even "py27-xcbgen."  Try finding
which version is installed by running "pkg_info -e "py*-xcbgen" and
then running pkg_delete -v -f on that package.  Then run
pkg_rolling-replace again.  If the dependency is still needed it will
pick it up later.

Unfortunately handling multiple versions of packages for dynamic
languages like Python is one of pkgsrc's weak points.  The way it's
done now works well only if every package uses one and only one version
of a language like Python. Once multiple versions are needed things
like this start happening.

- Dave V.

On Tue, 14 May 2019 20:54:04 +0000
"Thomas Mueller" <mueller6725%twc.com@localhost> wrote:

> I have been having trouble with pkg_rolling-replace recently, getting
> snagged and not able to update anything.  Time since last update has
> been on the order of four months or longer
> 
> I get messages like 
> 
> RR> Selecting libxcb (x11/libxcb) as next package to replace  
> [41]   Terminated             tail -f "${logfile}" &
> RR> Checking if libxcb has new depends...
> RR> libxcb has the following new depends (need to re-tsort):
> rr> [libxslt py37-xcbgen python37 libtool-base gmake pkgconf
> rr> checkperms]
> RR> Tsorting dependency graph  
> pkg_info: can't find package `py37-xcbgen'
> *** Couldn't extract PKGPATH from installed package py37-xcbgen
> *** Please read the errors listed above, fix the problem,
> *** then re-run pkg_rolling-replace to continue.
> + autoconf
> (snip)
> 
> So many "can't find" problems", and this is only one of several cases.
> 
> This and problems like this occur with both pkg_rolling-replace 0.23
> and 0.26.
> 
> Any way to repair, and how would NetBSD or other pkgsrc users update
> packages, either a small number since a recent upgrade or a large
> number since a non-recent upgrade?
> 
> There is a wiki page on how to upgrade packages,
> 
> https://wiki.netbsd.org/pkgsrc/how_to_upgrade_packages/
> 
> Is it best to wait a long time and rebuild everything from the
> beginning, or how would one best update more frequently?
> 
> I wish NetBSD and pkgsrc had something comparable to portmaster and
> portupgrade (also synth) from FreeBSD ports.
> 
> Tom
> 

Attachment: pgpGl8mh9Pfl5.pgp
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index