From owner-freebsd-ports@FreeBSD.ORG Sat Oct 6 22:06:08 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 133E116A417 for ; Sat, 6 Oct 2007 22:06:08 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hannah.tgi.net (hannah.tgi.net [64.34.34.36]) by mx1.freebsd.org (Postfix) with ESMTP id D03B513C480 for ; Sat, 6 Oct 2007 22:06:07 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: (qmail 10904 invoked from network); 6 Oct 2007 15:11:45 -0700 Received: from cs213-15.fsmodem.washington.edu (HELO ?127.0.0.1?) (140.142.173.16) by tgi.net with SMTP; 6 Oct 2007 15:11:45 -0700 Message-ID: <470806B0.50906@u.washington.edu> Date: Sat, 06 Oct 2007 15:05:36 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: ports@freebsd.org References: <20071004190304.GA9491@hades.panopticon> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Idea: static builds X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2007 22:06:08 -0000 Jeremy Messenger wrote: > On Thu, 04 Oct 2007 14:03:04 -0500, Dmitry Marakasov > wrote: > >> Hi! >> >> I just have an idea that may be useful: static port builds. This can >> help produce packages without any depends, which may be useful >> sometimes. >> >> Implementation seem pretty straightfoward to me: >> - Introduce STATIC_BUILD variable that changes usual build behavior >> - Process LIB_DEPENDS in a different way: check .a instead of .so.*, and >> fail if .a is missing, and .so is present (i.e. needed static lib is not >> available at all), don't add library ports to package depends >> - Add -static to CFLAGS/CXXFLAGS >> >> Any comments? I will try to experiment with this for now. > > How do you deal with the security? It will be required for all ports > that depend on a port to be rebuild, so bump the PORTREVISION will be > need. But what about for non-static that don't need to be bump? A > solution for that might be need too. > > I have no object with static build as long as it is flexible and > optional (disable/enable). > > Cheers, > Mezz > > Static, built upon static, built upon static would be a bad thing to watch out for too I'd think... Am I wrong? -Garrett