Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Oct 2007 15:24:28 -0500
From:      "Jeremy Messenger" <mezz7@cox.net>
To:        "Dmitry Marakasov" <amdmi3@amdmi3.ru>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Idea: static builds
Message-ID:  <op.tzslm2n29aq2h7@mezz.mezzweb.com>
In-Reply-To: <20071004190304.GA9491@hades.panopticon>
References:  <20071004190304.GA9491@hades.panopticon>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 04 Oct 2007 14:03:04 -0500, Dmitry Marakasov <amdmi3@amdmi3.ru>  
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


-- 
mezz7@cox.net  -  mezz@FreeBSD.org
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org
http://wiki.freebsd.org/multimedia  -  multimedia@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.tzslm2n29aq2h7>