[Libreoffice] translate_toolkit build failure on MacOS

Petr Mladek pmladek at suse.cz
Mon Mar 28 03:29:06 PDT 2011


Norbert Thiebaud píše v Ne 27. 03. 2011 v 11:24 -0500:
> 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'

Hmm, the value "10.4" is set in the build profile, see 
http://opengrok.libreoffice.org/xref/bootstrap/set_soenv.in#1720
I am not sure how it is supposed to work. I guess that the problem is
that your system python is configured to "10.6".

> 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)'

Sounds good to me. I do not know how to fix it better.


Best Regards,
Petr



More information about the LibreOffice mailing list