[Open Office] ooo-build and /bin/sh -> /bin/dash

Matthias Klose doko at ubuntu.com
Thu Sep 28 08:48:18 EDT 2006


**************************************************
ERROR: ERROR: Could not register all components!
in function: create_services_rdb
**************************************************

**************************************************
ERROR: Saved logfile:
/home/doko/204/openoffice.org-2.0.4~rc2/ooo-build/build/cu
rrent/instsetoo_native/util/OpenOffice//logging/en-US/log_OOD680__en-US.log
**************************************************

and the log file:

register component 'vnd.openoffice.pymodule:mailmerge' in registry
'/home/doko/2
04/openoffice.org-2.0.4~rc2/ooo-build/build/current/instsetoo_native/util/OpenOf
fice//services.rdb/en-US_inprogress_1/services.rdb' failed!
error (RuntimeException): python-loader:exceptions.ImportError: No
module named pythonloader, traceback follows
no traceback available


the culprit is in some perl build scripts, leading to the obscure failure:

sub suck_setup($)
{
    my $file = shift;
    if (-f $file) {
        print "Reading setup from $file\n";
        open ($Vars, ". $file ; set|") || die "Can't find $file: $!";
        while (<$Vars>) {
            /([^=]*)=(.*)/ || next;
            $setup_vars{$1} = $2;
        }
        close ($Vars);
        return 1;
    }
    return 0;
}

apparently dash does quotes all the values of variables, even if quoting
is unnecessary. OOo relies on that, for example when constructing
PYTHONPATH :-/ Fixing that in the script:

        open ($Vars, "bash -c '. $file ; set'|") || die "Can't find
$file: $!";

Apparently perl always executes shell scripts using /bin/sh and doesn't
use the SHELL environment variable at all.

Checked in the patch below; Ubuntu doesn't seem to be the only
distribution using dash/ash as the system shell, so I'm wondering why it
doesn't break on other systems.

  Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ooo-bash.diff
Type: text/x-patch
Size: 3414 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/openoffice/attachments/20060928/7b6caffb/attachment.bin 


More information about the Openoffice mailing list