https://bugs.freedesktop.org/show_bug.cgi?id=64065

          Priority: medium
            Bug ID: 64065
          Assignee: [email protected]
           Summary: sw_python fails because it picks up python 2.7 as
                    PYTHON_FOR_BUILD
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: 4.1.0.0.alpha0+ Master
         Component: Writer
           Product: LibreOffice

I just tried to build current master in my packaging env. Whcih points PYTHON,
PYTHON_CFLAGS and PYTHON_LIBS to python3.3 and its libs as Debians default
python is (and never will be, I fear, I guess that will stay python3..) 2.7.

Now autoconf seems to be trying to be smart but of course isn't and does the
following:

checking for python... /usr/bin/python
checking for python version... (cached) 3.3

when checking for the PYTHON_FOR_BUILD which in turn means sw_python fails with
a syntax error here:

File 
"/home/rene/LibreOffice/master/core/unotest/source/python/org/libreoffice/unotest.py
print("starting soffice ... ", end="")

IIRC (and if I read http://docs.python.org/dev/howto/pyporting.html correctly)
this is easily fixable by

diff --git a/unotest/source/python/org/libreoffice/unotest.py
b/unotest/source/p
index 3ec016a..80bafbc 100644
--- a/unotest/source/python/org/libreoffice/unotest.py
+++ b/unotest/source/python/org/libreoffice/unotest.py
@@ -13,6 +13,8 @@ import uuid
 import argparse
 import os

+from __future__ import print_function
+
 try:
     import pyuno
     import uno

but it seems to be the check is broken... (need to workaround autoconf by
forcing a non-cache value?)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to