From owner-freebsd-ports@FreeBSD.ORG Thu Oct 28 19:16:40 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A15341065673 for ; Thu, 28 Oct 2010 19:16:40 +0000 (UTC) (envelope-from aragon@phat.za.net) Received: from mail.geek.sh (decoder.geek.sh [196.36.198.81]) by mx1.freebsd.org (Postfix) with ESMTP id 3E5C08FC14 for ; Thu, 28 Oct 2010 19:16:39 +0000 (UTC) Received: from igor.geek.sh (196-209-90-124.dynamic.isadsl.co.za [196.209.90.124]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.geek.sh (Postfix) with ESMTPSA id 60D013B2D7 for ; Thu, 28 Oct 2010 21:16:38 +0200 (SAST) Message-ID: <4CC9CC15.9040407@phat.za.net> Date: Thu, 28 Oct 2010 21:16:37 +0200 From: Aragon Gouveia User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.11) Gecko/20100725 Thunderbird/3.0.6 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: pkg_add -r could be better? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2010 19:16:40 -0000 Hi, I've recently started building custom packages and had hoped to consume them locally with 'pkg_add -r'. In short, pkg_add breaks with many of the custom built packages with messages such as: pkg_add: could not find package sqlite3-3.7.2 ! pkg_add: pkg_add of dependency 'nss-3.12.6_3' failed! Upon investigation it looks like 'pkg_add -r' is highly dependent on @pkgdep entries being listed in an order such that dependencies without recursive dependencies come first and satisfy all recursive dependencies lower down. No attempt is made to recursively fetch dependencies remotely so failure to list dependencies in the correct order results in pkg_add failing to find the package file to install. For some reason my custom builds have @pkgdep entries added in an incorrect order. They're all built using 'make package' in a standard ports infrastructure so I can't imagine why the difference, but let me not digress. Anyone else aware of and annoyed with this behaviour of 'pkg_add -r'? Surely it should recursively fetch dependencies instead of relying on the ports infrastructure specially crafting packages? I believe this answers another issue that was annoying me: http://lists.freebsd.org/pipermail/freebsd-ports/2010-October/064047.html Are patches to fix pkg_add welcome, or is there a bigger picture I'm missing? Thanks, Aragon