From owner-freebsd-ports@FreeBSD.ORG Mon Oct 11 00:11:20 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 CE87A1065670 for ; Mon, 11 Oct 2010 00:11:20 +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 6E74F8FC08 for ; Mon, 11 Oct 2010 00:11:20 +0000 (UTC) Received: from igor.geek.sh (196-209-149-12.dynamic.isadsl.co.za [196.209.149.12]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.geek.sh (Postfix) with ESMTPSA id 12B5D3982E for ; Mon, 11 Oct 2010 01:54:58 +0200 (SAST) Message-ID: <4CB25251.6070903@phat.za.net> Date: Mon, 11 Oct 2010 01:54:57 +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: extraneous package depends? 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: Mon, 11 Oct 2010 00:11:20 -0000 Hi, I do my own package builds using "make package" and for a while I've been noticing packages having odd dependencies attached to them. Taking one for example, devel/gamin, here's what I get: > $ pkg_info -r gamin-0.1.10_4.tbz > Information for gamin-0.1.10_4.tbz: > > Depends on: > Dependency: python26-2.6.6 > Dependency: perl-5.10.1_2 > Dependency: pkg-config-0.25_1 > Dependency: pcre-8.10 > Dependency: libiconv-1.13.1_1 > Dependency: gettext-0.18.1.1 > Dependency: glib-2.24.2 Taking a closer look at the contents of this package reveals no dependence on python, perl, or pkg-config though. In desperation to rid my packages of perl and python dependence I hacked a bit in Mk/bsd.port.mk, removing line 5509: > [ -z "$$packagelist" ] || ${AWK} -F '( |:)' 'BEGIN { pkgname="broken_contents" } /@pkgdep / { pkgname=$$2 } /@comment DEPORIGIN:/ { printf "%s:%s\n", pkgname, $$3; pkgname="broken_contents" }' $$packagelist; Which results in: > $ pkg_info -r gamin-0.1.10_4.tbz > Information for gamin-0.1.10_4.tbz: > > Depends on: > Dependency: pkg-config-0.25_1 > Dependency: gettext-0.18.1.1 > Dependency: glib-2.24.2 Which also corresponds with "make run-depends-list" and devel/gamin's Makefile. I'm guessing pkg-config is getting added by bsd.gnome.mk. So this boils down to two questions: 1. What is the correct fix for the above? 2. Is it necessary to have packages depend on pkg-config, a build tool, when they won't be building anything? (should I ask on freebsd-gnome@?) Thanks, Aragon