tech-pkg archive

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

Re: [HEADS UP] pkgsrc default database directory changed



On Dec 13,  8:08, Thomas Klausner wrote:
} On Sat, Dec 12, 2020 at 01:08:06AM -0800, John Nemeth wrote:
} > On Dec 12, 14:02, Takahiro Kambe wrote:
} > } In message <202012100310.0BA3AqTN014383%server.cornerstoneservice.ca@localhost>
} > } 	on Wed, 9 Dec 2020 19:10:52 -0800,
} > } 	John Nemeth <jnemeth%cue.bc.ca@localhost> wrote:
} > } >      I tried following the current instructions as given on my -current box.
} > } > At the fifth step (make USE_CWRAPPERS=no install), I got:
} > } > 
} > } > -----
} > } > ...
} > } > ERROR: The default package database directory has changed. Please run: mv /var/db/pkg /usr/pkg/pkgdb
} > } > *** Error code 1
} > } > 
} > } > Stop.
} > } > make: stopped in /usr/pkgsrc/pkgtools/pkg_install
} > } > -----
} > } > 
} > } > The above is why I originally relocated the mv instructions.
} > } I met the same situation and a little trick.
} > } 
} > } # cd /usr/pkgsrc/pkgtools
} > } # make clean
} > } # mkdir /usr/pkg/pkgdb
} > } # make USE_CWRAPPERS=no install
} > } # rmdir /usr/pkg/pkgdb
} > 
} >      Ah, fooling the check by creating an empty directory.  However,
} > are confirming that the instructions as given to do mv last don't
} > work.
} > 
} >      My next problem is my pbulk systems aren't functioning:
} > 
} > pbulk-scan: Duplicate package: gsettings-desktop-schemas-3.38.0
} > pbulk-scan: Duplicate package: gsettings-desktop-schemas-3.38.0
} > Resolving...
} > Scanning...
} > .......... 10/10
} > Resolving...
} > Scanning...
} > . 1/1
} > Resolving...
} > Building...
} > Cyclic dependency for package:
} > cwrappers-20180325
} > pkg_install-20201206
} > cwrappers-20180325
} > 
} > This is even though I followed the pbulk instructions on the wiki.
} 
} I'm pretty sure that pkg_* is not up-to-date inside your sandbox.
} Please check again.

     Okay, figured it out.  The step to copy pkg_* from /usr/pkg/sbin
to /usr/sbin was stated to be necessary only if /usr/sbin is first
in $PATH so I hadn't done that.  I was looking at pbulk.conf and
noticed that it said that pkg_* had to be outside ${PREFIX}.  That
was the "ah ha!" Since /usr/sbin is null mounted into the sandbox,
doing the copy fixed pbulk.  Maybe this point should be emphasized
that it is need for pbulk.

}-- End of excerpt from Thomas Klausner


Home | Main Index | Thread Index | Old Index