Bug 94172 - editors/openoffice.org-2 needs sane symlinks
Summary: editors/openoffice.org-2 needs sane symlinks
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-openoffice (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-07 14:40 UTC by Kirk Strauser
Modified: 2007-04-01 20:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirk Strauser 2006-03-07 14:40:03 UTC
Right now, the symlinks to run OpenOffice.org components are a complete mess:

$ pkg_info -L openoffice.org-2.0.2.rc1 | grep /usr/local/bin
/usr/local/bin/openoffice.org
/usr/local/bin/openoffice.org-2.0.2.rc1
/usr/local/bin/openoffice.org-2.0.2.rc1-sbase
/usr/local/bin/openoffice.org-2.0.2.rc1-scalc
/usr/local/bin/openoffice.org-2.0.2.rc1-sdraw
/usr/local/bin/openoffice.org-2.0.2.rc1-setofficelang
/usr/local/bin/openoffice.org-2.0.2.rc1-simpress
/usr/local/bin/openoffice.org-2.0.2.rc1-smath
/usr/local/bin/openoffice.org-2.0.2.rc1-spadmin
/usr/local/bin/openoffice.org-2.0.2.rc1-swriter

This contrasts with the default Gentoo installation:

$ equery files openoffice | grep '/usr/bin'
/usr/bin
/usr/bin/oobase2
/usr/bin/oocalc2
/usr/bin/ooconfig
/usr/bin/oodraw2
/usr/bin/ooffice2
/usr/bin/oofromtemplate2
/usr/bin/ooimpress2
/usr/bin/oomath2
/usr/bin/ooo-wrapper2
/usr/bin/ooweb2
/usr/bin/oowriter2

If possible, could the port be modified to use symlinks similar to the ones Gentoo uses?  Typing "oowriter2" is a lot easier than "openoffice.org-2.0.2.rc1-swriter", and much more scripting-friendly.

Fix: 

I'm not sure whether editing the post-install clause in the port Makefile is sufficient, or if the build process needs to be patched so that the /usr/local/bin/openoffice.org-2.0.2.rc1 binary knows how to switch its behavior based on the new names it would called as.  My initial experiments with making new symlinks called "oowriter2", "oowriter", and "swriter" and hoping that OpenOffice.org would DWIM did not look promising; they all resulted in the "generic" application being loaded.  I'm too intimidated by this port to do serious investigation and so demurely leave judgment to the experts.
How-To-Repeat: Install the editors/openoffice.org-2.0 port and hear shell tab-completion play the Ukrainian Bell Carol as you try to run one of the components.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2006-03-07 21:05:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->openoffice

Over to maintainer(s).
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2007-04-01 12:32:08 UTC
State Changed
From-To: open->feedback

Does this problem still recur with the latest openoffice?
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2007-04-01 20:41:46 UTC
State Changed
From-To: feedback->closed

Submitter no longer uses openoffice.