pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: `libjpeg-turbo-3.1.0nb1' conflicts with `jpeg-[0-9]*'
On Tue, Jun 10, 2025 at 08:19:33PM +0530, Mayuresh wrote:
> On Tue, Jun 10, 2025 at 03:59:46PM +0200, Thomas Klausner wrote:
> > Preferably, use pkgin which should handle the update automatically.
>
> I believe, I can't have an arbitrary mix of both systems - pkgin and
> pkgsrc, particularly if I can't keep all package options same as pkgin.
> Hence would preferably not venture into that.
The key is not to mix packages from different repositories, such as
packages you build yourself (i.e. what you call "pkgsrc") and packages
someone else built (i.e. what you call "pkgin"), e.g. the NetBSD repos.
You *can* use pkgin with your own packages. You just need to configure
pkgin to point at the same location as you have (hopefully and likely)
pointed pkg_add as well by setting PKG_PATH in /etc/pkg_install.conf
or in your environment. The relevant configuration for pkgin lives in
${PREFIX}/etc/pkgin/repositories.conf and it could point at your build
results, e.g. file:///usr/pkgsrc/packages/All could work.
I include pkgin in the set of packages that I build, so that I can have
its default configuration point at my packages. This can be done by
setting PKGIN_REPOSITORY_URL in /etc/mk.conf to the desired value.
Note that you will need to generate pkg_summary.bz2 (or .gz) yourself.
This is the make rule I use:
# cd /usr/pkgsrc/packages/All
# make -f ~/lib/sandbox-exit.makefile
pkg_summary.xz: *.tgz
@echo Updating '`'"${.TARGET}'"
@ls -f1 "${.CURDIR}" \
| sed -n '/\.tgz$$/ { s,^.*/\([^/]*\)$$,\1,; s,-[0-9].*$$,,; p; }' \
| sort -u \
| while read pkg; do pkg_admin -d "${.CURDIR}" lsbest "$${pkg}"; done \
| xargs pkg_info -X \
| xz -c > ".${.TARGET}.new"
@mv ".${.TARGET}.new" "${.TARGET}"
I use sandboxctl to build packages inside a sandbox, and I've set it up
so that the above make invocation happens when I exit the sandbox.
Kind regards,
+ Kimmo
Home |
Main Index |
Thread Index |
Old Index