From owner-freebsd-pkg@FreeBSD.ORG Thu Dec 18 20:16:55 2014 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 C1F8930C for ; Thu, 18 Dec 2014 20:16:55 +0000 (UTC) Received: from smtp-4-out.integrity.hu (smtp-4-out.integrity.hu [212.52.165.214]) by mx1.freebsd.org (Postfix) with ESMTP id 7BC6F1B36 for ; Thu, 18 Dec 2014 20:16:54 +0000 (UTC) Received: from webmail.integrity.hu (mail-fe-1.integrity.hu [10.1.64.120]) by mail-smtp.integrity.hu (Postfix) with ESMTPA id 2E6AF40B10 for ; Thu, 18 Dec 2014 20:37:25 +0100 (CET) Received: from 19eSYRM+BMU7LQgD2/tKcD3uToZzHcs1TsHhLKXMEWdr6BM36MU3Bg== (8/BtzFwe68n0DkBBDSZb9fPbowVkQrfY) by webmail.integrity.hu with HTTP (HTTP/1.1 POST); Thu, 18 Dec 2014 20:37:25 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 18 Dec 2014 20:37:25 +0100 From: gabor@zahemszky.hu To: Subject: pkg override =?UTF-8?Q?HOW=3F?= Message-ID: <9553450c6ecd0a68d00e0805b37d2827@zahemszky.hu> X-Sender: gabor@zahemszky.hu User-Agent: Roundcube Webmail/0.8.4 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: Thu, 18 Dec 2014 20:16:55 -0000 (I tried freebsd-questions, but got nothing, so 2nd try) Hi! In man pkg-repository, there is a description, on how to use more repositories, and how to override the default precedence. The critical steps are: 1) install the package from the preferred repo with: pkg install -r PreferredRepoName PACKAGEname 2) and after installation, make an annotation on that package with: pkg annotate -A PACKAGEname repository PreferredRepoName There are at least two problems with it: a) The annotation halted with an error message: "Cannot add annotation" Because the package HAS the correct "repository" annotation - and every package has repository annotations - the packages, which was installed from remote has the "FreeBSD" tag, and the local-sourced package has the local-repo-name.) b) The bigger problem is that it doesn't work. It means: I have a local package (mail/faces), which has a default GTK-1.2 and GLIB-1.2 dependency. I don't need them (but faces), so I made a local package. Made the above steps, but the pkg update / upgrade commands updated it from the main FreeBSD repository. So what do I need to do, to make the package from my local repo is the preferred package? Thanks, Zahemszky, Gábor < Gabor at Zahemszky dot HU >