couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Cottlehuber (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COUCHDB-1181) Provide a lean Windows makefile target by removing erlang cruft
Date Wed, 01 Jun 2011 13:03:47 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dave Cottlehuber updated COUCHDB-1181:
--------------------------------------

    Attachment: slim_couch.cmd

Sample batch file to slim down couch windows build.

Currently supports erlang R14B01 only.

- install apache couchdb 
- cd to same location
- run batch file

> Provide a lean Windows makefile target by removing erlang cruft
> ---------------------------------------------------------------
>
>                 Key: COUCHDB-1181
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1181
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Build System
>         Environment: Windows
>            Reporter: Dave Cottlehuber
>            Priority: Trivial
>              Labels: windows
>             Fix For: 1.1.1
>
>         Attachments: slim_couch.cmd
>
>
> We should be able to get the build to 1/3 of current size. Thanks to @wohali via IRC,
and @daleharvey with android build https://github.com/daleharvey/build-android-couch/blob/master/build.final#L31
> The three major contributors to the 50+MB download & 120+MB windows installed 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* ibrowse-* inets-*
kernel-* mochiweb-* public_key-* reltool-* runtime_tools-* sasl-* ssl-* stdlib-* xmerl-*)
do @echo %i && move "%i" ..\stash\
> for /d %i in (*) do @move "%i" ..\trash\
> for /d %i in  (..\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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message