From owner-freebsd-ports@FreeBSD.ORG Tue Apr 10 20:24:25 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 70E8E106566B for ; Tue, 10 Apr 2012 20:24:25 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id EC5398FC18 for ; Tue, 10 Apr 2012 20:24:24 +0000 (UTC) Received: by wgbds12 with SMTP id ds12so189910wgb.31 for ; Tue, 10 Apr 2012 13:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Jq+ICyFK5IPIYyFJWUmpQyQLzjbhNlCPHNLgfdyjtYE=; b=V5uJSC2rO6wS8NYiiS65aUZSS/M4LwJPk4B5oMg3ALjCF0GOrTPhfy3k1JFurjJY7+ 8TCue4c2Jtb1EgN3NZ3TXSVnEdUDKw0HzxMLmsGqxRPfQj4xa3e3hBUEJT9kzMGajGs+ znjS4hjBTHNWuhkNmFi5c/9swGxxVTbUjrmiI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=Jq+ICyFK5IPIYyFJWUmpQyQLzjbhNlCPHNLgfdyjtYE=; b=JUZyF6tW/7OfnMKp7Jqj+qCBqAm6e3M68wPMYPd4EoM00HsLaWJUdibEI4kzQcHpiT /9BW4yxsx49VGQAZnoqUEF/POiuC41nSOtLxifxyPdE2bMNzkgk4TAifWwjMtu0cApO+ iIGWIFC+Qo42dq1046EerYYhT8HYH+JSYytHrMAmP0e+cRS3vls6DJeF7zlrfy4z7sOq 8oAxJ+/imi6X/hxjrX+Xlv5UmFD+IhJAVLMKdDb++eYDRXWO3xlWV8i6u0Fkm8TEpN9q KMuNAxu8yts992imyST+SoyZI93ReKISB2ziLFlK/a2xZe8Us9ewFJmKNPTB2V81BIO3 fLyg== Received: by 10.180.91.165 with SMTP id cf5mr10136359wib.2.1334089463918; Tue, 10 Apr 2012 13:24:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.63.4 with HTTP; Tue, 10 Apr 2012 13:23:53 -0700 (PDT) In-Reply-To: <4F839499.8050103@missouri.edu> References: <4F839499.8050103@missouri.edu> From: Eitan Adler Date: Tue, 10 Apr 2012 16:23:53 -0400 Message-ID: To: Stephen Montgomery-Smith Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQnEKPYa2RMAUx7yFiMBsuJulf/6Xl48+7DbYnVmt8lLtmmYBobwJOnfTonSqdu52z6A4tCK 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: Tue, 10 Apr 2012 20:24:25 -0000 On 9 April 2012 22:02, Stephen Montgomery-Smith wrot= e: > So suppose we are building port A. =C2=A0It turns out that the configure = in port > A autodetects whether package B is present or not. =C2=A0It will build ei= ther > way. =C2=A0But if built with package B, it will not operate without it. > > So suppose I build port A on machine X which has package B installed. The= n I > create a package from A, and copy the package to machine Y. Machine Y doe= s > not have package B installed, and so when package A is installed, it does= n't > work on machine Y. > > What are the accepted ways of handling this? > > 1. =C2=A0Don't worry about it. =C2=A0tinderbox builds will never build po= rt A in the > presence of package B. > > 2. =C2=A0Have the Makefile of port A detect whether package B is installe= d, and > if it is then add B as a dependency of A. > > 3. =C2=A0Cripple the configure in port A so that it doesn't autodetect fo= r > package B. =C2=A0(Sometimes this can be done using a suitable CONFIGURE_A= RGS, but > not in my particular situation.) The current answer for "automagical dependencies" is to fix (not cripple) the configure option to not autodetect for package B. Any port which currently has automatic detection is buggy and should be fixed. You can use the OPTIONS framework to enable or disable the option. --=20 Eitan Adler