[Libreoffice] Build break when generating RDBs

Stephan Bergmann stephan.bergmann.secondary at googlemail.com
Thu Sep 1 23:22:31 PDT 2011


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


More information about the LibreOffice mailing list