From owner-freebsd-ports@FreeBSD.ORG Wed Apr 11 06:09:54 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 955761065673 for ; Wed, 11 Apr 2012 06:09:54 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from fallbackmx06.syd.optusnet.com.au (fallbackmx06.syd.optusnet.com.au [211.29.132.8]) by mx1.freebsd.org (Postfix) with ESMTP id 215218FC0C for ; Wed, 11 Apr 2012 06:09:53 +0000 (UTC) Received: from mail30.syd.optusnet.com.au (mail30.syd.optusnet.com.au [211.29.133.193]) by fallbackmx06.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id q3B69k46009572 for ; Wed, 11 Apr 2012 16:09:46 +1000 Received: from server.vk2pj.dyndns.org (c220-239-251-180.belrs5.nsw.optusnet.com.au [220.239.251.180]) by mail30.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id q3B69cq0027167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Apr 2012 16:09:39 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.5/8.14.4) with ESMTP id q3B69cjj063962; Wed, 11 Apr 2012 16:09:38 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.5/8.14.5/Submit) id q3B69bbK063961; Wed, 11 Apr 2012 16:09:37 +1000 (EST) (envelope-from peter) Date: Wed, 11 Apr 2012 16:09:37 +1000 From: Peter Jeremy To: Stephen Montgomery-Smith Message-ID: <20120411060937.GA62949@server.vk2pj.dyndns.org> References: <4F839499.8050103@missouri.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: <4F839499.8050103@missouri.edu> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@freebsd.org Subject: Re: autodetecting 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: Wed, 11 Apr 2012 06:09:54 -0000 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2012-Apr-09 21:02:01 -0500, Stephen Montgomery-Smith wrote: >So suppose we are building port A. It turns out that the configure in=20 >port A autodetects whether package B is present or not. It will build=20 >either way. But if built with package B, it will not operate without it. =2E.. >What are the accepted ways of handling this? > >1. Don't worry about it. tinderbox builds will never build port A in=20 >the presence of package B. > >2. Have the Makefile of port A detect whether package B is installed,=20 >and if it is then add B as a dependency of A. > >3. Cripple the configure in port A so that it doesn't autodetect for=20 >package B. Preference order is 3, 2, 1. 1 is the least desirable because the resultant packages may include implicit dependencies without explicit dependencies. It can also cause subtle problems when port B is updated without updating port A. --=20 Peter Jeremy --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+FICEACgkQ/opHv/APuIfWGACfcS9edoYHBZ2ZprJUm8SN84/c WTYAn0wqN2bDsnb5fflqfLSRdImF9Tl5 =80f4 -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD--