localize failure due to duplicate file

View: New views
2 Messages — Rating Filter:   Alert me  

localize failure due to duplicate file

by Chris Cheney-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

While trying to convert GSI file to po for use in Ubuntu translations
website I ran into an error. Running localize with -v doesn't give any
additional information. The libuno_sal.so is a symlink to
libuno_sal.so.3 and is in two places in the tree.

Any ideas on how to fix this?

Thanks,

Chris Cheney

--

./solver/310/unxlngx6.pro/lib/libuno_sal.so
./sal/unxlngx6.pro/lib/libuno_sal.so

--

exporting GSI file for language af
localize -e -l en-US,af -f /root/ooo/openoffice.org-3.1.0/debian/l10n/export/GSI_af.sdf
exporting GSI file for language ar
localize -e -l en-US,ar -f /root/ooo/openoffice.org-3.1.0/debian/l10n/export/GSI_ar.sdf
exporting GSI file for pot file generation
localize -e -l en-US -f /root/ooo/openoffice.org-3.1.0/debian/l10n/export/GSI_en-US.sdf
### Localize
### Searching sdf particles
.........................................................................................................................................................................................................................../root/ooo/openoffice.org-3.1.0/ooo-build/build/OOO310_m11/solver/310/unxlngx6.pro/lib/libuno_sal.so is encountered a second time at /usr/share/perl/5.10/File/Find.pm line 543.
/root/ooo/openoffice.org-3.1.0/ooo-build/build/OOO310_m11/solver/310/unxlngx6.pro/lib/libuno_sal.so is encountered a second time at /usr/share/perl/5.10/File/Find.pm line 543.
/root/ooo/openoffice.org-3.1.0/ooo-build/build/OOO310_m11/solver/310/unxlngx6.pro/lib/libuno_sal.so is encountered a second time at /usr/share/perl/5.10/File/Find.pm line 543.

---

sub Follow_SymLink($) {
    my ($AbsName) = @_;

    my ($NewName,$DEV, $INO);
    ($DEV, $INO)= lstat $AbsName;

    while (-l _) {
        if ($SLnkSeen{$DEV, $INO}++) {
            if ($follow_skip < 2) {
                die "$AbsName is encountered a second time";

---

_______________________________________________
Dev mailing list
Dev@...
http://lists.go-oo.org/listinfo.cgi/dev-go-oo.org

Re: localize failure due to duplicate file

by Petr Mladek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 26 May 2009, Chris Cheney wrote:
> While trying to convert GSI file to po for use in Ubuntu translations
> website I ran into an error. Running localize with -v doesn't give any
> additional information. The libuno_sal.so is a symlink to
> libuno_sal.so.3 and is in two places in the tree.
>
> Any ideas on how to fix this?

I have been able to reproduce it here. The attached patch helped.
It will be enough if you modify the delivered
solver/310/unxlngx6.pro/bin/localize.pl


--
Best Regards,

Petr Mladek
software developer
---------------------------------------------------------------------  
SUSE LINUX, s. r. o.                        e-mail: pmladek@...
Lihovarská 1060/12                          tel: +420 284 028 952
190 00 Prague 9                             fax: +420 284 028 951
Czech Republic                              http://www.suse.cz/

[attachment removed]
_______________________________________________
Dev mailing list
Dev@...
http://lists.go-oo.org/listinfo.cgi/dev-go-oo.org