From owner-freebsd-ports@FreeBSD.ORG Wed Sep 13 15:33:56 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD4F116A412 for ; Wed, 13 Sep 2006 15:33:56 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEA0B43D45 for ; Wed, 13 Sep 2006 15:33:55 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so1847783nfc for ; Wed, 13 Sep 2006 08:33:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PYpYY4mhNO/YKitnSej6EGrj4FlOsYZTeoa3PPBAV9BiXfevea7kmJ8KaVtdBr34Kg3DZVwHl4IWSr+Ebv1ygudx7LAdaEXmCK2KjGbUtalq8okC/oNuVlrLeLTjRmOqSMGo40t78iEQhIFNwMZ+TvFyO3aUHKN2xlxTauRyFP0= Received: by 10.67.117.2 with SMTP id u2mr3059136ugm; Wed, 13 Sep 2006 08:33:54 -0700 (PDT) Received: by 10.67.86.8 with HTTP; Wed, 13 Sep 2006 08:33:54 -0700 (PDT) Message-ID: <790a9fff0609130833w5c6f8502jf2cedf0c17a80389@mail.gmail.com> Date: Wed, 13 Sep 2006 10:33:54 -0500 From: "Scot Hetzel" To: "Thomas T. Veldhouse" In-Reply-To: <45081B59.80309@veldy.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45081B59.80309@veldy.net> Cc: timur@gnu.org, freebsd-ports@freebsd.org Subject: Re: Samba and FAM 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, 13 Sep 2006 15:33:56 -0000 On 9/13/06, Thomas T. Veldhouse wrote: > I considered uninstalling FAM and rebuilding Samba, but, as it turns > out, Courier-IMAP requires FAM as a dependency even though it is not a > declared dependency in the Makefile. > > Even though FAM was not selected when building Samba, I am getting the > above errors. Is there a way to avoid these filling my log files? > Uninstall Courier-IMAP, and FAM. Then rebuild Samba. Finally reinstall Courier-IMAP. The problem is that the net/samba3/Makefile automatically detects fam/gam on the system, and sets WITH_FAM_SUPPORT, even if FAM_SUPPORT is off in OPTIONS. .if exists(${LOCALBASE}/libexec/gam_server) WANT_FAM_SYSTEM= gamin WITH_FAM_SUPPORT= on . undef WITHOUT_FAM_SUPPORT .elif exists(${LOCALBASE}/bin/fam) WANT_FAM_SYSTEM= fam WITH_FAM_SUPPORT= on . undef WITHOUT_FAM_SUPPORT .endif .if defined(WITH_FAM_SUPPORT) || defined(WANT_FAM_SYSTEM) USE_FAM= yes .endif It should only detect which FAM_SYSTEM is installed, and should only test if WITH_FAM_SUPPORT is set. Also, if the samba configure script has an option to disable fam support, it should be added as: .if defined(WITH_FAM_SUPPORT) USE_FAM= yes .else CONFIGURE_ARGS+= --disable-fam .endif This would then prevent the configure script from detecting and using fam/gam on a system that has it installed. NOTE: The detection of the FAM_SYSTEM, may not be needed. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.