Bug 258002 - editors/libreoffice defunct command line: wrong symbolic links
Summary: editors/libreoffice defunct command line: wrong symbolic links
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: FreeBSD Office Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-23 08:05 UTC by p5B2EA84B3
Modified: 2022-10-30 13:06 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (office)


Attachments
Poudriere build log file (first 250 lines) (14.03 KB, text/plain)
2021-08-31 20:29 UTC, p5B2EA84B3
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description p5B2EA84B3 2021-08-23 08:05:33 UTC
> libreoffice --help
cd: lrwxr-xr-x  1 root  wheel  34 Aug 23 02:17 libreoffice -> ../lib/libreoffice/program: No such file or directory

> libreoffice --writer
cd: lrwxr-xr-x  1 root  wheel  34 Aug 23 02:17 libreoffice -> ../lib/libreoffice/program: No such file or directory

> file `which libreoffice`
/usr/local/bin/libreoffice: symbolic link to ../lib/libreoffice/program/soffice

But 

> find /usr/local/ -name "soffice"
/usr/local/lib/libreoffice/program/soffice
/usr/local/bin/soffice

Probably other sym-links also affected.
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2021-08-24 18:18:42 UTC
How do you install libreoffice?

And what if you execute `/usr/local/bin/libreoffice` ?
Comment 2 p5B2EA84B3 2021-08-26 13:13:20 UTC
It got installed here by pkg install libreoffice 
the pkg was locally built by Poudriere.

The links just point to a dictionary that does not exit with FreeBSD.
I created correct ones and was done with it. Really no big deal.
Comment 3 Li-Wen Hsu freebsd_committer freebsd_triage 2021-08-26 13:40:54 UTC
(In reply to p5B2E9A8F from comment #2)
Thanks for the reply. Can you let us know more about the arch and version you're using? I suspect it might have some issues in the official pkg building.
Comment 4 p5B2EA84B3 2021-08-31 20:29:02 UTC
Created attachment 227576 [details]
Poudriere build log file (first 250 lines)
Comment 5 p5B2EA84B3 2021-10-14 22:38:24 UTC
Meanwhile we have libreoffice-7.2.2.2 and this little problem is still not fixed.
Comment 6 Dima Panov freebsd_committer freebsd_triage 2021-10-15 13:51:38 UTC
Something wrong with your machine or poudriere setup which leads to broken install.
I suggest to reinstall your box from scratch.

Just to be sure, I've made some tests. 

On my own machine all symlinks are fine. 

fluffy@vm:~ % file `which libreoffice`
/usr/local/bin/libreoffice: symbolic link to ../lib/libreoffice/program/soffice
fluffy@vm:~ % 

fluffy@vm:~ % libreoffice --help
LibreOffice 7.2.2.2 20(Build:2)

Usage: soffice [argument...]
       argument - switches, switch parameters and document URIs (filenames).

Using without special arguments:
Opens the start center, if it is used without any arguments.
   {file}              Tries to open the file (files) in the components
                       suitable for them.
   {file} {macro:///Library.Module.MacroName}
                       Opens the file and runs specified macros from
                       the file.
[skip]

Same for official packages repo -- no issues with symlinks at all.