From owner-freebsd-questions@FreeBSD.ORG Wed Sep 14 16:40:49 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C503A16A41F for ; Wed, 14 Sep 2005 16:40:49 +0000 (GMT) (envelope-from ohartman@mail.uni-mainz.de) Received: from mailgate2.zdv.Uni-Mainz.DE (mailgate2.zdv.Uni-Mainz.DE [134.93.178.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22AB643D45 for ; Wed, 14 Sep 2005 16:40:48 +0000 (GMT) (envelope-from ohartman@mail.uni-mainz.de) Received: from [134.93.180.218] (edda.Physik.Uni-Mainz.DE [134.93.180.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailgate2.zdv.Uni-Mainz.DE (Postfix) with ESMTP id 48366300024B for ; Wed, 14 Sep 2005 18:40:47 +0200 (CEST) Message-ID: <43285249.6090201@mail.uni-mainz.de> Date: Wed, 14 Sep 2005 18:39:37 +0200 From: "O. Hartmann" Organization: Institut =?ISO-8859-15?Q?f=FCr_Geophysik?= User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050908) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at uni-mainz.de Subject: port builds: selective compiler options for each port? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 16:40:49 -0000 Hello. I run into trouble on building some ports in FreeBSD 6.0. Those troubles are not the same on each portbuild, sometimes it is a compiler option, sometimes it is an option for the relocation of data directories and so on. For instance I tried building Open Office 1.1.5 without JAVA support. On my lab's box I use CPUTYPE=prescott and everything runs well and smoth but not OO due the fact it gets compiled via an older GCC and this compiler also gathers its options from /etc/make.conf as the system compiler does. For a simple and single portbuild changing /etc/make.conf or applying the appropriate make options seems not to be a high cost effort, but doing so via an automated portupgrade let me run into some trouble! The most 'popular' ports for those troubles are OO and MySQL. Since one of the prior port changes to MySQL, the variable for the database directory vanished and got hardwired to /var/db/database but on our server infrastructure we use another path for the databases. But MySQL is another type of weirdness and senseless changes. My question is: Is there a way to obtain each port's buildprocess its own environment? It seems that there is no standard and consistent concept of how flags should be named (WITH_OPTIMIZED_CFLAGS=yes on the other hand, BUILD_OPTIMIZED=yes on the other). Thank you, Oliver