CouchDB
  1. CouchDB
  2. COUCHDB-1181

Provide a lean Windows makefile target by removing erlang cruft

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
    • Environment:

      Windows

    • Skill Level:
      Regular Contributors Level (Easy to Medium)

      Description

      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

      1. slim_couch.cmd
        3 kB
        Dave Cottlehuber

        Activity

        Dave Cottlehuber created issue -
        Dave Cottlehuber made changes -
        Field Original Value New Value
        Attachment slim_couch.cmd [ 12481083 ]
        Robert Newson made changes -
        Fix Version/s 1.2 [ 12315198 ]
        Fix Version/s 1.1.1 [ 12316395 ]
        Jan Lehnardt made changes -
        Fix Version/s 1.3 [ 12318350 ]
        Fix Version/s 1.2 [ 12315198 ]
        Dave Cottlehuber made changes -
        Assignee Dave Cottlehuber [ dch ]
        Dave Cottlehuber made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Not A Problem [ 8 ]
        Dave Cottlehuber made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Dave Cottlehuber made changes -
        Resolution Not A Problem [ 8 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Jan Lehnardt made changes -
        Fix Version/s 1.3 [ 12318350 ]
        Dave Cottlehuber made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]

          People

          • Assignee:
            Dave Cottlehuber
            Reporter:
            Dave Cottlehuber
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development