From owner-freebsd-ports@FreeBSD.ORG Thu Jun 19 14:25:43 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 551C2DA8 for ; Thu, 19 Jun 2014 14:25:43 +0000 (UTC) Received: from mail.moehre.org (mail.moehre.org [195.96.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id 15C772644 for ; Thu, 19 Jun 2014 14:25:42 +0000 (UTC) Received: from mail.moehre.org (unknown [195.96.35.7]) by mail.moehre.org (Postfix) with ESMTP id 1161D8B143B; Thu, 19 Jun 2014 16:25:42 +0200 (CEST) X-Spam-Flag: NO X-Spam-Score: -100.967 X-Spam-Level: X-Spam-Status: No, score=-100.967 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, AWL=0.033, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mail.moehre.org ([195.96.35.7]) by mail.moehre.org (mail.moehre.org [195.96.35.7]) (amavisd-new, port 10024) with ESMTP id VaQmRGXYeyb7; Thu, 19 Jun 2014 16:25:40 +0200 (CEST) Received: from [192.168.100.30] (p54B0B2A7.dip0.t-ipconnect.de [84.176.178.167]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: coco@executive-computing.de) by mail.moehre.org (Postfix) with ESMTPSA id 238C08B141C; Thu, 19 Jun 2014 16:25:40 +0200 (CEST) Message-ID: <53A2F284.7060404@executive-computing.de> Date: Thu, 19 Jun 2014 16:24:04 +0200 From: Marco Steinbach User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> Subject: Re: USE_MYSQL / USE_PGSQL buildtime dependency differences References: <53A2DFDD.3050307@executive-computing.de> <53A2E951.2080803@quip.cz> In-Reply-To: <53A2E951.2080803@quip.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2014 14:25:43 -0000 Miroslav Lachman wrote on 19.06.2014 15:44: > Marco Steinbach wrote: >> Hi. >> >> Mk/bsd.database.mk seems to handle dependencies resulting from the use >> of USE_PGSQL and USE_MYSQL flags differently. >> >> USE_PGSQL pulls in PostgreSQL at buildtime, for both, the client and the >> server component. USE_MYSQL seems to only pull anything in at buildtime, >> if the flag is set to 'client'. >> >> Thus, with USE_MYSQL=server the build of my port breaks by not >> installing anything at buildtime, neither the server nor (more >> importantly) its client slaveport, while USE_MYSQL=client does not >> install the server. > > [...] > >> I've also tried renaming my MYSQL / PGSQL options to preclude possible >> collisions, but that didn't change behaviour. >> >> I'm trying to create a port of Icinga2 >> (https://www.icinga.org/icinga2/), FWIW. > > I think there is no need to install MySQL server on the same machine > with Icinga2 (or any other MySQL dependent port). It really needs client > library and then it can connect to any remote MySQL server. That's why > this is not supported by bsd.database.mk. Giving the user a choice for exactly this was my intention. Depend on a locally installed server, or have just the client installed. Whatever ones position on this is, the difference in behaviour of the USE_PGSQL and USE_MYSQL flags confused me. I've posted my current workaround for that on the list. MfG CoCo