pkgsrc-Users archive

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

Re: Do I need more coffee, do I need to re-strap my pkgsrc, or am I losing my mind here? Not an experienced user nor any kind of pkgsrc hacker. (FreeBSD)

Piling on, here is one way to get into a sane state:

1. Install pkgtools/pkg_rolling-replace
2. rm -rf /usr/pkgsrc/*/*/work
3. If you ever updated part of the pkgsrc tree, I would do a "cvs -q
up -Pd" in /usr/pkgsrc, so that your checkout is consistent.
4. pkg_admin set rebuild=YES \*
5. pkg_rolling-replace -v

And wait.

On Sun, May 24, 2020 at 12:18 PM Jonathan Perkin <> wrote:
> * On 2020-05-24 at 10:46 BST, Ellenor Malik wrote:
> > ===> Creating toolchain wrappers for cmake-3.17.2nb3
> > ERROR: rhash>=1.3.1 is not installed; can't buildlink files.
> You only ever see the "can't buildlink files" error if there is
> inconsistent dependency state.
> Usually this is caused by changing some PKG_OPTIONS or PREFER_PKGSRC,
> or trying to build local packages using binary packages from a remote
> repository without being in sync with the options used, without
> rebuilding all of your affected packages.
> Any time you change local settings that affect the dependency graph
> you need to:
>  * Rebuild all affected packages, or better, rebuild everything just
>    in case there are some dependencies that aren't obvious.
>  * Remove any old packages that were built with the previous settings
>    that could possibly end up being installed.
>  * Remove all work directories (this is good practise after every
>    build anyway).
> Everything across your pkgsrc install must always be in a consistent
> state.
> Hope that helps,
> --
> Jonathan Perkin  -  Joyent, Inc.  -


Home | Main Index | Thread Index | Old Index