Friday, August 26, 2005

cpio: MD5 sum mismatch on rpms created during build process under updated fedora-core3

This is the error message while running
$rpm -ihv *.rpm

error: unpacking of archive failed on file /opt/openoffice.org1.9.125/program/libgcc_s.so.1.1;430edcb0: cpio: MD5 sum mismatch

Error is for this package openoffice.org-core05-1.9.125-1.i586.rpm.

After complete installation of the packages when we run $openoffice.org-1.9 command it give error of shared objects(*.so.) not found for "javaldx" and "soffice.bin".

If you've been seeing these under "Updated fedora" it's because /lib/libgcc_s.so.1
is normally prelinked and this isn't working well with the normal rpm architecture for fedora, as a hackaround comment out the
%__prelink_undo_cmd /usr/sbin/prelink prelink -y library in /etc/rpm/macros.prelink

See
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=149465 for details.

Alternatively when it makes its way into a release, configure oosource --with-system-stdlibs will avoid the problem.

Well if one don't want to do the above steps, he can run the same rpm command as:
$rpm --nomd5 -ihv *.rpm
The above command will not check for md5sum and all the packages will be installed and i think it will work fine also. As in my case OO is running without any fail.

But the correct way is to configure it with the above said option.

I think this problem is with the updated version of fedora-core3 but i am not sure about it right now.

Friday, August 19, 2005

How to migrate OO1.1.3 Gsi to OO 2.0 Gsi , scripts and steps to follow.

The steps and scripts used for the migration of OO1.1.3 Gsi to OO2.0 Gsi is available at..
http://ncb.ernet.in/~vijaykumar

Useful tips from Dwayne Bailey

Subject: How to creating non-English language Po translation files

I've just been documenting how to create non-English source language
files for Mozilla and have added some info for OOo here:
http://translate.sourceforge.net/wiki/toolkit/oo2po

Use this:

oo2po -P --source-language=fr GSI_fr.sdf french-pot

This will create .pot files with French (fr) as the source language
using GSI_fr.sdf and putting all the files into french-pot

To create a set of PO files with your translation and a different source
languages try this. Here we are creating a source language of Afrikaans
(af) and a target language of Xhosa (xh)

Take your existing SDF files

cat GSI_af.sdf GSI_xh.sdf > GSI_af-xh.sdf
oo2po --source-language=af -lxh GSI_af-xh.sdf po

Using your combined SDF file this will create PO files with Afrikaans in
the msgid and Xhosa in the msgstr and output them into a directory
called po.

To create a new SDF file after translating do the following:

po2oo -lxh -t en-US.sdf af-xh new.sdf
This uses an en-US.sdf file as a template and read po files from af-xh
placing them in new.sdf

NOTE: I checked the produced GSI file using gsicheck. But if you are
going to rely on this method I suggest a more thorough check, maybe do
it in small stages.

Tuesday, August 02, 2005

Configuring and building gnopernicus..

While building gnopernicus on fedora core3 i came through some of the errors of configuring it.
To the source directory of gnopernicus i typed the command $./configure, after some time it gave error that some of the packages like gconf2, gnome-mag, at , at-spi etc is not found.
To find the packages required for building, configure script is using $pkg-config. pkg-config command looks for the package information in /usr/lib/pkgconfig/package-name.pc files.
So if there is any package not found error with configure script, then we can look for it's corresponding .pc file in /usr/lib/pkgconfig directory. And if it's not there install the devel part of the package which is not found.
I installed gnome-mag-devel(for gnome-mag-1.0.pc) , at-spi-devel(for cspi-1.0.pc) and configured, it worked.
Next i did $make, completed without any error.
then $make install, which gave one error of not finding the path to put some xml and .schema files.
so i explicitly made the path as /usr/local/etc/gconf/ by creating a directory gconf in /usr/local/etc.
And finally $make install installed gnopernicus.
Which is working fine.