Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2006 14:39:39 GMT
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/94172: editors/openoffice.org-2.0 needs sane symlinks
Message-ID:  <200603071439.k27Edd04050623@www.freebsd.org>
Resent-Message-ID: <200603071440.k27Ee3tE034397@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94172
>Category:       ports
>Synopsis:       editors/openoffice.org-2.0 needs sane symlinks
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 07 14:40:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Kirk Strauser
>Release:        6-STABLE
>Organization:
The Strauser Group
>Environment:
FreeBSD kanga.honeypot.net 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2: Thu Mar  2 12:55:58 CST 2006     kirk@kanga.honeypot.net:/usr/obj/usr/src/sys/KANGA  i386

>Description:
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.
>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.
>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.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603071439.k27Edd04050623>