[Libreoffice] Build break when generating RDBs

Stephan Bergmann stephan.bergmann.secondary at googlemail.com
Mon Sep 5 02:58:28 PDT 2011


On Sep 2, 2011, at 6:28 PM, Peter Foley wrote:
> On Fri, 2 Sep 2011, Stephan Bergmann wrote:
> 
>> On Sep 1, 2011, at 5:33 PM, Peter Foley wrote:
>>> On Thu, 1 Sep 2011, Eike Rathke wrote:
>>> 
>>>> Hi Peter,
>>>> 
>>>> On Tuesday, 2011-08-30 14:36:01 -0400, Peter Foley wrote:
>>>> 
>>>>> [ build ALL ] top level modules: i18npool
>>>>> [ build ALL ] loaded modules: i18npool
>>>>> [ build RDB ] i18npool_test_breakiterator
>>>>> awk: cmd. line:1: $R/^<\?xml version.*$R/ { next; } { gsub($R/vnd.sun.star.expand:\$OOO_BASE_DIR\$R/program$R/, "vnd.sun.star.expand:$OOO_BASE_DIR",$0); gsub($R/vnd.sun.star.expand:\$BRAND_BASE_DIR\$R/program$R/, "vnd.sun.star.expand:$BRAND_BASE_DIR",$0); print; }
>>>>> awk: cmd. line:1:    ^ syntax error
>>>>> awk: cmd. line:1: $R/^<\?xml version.*$R/ { next; } { gsub($R/vnd.sun.star.expand:\$OOO_BASE_DIR\$R/program$R/, "vnd.sun.star.expand:$OOO_BASE_DIR",$0); gsub($R/vnd.sun.star.expand:\$BRAND_BASE_DIR\$R/program$R/, "vnd.sun.star.expand:$BRAND_BASE_DIR",$0); print; }
>>>>> awk: cmd. line:1:      ^ backslash not last character on line
>>>>> make: *** [/libreoffice/workdir/unxlngx6.pro/RdbTarget/i18npool_test_breakiterator.rdb] Error 1
>>>>> 
>>>>> I'm getting the above build error which seems to be caused by $R being 
>>>>> added to the awk regex expression by gb_Helper_abbreviate_dirs.
>>>> 
>>>> Apparently you're the only one getting this error, so I wonder what may
>>>> be different on your system? I doubt this is a general
>>>> "gb_Helper_abbreviate_dirs always inserts $R before /" problem. Which
>>>> platform are you on? I presume winmingw, because that (and windows)
>>>> defines gb_Helper_abbreviate_dirs_native to something different than the
>>>> general gb_Helper_abbreviate_dirs:
>>> 
>>> I'm actually building libreoffice in a gentoo linux x64 chroot.
>>> I don't know if the chroot is causing this problem or not.
>>> awk is 4.0.0
>>> make is 3.82
>>> Let me know if you need any more info.
>> 
>> The path to the LibO sources within your chroot environment appears to be too short (they are probably right in the root there, right?).  Then, gb_Helper_abbreviate_dirs will replace each occurrence of "/" with "$R/" in the command line.  (gb_Helper_abbreviate_dirs is broken by design, but must of the time this goes unnoticed.)  Try moving the LibO sources further down in the directory hierarchy.
>> 
>> -Stephan
>> 
> 
> Moving the source tree one level down did indeed fix it. 
> Out of curiosity could you elaborate on why building libreoffice in 
> /libreoffice fails?

I would have thought that you built in /, not /libreoffice.  Anyway, what breaks is that if, say, $(REPODIR) is an empty string in gb_Helper_abbreviate_dirs (solenv/gbuild/Helper.mk), then all occurrences of / on the command line are replaced with $R/, even those occurrences that do not denote filepaths, like the occurrences of / in the awk argument '/^<\?xml…' in solenv/gbuild/RdbTarget.mk.

-Stephan
> 
> Thanks,
> 
> Peter



More information about the LibreOffice mailing list