Bug 228030 - editors/openoffice-4 installs .desktop files in a manner KDE5 cannot handle
Summary: editors/openoffice-4 installs .desktop files in a manner KDE5 cannot handle
Status: Closed FIXED
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 mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-06 18:33 UTC by Alexander Kabaev
Modified: 2018-06-12 04:03 UTC (History)
3 users (show)

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


Attachments
Proposed patch (569 bytes, patch)
2018-05-06 23:48 UTC, Alexander Kabaev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kabaev freebsd_committer 2018-05-06 18:33:32 UTC
The existing port symlinks   /usr/local/share/applications/openoffice-4.1.5 to ../../openoffice-4.1.5/openoffice4/share/xdg . This does not work for Plasma 5 desktop since it has been changed to ignore symlinks.

See https://git.reviewboard.kde.org/r/129733/ for details.
The port should be changed to copy .desktop file lo sub-directory within /usr/local/share/applications/ instead to avoid this kind of issues in the future, IMHO.
Comment 1 Alexander Kabaev freebsd_committer 2018-05-06 23:48:53 UTC
Created attachment 193124 [details]
Proposed patch
Comment 2 commit-hook freebsd_committer 2018-06-12 03:55:08 UTC
A commit references this bug:

Author: truckman
Date: Tue Jun 12 03:55:02 UTC 2018
New revision: 472229
URL: https://svnweb.freebsd.org/changeset/ports/472229

Log:
  Instead of symlinking the directory containing the OpenOffice .desktop
  files under $PREFIX/share/applications, symlink the individual .desktop
  files.  This is what upstream does on Linux and what LibreOffice does
  as well.  The Plasma 5 desktop ignores symlinks to directories when it
  is scanning for .desktop files.

  PR:		228030
  Reported by:	kan@FreeBSD.org

Changes:
  head/editors/openoffice-4/Makefile
Comment 3 commit-hook freebsd_committer 2018-06-12 04:00:14 UTC
A commit references this bug:

Author: truckman
Date: Tue Jun 12 04:00:08 UTC 2018
New revision: 472230
URL: https://svnweb.freebsd.org/changeset/ports/472230

Log:
  Upgrade to Apache OpenOffice trunk SVN revsion r1833124.  This includes
  the bug fix in extra-patch-align16 needed for amd64. [1]

  Instead of symlinking the directory containing the OpenOffice .desktop
  files under $PREFIX/share/applications, symlink the individual .desktop
  files.  This is what upstream does on Linux and what LibreOffice does
  as well.  The Plasma 5 desktop ignores symlinks to directories when it
  is scanning for .desktop files.

  PR:		228030 [1]
  Reported by:	kan

Changes:
  head/editors/openoffice-devel/Makefile
  head/editors/openoffice-devel/distinfo
  head/editors/openoffice-devel/files/extra-patch-align16