You are not logged in.

#1 2006-01-12 15:37:37

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Creating langpack for OpenOffice.org

So I wan to make a danish langpack for OOo which I found here. But after I have installed it, it complains That I have no permission for /opt/openoffice/program.

My PKGBUILD looks like this:

 pkgname=openoffice-da
pkgver=2.0.1
pkgrel=2
pkgdesc="OpenOffice danish language files"
url="http://www.openoffice.org"
makedepends=('rpmextract')
depends=('x-server' 'openoffice-base')
source=(ftp://rpmfind.net/linux/fedora/core/updates/4/i386/openoffice.org-langpack-da_DK-${pkgver}.1-4.1.i386.rpm)
md5sums=('a7ad3bac25f3ae6a56e2c1d7a6bf3169')
build() {
cd $startdir/src/
# extract rpms
for i in *.rpm
do rpmextract.sh $i
done

# install openoffice language files
cd $startdir/src/usr/lib
mkdir -p $startdir/pkg/opt

mv openoffice.org2.0 $startdir/pkg/opt/openoffice
chown root -R $startdir/pkg/opt/openoffice
chgrp root -R $startdir/pkg/opt/openoffice
}

What have I done wrong?


Arch - It's something refreshing

Offline

#2 2006-01-12 23:06:21

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Creating langpack for OpenOffice.org

Could you post the exact error message?

Offline

#3 2006-01-12 23:36:13

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: Creating langpack for OpenOffice.org

This occure when I try to install:

[root@matrix openoffice-da]# pacman -A openoffice-da-2.0.1-2.pkg.tar.gz
loading package data... done.
checking for file conflicts... 
error: the following file conflicts were found:
  openoffice-da: /opt/openoffice/share/dict/ooo/hyph_da_DK.dic: exists in filesystem


errors occurred, no packages were upgraded.

This problem is solved with pacman -Sf or removing hyph_da_DK.dic.

But if I manually change the permission to the directory I get an "Corrupt installation".


Arch - It's something refreshing

Offline

#4 2006-01-13 06:25:27

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Creating langpack for OpenOffice.org

/opt/openoffice/share/dict/ooo/hyph_da_DK.dic is part of openoffice-base. Add

rm $startdir/pkg/opt/openoffice/share/dict/ooo/hyph_da_DK.dic

to the PKGBUILD to fix the file conflict.  Also add

chmod -R u+w $startdir/pkg/opt/openoffice

to the PKGBUILD. With that, it should build and install fine. It does here.

If you still get the "Corrupt installation" error, post what are you trying to do. What command line gives you the error?

Offline

#5 2006-01-13 18:19:32

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: Creating langpack for OpenOffice.org

I still have no permission to the directory "/opt/openoffice/program".

Before installing my packages:

whargoul:~$ ls -l /opt/openoffice
totalt 260
drwxr-xr-x   3 root root   4096 2006-01-13 19:11 help/
-r--r--r--   1 root root    607 2005-12-14 23:49 LICENSE
-r--r--r--   1 root root   1045 2005-12-14 23:49 LICENSE.html
drwxr-xr-x   2 root root   4096 2006-01-13 19:11 licenses/
drwxr-xr-x  16 root root   4096 2006-01-13 19:11 presets/
drwxr-xr-x  11 root root  20480 2006-01-13 19:11 program/
-r--r--r--   1 root root  11013 2005-12-14 23:49 README
-r--r--r--   1 root root  10325 2005-12-14 23:49 README.html
drwxr-xr-x   2 root root   4096 2006-01-13 19:11 readmes/
drwxr-xr-x  20 root root   4096 2006-01-13 19:11 share/
-r--r--r--   1 root root 185698 2005-12-14 23:49 THIRDPARTYLICENSEREADME.html

And after installing my packages:

whargoul:~$ ls -l /opt/openoffice
totalt 260
drwxr-xr-x   4 root root   4096 2006-01-13 19:13 help/
-r--r--r--   1 root root    607 2005-12-14 23:49 LICENSE
-r--r--r--   1 root root   1045 2005-12-14 23:49 LICENSE.html
drwxr-xr-x   2 root root   4096 2006-01-13 19:11 licenses/
drwxr-xr-x  16 root root   4096 2006-01-13 19:11 presets/
drwx------  11 root root  20480 2006-01-13 19:13 program/
-r--r--r--   1 root root  11013 2005-12-14 23:49 README
-r--r--r--   1 root root  10325 2005-12-14 23:49 README.html
drwxr-xr-x   2 root root   4096 2006-01-13 19:11 readmes/
drwxr-xr-x  20 root root   4096 2006-01-13 19:13 share/
-r--r--r--   1 root root 185698 2005-12-14 23:49 THIRDPARTYLICENSEREADME.html

Notice the difference in the directory "program".

And this is how my PKGBUILD looks like now.

 pkgname=openoffice-da
pkgver=2.0.1
pkgrel=3
pkgdesc="OpenOffice danish language files"
url="http://www.openoffice.org"
makedepends=('rpmextract')
depends=('x-server' 'openoffice-base')
source=(ftp://rpmfind.net/linux/fedora/core/updates/4/i386/openoffice.org-langpack-da_DK-${pkgver}.1-4.1.i386.rpm)
md5sums=('a7ad3bac25f3ae6a56e2c1d7a6bf3169')
build() {
cd $startdir/src/
# extract rpms
for i in *.rpm
do rpmextract.sh $i
done

# install openoffice language files
cd $startdir/src/usr/lib
mkdir -p $startdir/pkg/opt

mv openoffice.org2.0 $startdir/pkg/opt/openoffice
rm $startdir/pkg/opt/openoffice/share/dict/ooo/hyph_da_DK.dic

# rights for /opt/openoffice
chmod -R u+wr $startdir/pkg/opt/openoffice/program
}

Arch - It's something refreshing

Offline

#6 2006-01-13 20:02:20

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: Creating langpack for OpenOffice.org

Hmm, doesn't seems like it is necesarry, since one of my buddies have just made a packages.


Arch - It's something refreshing

Offline

Board footer

Powered by FluxBB