From owner-freebsd-ports@FreeBSD.ORG Sat Mar 21 18:10:10 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 EF35457F for ; Sat, 21 Mar 2015 18:10:09 +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 7A85F634 for ; Sat, 21 Mar 2015 18:10:08 +0000 (UTC) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3l8VPW2bPtzZrj; Sat, 21 Mar 2015 19:10:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=mail; t=1426961405; x=1428775806; bh=UtXHZehNUAcYoHlrweZhSroh3CdniIVVsB+KaL5886A=; b= CPJ3BY99IDNzx6z7E/EUQCOF5gsVVqpj/yPWJnxzY00a1R0bCVwPiqCyrKeUNHys QLUzk7yWRkqkiomjfJ4ifZqYJByz3MsiiWBa0uRABD/c3qLq7eoXoRPihBmlx5tt BRr+0OLzxG1hUmTiqvihQYRQtJo5v6XTWdzbfVqtuZU= 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 U41Zn4czDdEu; Sat, 21 Mar 2015 19:10:05 +0100 (CET) Received: from marvin.madpilot.net (micro.madpilot.net [88.149.173.206]) by mail.madpilot.net (Postfix) with ESMTPSA; Sat, 21 Mar 2015 19:10:05 +0100 (CET) Message-ID: <550DB3FD.7070006@madpilot.net> Date: Sat, 21 Mar 2015 19:10: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> 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: Sat, 21 Mar 2015 18:10:10 -0000 On 03/21/15 17:55, Michael Grimm wrote: > >> On 21.03.2015, at 15:50, Guido Falsi wrote: >> On 03/21/15 14:50, Michelle Sullivan wrote: > > >>> Which means that if unsetting X11 on in the port and not globally ocaml >>> is built with X11 and unison without - which poudriere will fail on when >>> it tries to find the dependencies... which means my thoughts were >>> exactly the opposite ... poudriere scans the dependency tree on startup >>> which picks up the -nox11 package as a dependency then builds with x11 >>> when it builds ocaml... >> >> Exactly. >> >> There are four cases: >> >> one asks for both with or without X11, works fine, in both. >> >> one asks for ocaml without X11 and unison with X11, this is wrong and >> cannot obviously work. >> >> last case is asking for ocaml with X11 and unison without. This could >> work in theory, and will work on a live system, but will not work in >> poudriere at present, due to ocaml changing it's package name >> dynamically. I don't know how to make it work with the present ports system. >> >> This fourth case anyway makes little sense to me anyway, once you have >> pulled in the X11 dependency why not use it in all ports which can take >> advantage of it? > > > 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. You really should move to the new style OPTIONS_UNSET/OPTIONS_SET. You can find some documentation in /usr/ports/Mk/bsd.options.mk > > | MWN> pkg info | grep unison > | unison-nox11-2.48.3_1 User-level file synchronization tool (without x11 stuff) > > poudriere's build failed with: > > | MWN> cat /.../logs/ocaml-nox11-4.01.0_4.log > | ---Begin OPTIONS List--- > | ===> The following configuration options are available for ocaml-nox11-4.01.0_4: > | DOCS=on: Build and/or install documentation > | EXAMPLES=on: Build and/or install examples > | THREADS=on: Threading support > ----> | TK=on: LablTk library (requires X11 support) > | X11=off: X11 (graphics) support > | ===> Use 'make config' to modify these settings > | ---End OPTIONS List--- > [...] > | ---End make.conf--- > | ====>> Ignoring lang/ocaml: requires X11 support to build TK bindings > | build of lang/ocaml ended at Sat Mar 21 17:08:37 CET 2015 > > 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? Options activate per port do override WITH_/WITHOUT_ and OPTIONS_UNSET/OPTIONS_SET. -- Guido Falsi