pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Build scmgit-base without pthreads

On Sun, Apr 29, 2012 at 11:48:09PM +0100, Stephen Nelson-Smith wrote:
> Hello,
> I'm seeing exactly the issue described in this thread on the Git
> mailing list.:
> My system is Solaris 9, with pkgsrc-bootstrapped gcc3.4.
> Upon a git clone I see:
> error: cannot create thread: Unknown error
> fatal: fetch-pack: unable to fork off sideband demultiplexer
> Segmentation Fault (core dumped)
> The fix/workaround seems to be to build Git without pthreads.  I
> appended NO_PTHREADS=YesPlease to MAKE_FLAGS in scmgit-base Makefile,
> and rebuilt it, and it worked.
> Questions:
> 1) Is  this the best approach?  Should there be a Makefile patch?  It
> feels kinda dirty to have to hack the Makefile

Can you come up with an appropriate
.if ${OPSYS} == "SunOS" && whatever

fragment for the pkgsrc Makefile, or do I misunderstand the solution?

Home | Main Index | Thread Index | Old Index