From owner-freebsd-questions@FreeBSD.ORG Fri May 25 01:29:04 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCDB91065674 for ; Fri, 25 May 2012 01:29:04 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id 762C88FC0A for ; Fri, 25 May 2012 01:29:04 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id q4P1SwxV018582 for ; Thu, 24 May 2012 19:28:58 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <4FBEE05A.6000909@dreamchaser.org> Date: Thu, 24 May 2012 19:28:58 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120524 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4FBBF32D.9070505@dreamchaser.org> <20120522234510.a406941d.goksin.akdeniz@gmail.com> <4FBD7BA0.7070502@dreamchaser.org> In-Reply-To: <4FBD7BA0.7070502@dreamchaser.org> Content-Type: text/plain; charset=ISO-8859-9; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Thu, 24 May 2012 19:28:58 -0600 (MDT) Subject: automating menu options in ports (and other ports build questions) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2012 01:29:04 -0000 1. When building a port, the system uses sysinstall to set options for the build. How does one configure those options so make can be run unattended? I didn't see anything in the ports documentation, but maybe I'm blind. In particular, how does one configure a dependent port for the options you want whenever it is built as part of a higher-level build? 2. Do port builds deal with concurrency? i.e. can I safely do a make install in two different ports subtrees simultaneously? I attempted this with gnome2-lite and firefox and ended up with the firefox build barfing on tests in shared-mime-info -- one of the tests failed because a directory already existed. I had to deinstall and reinstall shared-mime-info and then restart the firefox make. The two builds actually ended up in the less likely scenario of trying to build the same dependency at roughly the same time. 3. Do the package builds use the defaults set in the ports tree? If not, how are the options for packages chosen, and how does one determine what the package options are? 4. Is there a discussion anywhere of whether or not one should turn on various optimizations? If these aren't turned on by default, but are safe, why aren't they the default? Is this a cross-platform build issue, and the default is to build for cross-platform? 5. It looks like the options which show up using sysinstall are from the OPTIONS variable in the Makefile. Is there any convention for where to find out more about the option other than the often useless text hint provided in the menu? e.g. gvfs has an option called FUSE Enable fuse which doesn't say which of the several software systems called FUSE this refers to e.g. OPENGL Use OpenGL graphics doesn't say much about why you would want to do that, what the opengl option actually does, ramifications, whether it will help only if your graphics card / driver supports it, etc. Or is this a documentation project in the offing? Thanks, Gary