[Libreoffice] Help on fixing set_soenv so that it uses configure --build options

Pablo Duboue pablo.duboue at gmail.com
Mon Apr 18 17:57:56 PDT 2011


(I'm following Kohei's suggestion on bug #36335)

Here's the text of the bug [1]:

The configure script of LibO takes the usual arguments for specifying host
environment, but the actual values are set through perl's $^O and config.guess
(which in turns uses uname -m and others).

This behavior seems wrong, as it is ignoring the configure options altogether.
Moreover, it makes it impossible to build in a 32-bit chroot running in a
x86-64 machine.

I can contribute a fix (I would imagine it will have to be in set_soenv) if
anybody can comment on what would it be the appropriate steps to follow (in
accordance to LibO's multi-platform building system).


Now, I don't quite follow why you LibO has set_soenv plus configure,
most likely set_soenv is a legacy script? The whole point of configure
is to do such type of guesses.

I'd hack this just by searching in config.log and finding what the
host / build / target architectures are and set it directly in
set_soenv, but then I most probably will break things in non-Linux
environments in subtle and annoying ways.

Please advice.



[1] https://bugs.freedesktop.org/show_bug.cgi?id=36335

More information about the LibreOffice mailing list