Bug 93196 - Mesa requires python2 mako module to build, but does not check that it exists
Summary: Mesa requires python2 mako module to build, but does not check that it exists
Status: RESOLVED WORKSFORME
Alias: None
Product: Mesa
Classification: Unclassified
Component: glsl-compiler (show other bugs)
Version: git
Hardware: All All
: medium normal
Assignee: Ian Romanick
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-01 18:39 UTC by Alex Perez
Modified: 2017-02-07 08:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Alex Perez 2015-12-01 18:39:45 UTC
I have a fresh install of Ubuntu 14.10, and python2 is installed along python3, I believe by default. There is a python3 mako package installed, but not one for python2, and since Mesa explicitly uses python2, this fails, until I manually install the python-mako package. No check during configure occurs.

Here is the resulting failure:

make[2]: Entering directory '/usr/src/mesa-git/src/glsl'
  GEN      nir/nir_opcodes.c
Traceback (most recent call last):
  File "./nir/nir_opcodes_c.py", line 28, in <module>
    from mako.template import Template
ImportError: No module named mako.template
Makefile:2259: recipe for target 'nir/nir_opcodes.c' failed
Comment 1 Samuel Iglesias Gonsálvez 2017-02-07 08:42:59 UTC
Under my Debian Testing box and current master (21efe2528cd88cb09ba9f69222f69a8ee47611c9), it detects than python2's mako is installed:

[...]
checking if module mako in python is installed... No module named mako
no
configure: error: Python mako module v0.8.0 or higher not found

No matter if I have python3's mako installed or not.

Please verify that it works for you with current master. If it doesn't, just re-open the bug.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.