Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


translate_toolkit seems upset that we build for a 10.4 target despite
being on a 10.6 machine...


mkdir: ./unxmacxi.pro/misc/build/translate-toolkit-1.8.1/: File exists
Traceback (most recent call last):
  File "./setup.py", line 397, in <module>
    standardsetup("translate-toolkit", translateversion)
  File "./setup.py", line 360, in standardsetup
    dosetup(name, version, packages + custompackages, datafiles +
customdatafiles, translatescripts+ translatebashscripts, ext_modules)
  File "./setup.py", line 393, in dosetup
    distclass=TranslateDistribution
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py",
line 126, in setup
    dist.parse_config_files()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 367, in parse_config_files
    filenames = self.find_config_files()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 332, in find_config_files
    check_environ()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/util.py",
line 234, in check_environ
    os.environ['PLAT'] = get_platform()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/util.py",
line 97, in get_platform
    cfgvars = get_config_vars()
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/sysconfig.py",
line 525, in get_config_vars
    func()
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/sysconfig.py",
line 408, in _init_posix
    raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET
mismatch: now "10.4" but "10.6" during configure
dmake:  Error code 1, while making './unxmacxi.pro/misc/build/so_built_trt'

considering that it appears that this is a purely build-time module,
the following patch seems to allow it to get past it... but I'm not
sure if it is 'The Right Way(tm)'

diff --git a/translate_toolkit/makefile.mk b/translate_toolkit/makefile.mk
index 2e13581..7c6df62 100644
--- a/translate_toolkit/makefile.mk
+++ b/translate_toolkit/makefile.mk
@@ -58,7 +58,11 @@
PYTHONPATH:=$(PWD)$/$(BIN):$(SOLARLIBDIR):$(SOLARLIBDIR)$/python:$(SOLARLIBDIR)$
 .IF "$(SYSTEM_PYTHON)"!="YES"
 PY_CMD=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/python
 .ELSE                   # "$(SYSTEM_PYTHON)"!="YES"
+.IF "$(OS)"=="MACOSX"
+PY_CMD=$(AUGMENT_LIBRARY_PATH) && unset MACOSX_DEPLOYMENT_TARGET &&
$(WRAPCMD) $(PYTHON)
+.ELSE
 PY_CMD=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(PYTHON)
+.ENDIF
 .ENDIF                  # "$(SYSTEM_PYTHON)"!="YES"

 # --- Files --------------------------------------------------------

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.