Bug 103353 - Ruby install / upgrade uses LOTs of memory
Summary: Ruby install / upgrade uses LOTs of memory
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Stanislav Sedov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-18 14:20 UTC by VANHULLEBUS Yvan
Modified: 2006-10-01 20:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description VANHULLEBUS Yvan 2006-09-18 14:20:20 UTC
When installing / upgrading Ruby18 port, one process will use LOTS of memory (about 300MB !),
which is very problematic on small computers.

When looking at the output, it looks like this memory usage is "just" for generating
documentation ("Generating RDoc documentation").

As ruby1.8 is a dependancy for some admin's tools (portupgrade, etc...), it would be at least
interesting to be able to disable the generation of that documentation, for users
which just want some tools to work !

And I am also very interested in an explanation on such a memory usage !!

Fix: 

Looks like configure is called without --enable-install-doc, but there are lots of stuff
done related to doc in post-install.

It would be great to have a WITHOUT_RDOC, or something like that....



Yvan.
How-To-Repeat: 
Install / update ruby 1.8 port, and have a look at it's memory usage.

On a computer with less than 256MB RAM, also look at SWAP usage....
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-09-18 22:23:56 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Stanislav Sedov freebsd_committer freebsd_triage 2006-09-20 15:56:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stas

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2006-10-01 20:11:11 UTC
stas        2006-10-01 19:10:48 UTC

  FreeBSD ports repository

  Modified files:
    lang/ruby18          Makefile pkg-plist 
    lang/ruby18/files    patch-mkmf.rb 
  Added files:
    lang/ruby18/files    obsoleted 
  Log:
  - Prepare port to make ruby libraries PREFIX-clean (also requires bsd.ruby.mk
    modifications)
  - Add OPTIONS
  - Provide automatic pkg-plist generator to simplify updates
  - Guarantee permissions safety when installing docs and examples (eliminate
    ${CP} -r *)
  - Create handy docs and examples structure (install examples for external
    libraries in separate directories)
  - Remove unused KNOB (NORUBYLIB)
  - Add knob to disable RDOC generation [1]
  - Add knob to disable IPv6 support
  - Move list of obsoleted packages to the separate file (files/obsoleted)
  - Add additional .keep_me like files to allow shared directories to not
    be deleted by dependent ports
  - Minor cleanups and modifications
  - Bump-up portrevision
  
  All ruby ports were tested in tinderbox with these modifications.
  
  Requested by:   VANHULLEBUS Yvan <vanhu_bsd@zeninc.net> [1]
  PR:             ports/103353 [1], ports/102648, ports/102663, ports/102685, ports/102646
  Approved by:    sem (mentor)
  
  Revision  Changes        Path
  1.115     +203 -130      ports/lang/ruby18/Makefile
  1.1       +26 -0         ports/lang/ruby18/files/obsoleted (new)
  1.6       +17 -3         ports/lang/ruby18/files/patch-mkmf.rb
  1.56      +10886 -10888  ports/lang/ruby18/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Stanislav Sedov freebsd_committer freebsd_triage 2006-10-01 20:46:42 UTC
State Changed
From-To: feedback->closed

The functionality requested was committed in 1.115