Repository priority setting does not work with package dependencies

Arto Pekkanen isoa at kapsi.fi
Fri Jan 30 17:28:23 UTC 2015


Let's say I created an overlay repository for the official FreeBSD.org repository (I got a hackish shell tool for that, but I am gonna make it awesome in due time). This repository contains only those packages of which I want to install versions with custom port build options. Some of the packages (in this example: shells/bash) have all of their depencies in the repository. Some packages, however, have no dependencies in the repository, because they are supposedly provided by the official repository during the time of package installation.

I have configured this repository in a .conf with priority of 255, which makes it a higher priority repository than the official repository.

There is a problem with though: when I do `pkg install bash` (shells/bash has all of it's deps in the overlay repo) pkg does install bash from the overlay repository BUT it installs all the dependencies from the official FreeBSD repository. I logically assumed that the required package AND all of it's dependencies would be installed from a repository with higher priority.

I tried going around this by doing `pkg install -r overlay bash`. It works for shells/bash, since my overlay repo has all the dependencies. But does not work for certain other packages, which do not have all the dependencies in the repository. With -r packages with not all deps in the same repo get installed with missing deps, and I have to do `pkg check -d` separately. And again, pkg check install dependencies from official repository, not from the repository with highest priority.

Is this a bug or a feature? If this is a bug, can it be fixed so that pkg considers repository priority when calculating dependencies?

If this is a feature, then the only way I can have an overlay repository is to include all the dependencies in it (installed from pkgs if necessary), and disable the official repository alltogether.

-- 
Arto Pekkanen, säätäjä
ksym at IRCnet

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20150130/c3788f78/attachment.sig>


More information about the freebsd-pkg mailing list