From owner-freebsd-ports@FreeBSD.ORG Sun Oct 7 02:23:44 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 2DD9B16A41A for ; Sun, 7 Oct 2007 02:23:44 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.freebsd.org (Postfix) with ESMTP id AF7CC13C48E for ; Sun, 7 Oct 2007 02:23:43 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.8/8.13.1) with ESMTP id l972Nh31068159; Sat, 6 Oct 2007 19:23:44 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l972NhIT068158; Sat, 6 Oct 2007 19:23:43 -0700 (PDT) (envelope-from kline) Date: Sat, 6 Oct 2007 19:23:43 -0700 From: Gary Kline To: Garrett Cooper Message-ID: <20071007022343.GC67456@thought.org> References: <20071004190304.GA9491@hades.panopticon> <470806B0.50906@u.washington.edu> <20071006225627.GB66159@thought.org> <470833D0.3000903@u.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <470833D0.3000903@u.washington.edu> User-Agent: Mutt/1.4.2.2i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 21 of service to the Unix community. Cc: ports@freebsd.org, Gary Kline 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: Sun, 07 Oct 2007 02:23:44 -0000 On Sat, Oct 06, 2007 at 06:18:08PM -0700, Garrett Cooper wrote: > Gary Kline wrote: > >On Sat, Oct 06, 2007 at 03:05:36PM -0700, Garrett Cooper wrote: > > > >>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? > >> > > > > > > > > I would allow the shells to be built statically, and perhaps > > most or all of /bin. Hm. And a few other necessary utilities. > > Things-X aren't essentials. But vi is. ed still gives me > > nightmares![*] > > > > Wasn't the reason for NON-static builds mostly to > > save-disc-space??? Whatever, having ports that build > > statically-- things that won't bomb if libfoo.so.3 is > > missing-- having this seeems like the best idea in years! > > How much hacking to the Makefles is it? > > > > gary > > > > > >>-Garrett > >> > > > >[*] for the humor-impaired: Joke. > > > > None whatsoever really. I think it just involves making a few > changes to /usr/local/etc/pkgtools.conf, if you want to make the > modification just for yourself (I don't do that though, so I'm not sure. > Just OTOH rememberances). pkgtools.conf?:: Save me! I've onlytouched that to prevent things like OO.o from updating and stuff. I'm pretty sure it's flexible enough to do just "zsh".... And vi, of course. I'll wait on this. Would really appreciate others' feedback, tho. gary > -Garrett -- Gary Kline kline@thought.org www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org