From owner-freebsd-ports@FreeBSD.ORG Thu Mar 10 09:51:21 2011 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 844861065700 for ; Thu, 10 Mar 2011 09:51:21 +0000 (UTC) (envelope-from hans.ottevanger@gmail.com) Received: from mail-px0-f172.google.com (mail-px0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 57F418FC0A for ; Thu, 10 Mar 2011 09:51:21 +0000 (UTC) Received: by pxi6 with SMTP id 6so1104628pxi.17 for ; Thu, 10 Mar 2011 01:51:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=v11+38q3DkBWPAC5QjaVMr1FL+VZM0BsDCtgL/Cvp8Q=; b=CVJ1CA/p97pqVlDqAF5HuyKCi5L2gUuYoezN06XBBGxuHPIzuIcbqSAuLrm5jWo0t3 x7lYsObrec0/e9Ekxp+HAlob3FFKud6iJmBDrOTAEvkyU9KoNXZMZlAprqiel/1XL4+o +CjieiqK5HZXtcitM6+3LyXpVecrNqfMOPN/Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=p27nglBVX+FqZ+hHKvL3/eWrvhApCW0JcZoISJx7uOljruqrsxMSV21aLSjkNn0/x/ fS4rDjBTPlj/X6BPm/pnFk1qFOzCkqIzN9qLN/gSMELYLgKTUY8R/aJWCdHmKWVLbX38 oak0mYia7bdkjrMLHLaUFmgUnjtniWAHQlmVw= MIME-Version: 1.0 Received: by 10.142.149.20 with SMTP id w20mr6281811wfd.137.1299749320739; Thu, 10 Mar 2011 01:28:40 -0800 (PST) Received: by 10.143.43.5 with HTTP; Thu, 10 Mar 2011 01:28:40 -0800 (PST) In-Reply-To: <4D76426A.2010006@secnap.com> References: <4D76426A.2010006@secnap.com> Date: Thu, 10 Mar 2011 10:28:40 +0100 Message-ID: From: Hans Ottevanger To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Superfluous dependencies 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, 10 Mar 2011 09:51:21 -0000 On Tue, Mar 8, 2011 at 3:51 PM, Michael Scheidell wrote: > > > On 3/8/11 4:42 AM, Hans Ottevanger wrote: >> >> One of them that I already hunted down is bison-2.4.3,1 that gets >> dragged in via gobject-introspection-0.9.12_1 when installing >> xorg-7,5.1 (even as a package). This is caused by bison specified as a >> dependency of type "both" in the port Makefile of >> gobject-introspection where it should be specified as "build". I don't >> think that Bison is used on run-time here and most likely not even on >> build- time. > > appears one of our 'short cuts' causes this. =A0and I found it on a port = I > took over maint of. > > happens all the time if you do a 'RUN_DEPENDS +=3D BUILD_DEPENDS' > > pulls in all kind of cruft. > Indeed I see this 'shortcut' being used all over the place. But in the cases I have looked into the last few days, i.e. the xorg-7.5.1 and kde-lite-3.5.10_8 ports, the problem is just a trivial, but slightly different. It appears that in many occasions USE_PYTHON and USE_PERL are specified in situations where I think USE_PYTHON_BUILD and USE_PERL_BUILD, respectively, would suffice. By making a few trivial changes i can make xorg-7.5.1 fully independent on run-time of Python, Perl and Bison. The same can be done for kde-lite-3.5.10_8 when I also disable the Perl support in net-snmp, which is a dependency of kdeutils-3.5.10_8. If anybody is interested I could consolidate my results and post a few patc= hes. Kind regards, Hans Ottevanger ]...]