Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B31A36A64 for ; Wed, 1 Jun 2011 13:09:07 +0000 (UTC) Received: (qmail 304 invoked by uid 500); 1 Jun 2011 13:09:07 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 261 invoked by uid 500); 1 Jun 2011 13:09:07 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 253 invoked by uid 99); 1 Jun 2011 13:09:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 13:09:07 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 13:09:02 +0000 Received: by bwj24 with SMTP id 24so44519bwj.11 for ; Wed, 01 Jun 2011 06:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=FrLP91Ij+zxGJQOyvngiZCp6Gwh2qbB+tAfzd3BCHE4=; b=VHmeDlIFe+5ZjeIAhH3Lqp7tlFz1W/jcqI6WXGPLarOH5vSCz7H2WlxWTw1sjRXbAZ EhP5GJehlMPknuVqQSdHv7Aqls5ESqWwWyAjbULhPzCd9dBKRsnFL/8zptJM2+FdC56q GFicsC/eNeBNoJ6c7ajecwB9HhweSm5TwXxZc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=s4Ihh8M+KEONtdLwWCtTOxde5X9sZNxaH6DlN/jDo9UKeS25UPeMR+tjl55wExZiVK 8QEgo45UzGtnlunnamHPnImBb5haRz0Ko4caJJ4NywxYgymBNMDfJAtK8bQFmgxbLEGn e1YSAf2n2DKwc4xXXa7dwedeYZsm9kXZwS2jk= MIME-Version: 1.0 Received: by 10.204.128.198 with SMTP id l6mr51428bks.19.1306933721232; Wed, 01 Jun 2011 06:08:41 -0700 (PDT) Received: by 10.204.85.31 with HTTP; Wed, 1 Jun 2011 06:08:41 -0700 (PDT) In-Reply-To: References: <1404956580.58274.1306897308137.JavaMail.tomcat@hel.zones.apache.org> Date: Wed, 1 Jun 2011 15:08:41 +0200 Message-ID: Subject: Re: [jira] [Created] (COUCHDB-1181) Provide a lean Windows makefile target by removing erlang cruft From: Benoit Chesneau To: dev@couchdb.apache.org Cc: ira@apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Jun 1, 2011 at 6:13 AM, Benoit Chesneau wrote= : > On Wed, Jun 1, 2011 at 5:01 AM, Dave Cottlehuber (JIRA) = wrote: >> Provide a lean Windows makefile target by removing erlang cruft >> --------------------------------------------------------------- >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Key: COUCHDB-1181 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 URL: https://issues.apache.org/jira/brow= se/COUCHDB-1181 >> =A0 =A0 =A0 =A0 =A0 =A0 Project: CouchDB >> =A0 =A0 =A0 =A0 =A0Issue Type: Improvement >> =A0 =A0 =A0 =A0 =A0Components: Build System >> =A0 =A0 =A0 =A0 Environment: Windows >> =A0 =A0 =A0 =A0 =A0 =A0Reporter: Dave Cottlehuber >> =A0 =A0 =A0 =A0 =A0 =A0Priority: Trivial >> =A0 =A0 =A0 =A0 =A0 =A0 Fix For: 1.1.1 >> >> >> We should be able to get the build to 1/3 of current size. Thanks to @wo= hali via IRC, and @daleharvey with android build https://github.com/dalehar= vey/build-android-couch/blob/master/build.final#L31 >> >> The three major contributors to the 50+MB download & 120+MB windows inst= alled footprint are: >> >> 1. including all of OTP when a small portion is required to run CouchDB >> 2. including all obj, src, include, examples components of required OTP = libraries >> 3. unneeded vc redist runtimes due to different build toolchains. >> >> Manual steps follow; I will work on extending build system later. >> >> 1. remove unneeded OTP libraries/apps >> - remove all but following from $COUCH_TOP/lib >> couch-* >> crypto-* >> debugger-* >> erlang-oauth* >> erts-* >> etap* >> ibrowse-* >> inets-* >> kernel-* >> mochiweb-* >> public_key-* >> reltool-* >> runtime_tools-* >> sasl-* >> ssl-* >> stdlib-* >> xmerl-* >> >> from %COUCH% do: >> >> cd lib >> mkdir ..\stash ..\trash >> for /d %i in (couch-* crypto-* debugger-* erlang-oauth* erts-* etap* ibr= owse-* inets-* kernel-* mochiweb-* public_key-* reltool-* runtime_tools-* s= asl-* ssl-* stdlib-* xmerl-*) do @echo %i && move "%i" ..\stash\ >> for /d %i in (*) do @move "%i" ..\trash\ >> for /d %i in =A0(..\stash\*) do @move "%i" >> :: if you are brave rd /s/q ..\stash ..\trash >> >> 2. from %COUCH% run this: >> cd erts* && rd /s/q include lib src >> >> -- > That something that could be handled with reltool : > > http://www.erlang.org/doc/apps/reltool/index.html > > Have a look here: > > https://github.com/refuge/refuge/blob/master/rel/reltool.config > > Which is a way to build release using rebar. > > - beno=EEt >