[Bug 253038] editors/libreoffice fails to stage

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 16 Feb 2022 20:44:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253038

--- Comment #3 from Mikhail Teterin <mi@FreeBSD.org> ---
(In reply to VVD from comment #2)
> Is it still issue with current version of the LibreOffice?

Yes, it is an issue, depending on the OPTIONS selected. You don't see it in the
cluster-built packages, because of the defaults there.

On this desktop, for example, with options defined as:

_OPTIONS_READ=libreoffice-7.2.5.2
_FILE_COMPLETE_OPTIONS_LIST=COINMP CUPS DOCS GNOME GTK3 GTK4 JAVA KF5 LTO
MARIADB MMEDIA PGSQL QT5 SDK TEST WEBDAV
OPTIONS_FILE_UNSET+=COINMP
OPTIONS_FILE_SET+=CUPS
OPTIONS_FILE_UNSET+=DOCS
OPTIONS_FILE_SET+=GNOME
OPTIONS_FILE_SET+=GTK3
OPTIONS_FILE_UNSET+=GTK4
OPTIONS_FILE_UNSET+=JAVA
OPTIONS_FILE_UNSET+=KF5
OPTIONS_FILE_SET+=LTO
OPTIONS_FILE_UNSET+=MARIADB
OPTIONS_FILE_SET+=MMEDIA
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_UNSET+=QT5
OPTIONS_FILE_UNSET+=SDK
OPTIONS_FILE_UNSET+=TEST
OPTIONS_FILE_SET+=WEBDAV

there is no ${PREFIX}/share at all in the output of `pkg info --list-files
libreoffice`.

Of course, I had to patch the port's Makefile as below to make it stage:

```patch
@@ -333,8 +333,10 @@ post-install:
        @cd ${STAGEDIR}${PREFIX} && \
        ${FIND} -s bin lib man -not -type d >> ${TMPPLIST}
 .for subdir in applications bash-completion icons metainfo mime
+.      if exists(${STAGEDIR}${PREFIX}/${subdir})
        @cd ${STAGEDIR}${PREFIX} && \
        ${FIND} -s share/${subdir} -not -type d >> ${TMPPLIST}
+.      endif
 .endfor

 post-install-SDK-on:
```

-- 
You are receiving this mail because:
You are the assignee for the bug.