From owner-freebsd-pkg@FreeBSD.ORG Fri Jan 30 17:28:23 2015 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2B92422A for ; Fri, 30 Jan 2015 17:28:23 +0000 (UTC) Received: from mail.kapsi.fi (mx1.kapsi.fi [IPv6:2001:1bc8:1004::1:25]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC67BCB5 for ; Fri, 30 Jan 2015 17:28:22 +0000 (UTC) Received: from 91-158-78-126.elisa-laajakaista.fi ([91.158.78.126] helo=[192.168.255.112]) by mail.kapsi.fi with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1YHFMh-0002R8-EP for freebsd-pkg@freebsd.org; Fri, 30 Jan 2015 19:28:19 +0200 Message-ID: <54CBBF2E.8030204@kapsi.fi> Date: Fri, 30 Jan 2015 19:28:14 +0200 From: Arto Pekkanen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: freebsd-pkg@freebsd.org Subject: Repository priority setting does not work with package dependencies Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lQlD2J4apwWECDoqOv3gABpHTCfAwDAJT" X-SA-Exim-Connect-IP: 91.158.78.126 X-SA-Exim-Mail-From: isoa@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2015 17:28:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --lQlD2J4apwWECDoqOv3gABpHTCfAwDAJT Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Let's say I created an overlay repository for the official FreeBSD.org re= pository (I got a hackish shell tool for that, but I am gonna make it awe= some in due time). This repository contains only those packages of which = I want to install versions with custom port build options. Some of the pa= ckages (in this example: shells/bash) have all of their depencies in the = repository. Some packages, however, have no dependencies in the repositor= y, 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 officia= l FreeBSD repository. I logically assumed that the required package AND a= ll 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 work= s for shells/bash, since my overlay repo has all the dependencies. But do= es not work for certain other packages, which do not have all the depende= ncies in the repository. With -r packages with not all deps in the same r= epo get installed with missing deps, and I have to do `pkg check -d` sepa= rately. And again, pkg check install dependencies from official repositor= y, 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 necessar= y), and disable the official repository alltogether. --=20 Arto Pekkanen, s=C3=A4=C3=A4t=C3=A4j=C3=A4 ksym@IRCnet --lQlD2J4apwWECDoqOv3gABpHTCfAwDAJT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (MingW32) iF4EAREIAAYFAlTLvzEACgkQTBivhqtJa267ggD7BsjO7LabbD/du5Ks3Cq+STRJ Zwmz98HrkvST56pQ3+sBAMGmCWEv+l+nsBSAu+j3baWensVqYbtT7IRBJIpz935j =AsPr -----END PGP SIGNATURE----- --lQlD2J4apwWECDoqOv3gABpHTCfAwDAJT--