Re: BUG #5430: initdb fails due to permissions of /usr/share/pgsql

From: Jamie Strachan <frostfreek(at)yahoo(dot)com>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org, Lacey Powers <lacey(at)commandprompt(dot)com>
Subject: Re: BUG #5430: initdb fails due to permissions of /usr/share/pgsql
Date: 2010-04-21 13:19:34
Message-ID: 519650.84244.qm@web37905.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello,
I do appreciate help on this issue!

It seems to me that the directories /usr/share/pgsql/tsearch_data timezone and timezone_data
- are not explicitly contained within in the RPM
- are not configured by %defattr
(defattr is -,root,root)

I did a quick search to see what the default behaviour is supposed to be when a directory is not explicitly configured, but came up empty so far.

Sure enough, I have duplicated this scenario with a simple test RPM.

CentOS 5
[root(at)localhost ~]# rpm -i testy-1.0.0-0.noarch.rpm
[root(at)localhost ~]# ls -ld /opt/counterpath/eas/test
drwxr-xr-x 2 root root 4096 Apr 21 09:00 /opt/counterpath/eas/test
5

CentOS 4
[root(at)isotest ~]# rpm2cpio testy-1.0.0-0.noarch.rpm | cpio -tv
-rw-r--r-- 1 root root 6 Apr 21 08:53 ./opt/counterpath/eas/test/testfile.txt
1 block
[root(at)isotest ~]# rpm -i testy-1.0.0-0.noarch.rpm
[root(at)isotest ~]# ls -ld /opt/counterpath/eas/test
drwxr-x--- 2 root root 4096 Apr 21 08:59 /opt/counterpath/eas/test

CentOS 5 installs the directory with drwxr-xr-x, whereas CentOS4 installs it with drwxr-x---

I don't think there should be any issue with explicitly specifying the directory in the RPM with a %dir directive.
EG.,
%dir %attr(0755,root,root) /opt/counterpath/eas/test

My test RPM now installs properly on CentOS 4:

[root(at)isotest nortel]# rpm2cpio testy-1.0.0-0.noarch.rpm | cpio -tv
drwxr-xr-x 2 root root 0 Apr 21 08:53 ./opt/counterpath/eas/test
-rw-r--r-- 1 root root 6 Apr 21 08:53 ./opt/counterpath/eas/test/testfile.txt
1 block
[root(at)isotest nortel]# rpm -i testy-1.0.0-0.noarch.rpm
[root(at)isotest nortel]# ls -ld /opt/counterpath/eas/test
drwxr-xr-x 2 root root 4096 Apr 21 09:14 /opt/counterpath/eas/test

Again, thank you for your time!!!

Jamie Strachan

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2010-04-21 13:21:13 Re: BUG #5430: initdb fails due to permissions of /usr/share/pgsql
Previous Message Devrim GÜNDÜZ 2010-04-21 07:42:28 Re: BUG #5430: initdb fails due to permissions of /usr/share/pgsql