Hi Benoit,

Benoit Chesneau wrote on Sun, Dec 26, 2010 at 05:58:26AM +0100:

> I'm trying to import openbsd ports cvs in git

The whole ports tree into one single git repo?
I don't say that's impossible, but i doubt it will be fun to work with.
As opposed to CVS, git doesn't deal that well with very large repos.

> so I did a cvsync locally but when i'm trying to do :
> 
> git cvsimport -d /home/cvs -C ports ports I get this error:
> 
> malloc for hash_table failed

Apparently, git attempts to use more memory than
your current setrlimit(2) settings allow.

> git cvsimport: fatal: cvsps reported error
> 
> What could be the problem? Any idea how to solve this ?

In ksh(1), use the ulimit builtin, in csh(1) the limit builtin.

In case that doesn't help, raise limits in login.conf(5).

In case that doesn't help, buy more RAM (but first check the
current state of big memory support on your platform).

Or create separate repos for each directory below /usr/ports.

Or don't use git.  For ports, it doesn't make much sense.
Git has its strengths when you works with many people on
small and medium-sized projects, heavily decentralized,
having lots of conflicts, maintaining lots of parallel branches,
doing lots of complicated merging, and often shuffling stuff
around including renaming files and directories.

When working with one person or one branch, it's almost
always rather a distraction than any kind of help.

Yours,
  Ingo

Reply via email to