graphics/mesa-dri missing mako.template

Jan Beich jbeich at
Tue May 16 21:19:12 UTC 2017

bob prohaska <fbsd at> writes:

> When trying to compile graphics/mesa-dri on RPI2 make reports in part:
> /bin/mkdir -p ir3
> PYTHONPATH=../../../../src/compiler/nir python2.7  ./ir3/ > ir3/ir3_nir_trig.c || (rm -f ir3/ir3_nir_trig.c; false)
> Traceback (most recent call last):
>   File "./ir3/", line 24, in <module>
>     import nir_algebraic
>   File "/usr/ports/graphics/mesa-dri/work/mesa-17.0.4/src/compiler/nir/", line 32, in <module>
>     import mako.template
> ImportError: No module named mako.template
> gmake[6]: *** [Makefile:1395: ir3/ir3_nir_trig.c] Error 1
> gmake[6]: Leaving directory '/usr/ports/graphics/mesa-dri/work/mesa-17.0.4/src/gallium/drivers/freedreno'

17.0.3 built fine[1], so this is a regression. aarch64 is also affected[2].
Try installing textproc/py-mako or comment out arm-specific drivers
in graphics/mesa-dri/Makefile.

I'm a bit puzzled why it tries to regen ir3/ir3_nir_trig.c when 17.0.4
distfile already contains a copy. Can you check if 17.1.0 (bug 219247)
is also affected?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 584 bytes
Desc: not available
URL: <>

More information about the freebsd-ports mailing list