To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47389





------- Additional comments from [EMAIL PROTECTED] Thu Jun  2 11:44:52 -0700 
2005 -------
> Where does the `rpm` (the script) takes the `PATH` variable?

>From rpm's configuration.
rpm --showrc | grep install_script_path

> But when I run the which command in the RPM package script, it fails.
> So, maybe SuSE has broken RPM?

There is room for interpretation on whether has a broken rpm or not. It surely
is not broken as "not working properly". 
You can argue whether SuSE put the update-desktop-database program to /usr/bin
(IMHO it should, since it is used to create the cache for the desktop files
following the freedesktop specs. As these are put into XDG_DATA_DIRS (default to
/usr/share/ and /usr/local/share) it should be put in /usr/bin - it is not a
vendor(gnome) specific thing. It it was gnome-specific one can argue that every
gnome application should call that program with full path (or %{_bindir}/program
) - but as you cannot put this policy on every package that wants to install a
.desktop file this is not feasable.

> From this point of view, the RPM script should use the system settings and 
> this is not working.

This is not the way rpm works.

> The question is simple - should the RPM script from the RPM package use
> the system PATH settings? If yes, the problem is in the SuSE RPM tool.

No, it uses rpm's PATH-settings. You can argue about whether SuSE include these
directories by default or not, but it is beyond the cope of the individual
package. Does SuSE have a policy on how to install & register .desktop files?

> If not, you have the update-desktop-database in the /opt/gnome2 directory.
> So, have you modified PATH variable in the RPM settings or how it
> works on your system?

Yes. root's ~/.rpmmacros contains:
%_install_script_path 
/sbin:/bin:/usr/sbin:/opt/gnome2/bin:/usr/bin:/usr/X11R6/bin


---------------------------------------------------------------------
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