Re: BUG #5430: initdb fails due to permissions of /usr/share/pgsql
От | Jamie Strachan |
---|---|
Тема | Re: BUG #5430: initdb fails due to permissions of /usr/share/pgsql |
Дата | |
Msg-id | 519650.84244.qm@web37905.mail.mud.yahoo.com обсуждение исходный текст |
Ответ на | BUG #5430: initdb fails due to permissions of /usr/share/pgsql ("Jamie Strachan" <frostfreek@yahoo.com>) |
Список | 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 wh= en 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@localhost ~]# rpm -i testy-1.0.0-0.noarch.rpm=20 [root@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@isotest ~]# rpm2cpio testy-1.0.0-0.noarch.rpm | cpio -tv -rw-r--r-- 1 root root 6 Apr 21 08:53 ./opt/counterpath/ea= s/test/testfile.txt 1 block [root@isotest ~]# rpm -i testy-1.0.0-0.noarch.rpm=20 [root@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 i= t with drwxr-x--- I don't think there should be any issue with explicitly specifying the dire= ctory in the RPM with a %dir directive. EG.,=20 %dir %attr(0755,root,root) /opt/counterpath/eas/test My test RPM now installs properly on CentOS 4: [root@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/ea= s/test -rw-r--r-- 1 root root 6 Apr 21 08:53 ./opt/counterpath/ea= s/test/testfile.txt 1 block [root@isotest nortel]# rpm -i testy-1.0.0-0.noarch.rpm=20 [root@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
В списке pgsql-bugs по дате отправления: