pkgsrc-Users archive

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

Re: monogdb 4 fails to build

Ronald Georgia <> writes:

> All,
> I am running 9.0_BETA NetBSD 9.0_BETA (GENERIC) #0: Tue Jul 30
> 16:52:10 UTC 2019. I tried to make install from
> /usr/pkgsrc/databases/mongodb but i get the following error:

There are multiple problems with databases/mongodb:

  - the LICENSE - but that's up to you

  - it doesn't build on NetBSD 8, last I tried

  - it is not ported to python 3.7 and you neeed 2.7

  - it uses scons (a matter of opinion :-)

With scons, one has to use scons with the same python version, because
the build script is a program.  And, you can't install py27-scons and
py37-scons because they both install /usr/pkg/bin/scons.  So one is
faced wtih the choice of:

  Do some renaming with scons to install scons2.7 and scons3.7, and add
  some USE_TOOLS scons to find the right one, and adjust all the
  packages, or

  grumble quietly about scons, and pkg_delete the other version and

The first option is clearly the right path (assuming the alternate
strategy of filing bugs with upstream that read "foo uses scons" and
holding one's breath doesn't work :-), but the second one is, at least
in the moment, far less work, and for now, the path I have chosen.

> pkg_add: Package `py27-scons-3.0.5' conflicts with
> `py37-scons-[0-9]*', and `py37-scons-3.0.5' is installed.
> pkg_add: Installed package `py37-scons-3.0.5' conflicts with
> `py27-scons-[0-9]*' when trying to install `py27-scons-3.0.5'.
> pkg_add: 1 package addition failed
> *** Error code 1

So "pkg_delete py37-scons" and continue....

Home | Main Index | Thread Index | Old Index