svn commit: r479762 - head/science/cp2k

Jason E. Hale jhale at freebsd.org
Fri Sep 14 15:12:56 UTC 2018


On Fri, Sep 14, 2018 at 6:26 AM Mathieu Arnold <mat at freebsd.org> wrote:
>
> On Fri, Sep 14, 2018 at 07:58:05AM +0000, Yuri Victorovich wrote:
> > +.include <bsd.port.options.mk>
> > +
> > +.if ${PORT_OPTIONS:MOPENMP} || ${PORT_OPTIONS:MOPENMP_MPI}
> > +pre-configure:
> > +     @if [ ! -e ${LOCALBASE}/lib/libfftw3_omp.so ] ; then \
> > +       ${ECHO_MSG} "The OPENMP and OPENMP_MPI options require math/fftw3" ; \
> > +       ${ECHO_MSG} "to be built and installed with the OPENMP option ON" ; \
> > +       exit 1; \
> > +     fi
> > +.endif
>
> I keep wondering why you always try so hard to invent new ways of doing
> things.
>
> .if ${PORT_OPTIONS:MOPENMP} || ${PORT_OPTIONS:MOPENMP_MPI}
> . if !exists(${LOCALBASE}/lib/libfftw3_omp.so)
> BROKEN= The OPENMP and OPENMP_MPI options require math/fftw3 to be built and installed with the OPENMP option ON
> . endif
> .endif
>

Don't blame him, mat. The suggestion was mine. I actually got the idea
from antoine@: https://svnweb.freebsd.org/ports?view=revision&revision=406268.
If BROKEN is set, unless the user knows or wants to pass the -T flag
to poudriere, it will not attempt the build in bulk mode even if the
user has the correct options for fftw3 set. Your condition is always
true in a clean environment.

- Jason


More information about the svn-ports-head mailing list