To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=46536
                  Issue #:|46536
                  Summary:|[rpm-installer] trigger-scripts to create link in
                          |/etc fails badly when updating
                Component:|gsl
                  Version:|680m89
                 Platform:|PC
                      URL:|
               OS/Version:|Linux
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P2
             Subcomponent:|code
              Assigned to:|obr
              Reported by:|cloph





------- Additional comments from [EMAIL PROTECTED] Sat Apr  2 14:31:10 -0800 
2005 -------
Problem:

When updating, the script that creates the link in /etc to point to the
installation of OOo fails badly because an existing link is not removed when
updating, resulting in a link within the old installation-directory.

The link is created with

ln -sf /path/to/ooo-core01 /etc/openoffice.org-1.9

on first install, this works as expected, a link 
/etc/openoffice.org-1.9 -> /path/to/ooo-core01 is created.

when updating, this command is run again:

ln -sf /path/to/new_ooo-core01 /etc/openoffice.org-1.9

but this time, the link is not replaced as expected, but ln treats the old link
as a target-Directory, so it creates

/etc/openoffice.org-1.9/new_ooo-core01 -> /path/to/new_ooo_core01

real-life example:
# ls -lg /etc/openoffice.org-1.9
lrwxrwxrwx    1 root           25 Apr  2 20:30 /etc/openoffice.org-1.9 ->
/opt/openoffice.org1.9.90/
# ls -l /opt/openoffice.org1.9.90/
insgesamt 244
drwxr-xr-x    4 root     root         4096 Apr  2 18:37 help/
-r--r--r--    1 root     root          798 Apr  2 18:44 LICENSE
-r--r--r--    1 root     root         1377 Apr  2 18:44 LICENSE.html
drwxr-xr-x   16 root     root         4096 Apr  2 18:58 presets/
drwxr-xr-x    8 root     root        12288 Apr  2 20:28 program/
-r--r--r--    1 root     root        11025 Apr  2 18:44 README
-r--r--r--    1 root     root        10308 Apr  2 18:44 README.html
drwxr-xr-x   20 root     root         4096 Apr  2 18:37 share/
-r--r--r--    1 root     root       185698 Apr  2 18:44 
THIRDPARTYLICENSEREADME.html
# ln -sf /opt/openoffice.org1.9.91 /etc/openoffice.org-1.9
[EMAIL PROTECTED] opt]# ls -lg /etc/openoffice.org-1.9
lrwxrwxrwx    1 root           25 Apr  2 20:30 /etc/openoffice.org-1.9 ->
/opt/openoffice.org1.9.90/
# ls -lg /opt/openoffice.org1.9.90/
insgesamt 244
drwxr-xr-x    4 root         4096 Apr  2 18:37 help/
-r--r--r--    1 root          798 Apr  2 18:44 LICENSE
-r--r--r--    1 root         1377 Apr  2 18:44 LICENSE.html
lrwxrwxrwx    1 root           25 Apr  3 00:29 openoffice.org1.9.91 ->
/opt/openoffice.org1.9.91
drwxr-xr-x   16 root         4096 Apr  2 18:58 presets/
drwxr-xr-x    8 root        12288 Apr  2 20:28 program/
-r--r--r--    1 root        11025 Apr  2 18:44 README
-r--r--r--    1 root        10308 Apr  2 18:44 README.html
drwxr-xr-x   20 root         4096 Apr  2 18:37 share/
-r--r--r--    1 root       185698 Apr  2 18:44 THIRDPARTYLICENSEREADME.html
# ln --version
ln (fileutils) 4.1.11
[...]

P2 because this is rather ugly (but easy to fix, just do a "rm <link>" before
attempting to create it.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to