From owner-freebsd-ports@FreeBSD.ORG Sun Mar 22 09:40:39 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E7AFB507 for ; Sun, 22 Mar 2015 09:40:39 +0000 (UTC) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C3368C7 for ; Sun, 22 Mar 2015 09:40:39 +0000 (UTC) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3l8v2y2vTXzZrj; Sun, 22 Mar 2015 10:40:26 +0100 (CET) Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id en6xfLFz3SLG; Sun, 22 Mar 2015 10:40:11 +0100 (CET) Received: from marvin.madpilot.net (micro.madpilot.net [88.149.173.206]) by mail.madpilot.net (Postfix) with ESMTPSA; Sun, 22 Mar 2015 10:40:06 +0100 (CET) Message-ID: <550E8DF5.1020708@FreeBSD.org> Date: Sun, 22 Mar 2015 10:40:05 +0100 From: Guido Falsi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Michael Grimm , freebsd-ports@freebsd.org Subject: Re: net/unison240 depends on lang/ocaml-nox11 References: <550D4CA0.8000606@sorbs.net> <550D61BF.3030403@FreeBSD.org> <550D636B.5020000@sorbs.net> <550D6D0F.7080401@FreeBSD.org> <550D7726.1060704@sorbs.net> <550D853C.7070303@FreeBSD.org> <550DB3FD.7070006@madpilot.net> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2015 09:40:40 -0000 On 03/21/15 21:53, Michael Grimm wrote: > On 21.03.2015, at 19:10, Guido Falsi wrote: >> On 03/21/15 17:55, Michael Grimm wrote: > >>> I recently (after last upgrade of poudriere-devel, although I do not know if that is the cause) ran into a comparable issue with unison without X11 : >>> >>> | MWN> cat /usr/local/etc/poudriere.d/stable10-make.conf >>> | WITHOUT_X11=yes >>> [...] >> >> I don't think old style WITH_/WITHOUT_ flags are supported anymore. >> Looking at the code you should in fact get a warning about this. > > Hmm, not that I am aware of. But I will have a closer look. But! Commenting that "WITHOUT_X11=yes" has been recognized by poudriere: the unison-nox11 port could be compiled successfully with default ocaml settings. > It is still working because there a re a few special cases which still need to be supported, but the general WITH_/WITHOUT aren't supported and the code making them work can be removed anytime. >>> That's weird, ocaml-nox11 defaults to "TK=on" which requires X11 support. Bug or feature? >> >> You sure you have no option directory with per port options enabling TK? > > Yes, I'm sure that I haven't had an option directory with per port options en/disabling TK set. > >> Options activate per port do override WITH_/WITHOUT_ and >> OPTIONS_UNSET/OPTIONS_SET. > > Only, *after* setting "OPTIONS_FILE_UNSET+=TK" in lang_ocaml/options, I was able to get unison-nox11 port compiled by poudriere successfully. *Before* I haven't had any lang_ocaml/options settings at all. And because the default setting of ocaml-nox11 is "OPTIONS_FILE_SET+=TK" -which requires X11 support (!)- poudriere fails compiling ocaml-nox11 port. (If I am not mistaken miserably.) > Yes, looking at the ocaml port Makefile, it requires those to be disabled separately, it will mark the port as IGNORE if conflicting options are requested. Please note that the options framework isn't smart enough to manage this kind of dependencies, when using options care is required by the user. Anyway if you have a better proposal you can file a PR with a patch against the ocaml port.(which I do not maintain, and know very little of) -- Guido Falsi