Bug 253038 - editors/libreoffice fails to stage
Summary: editors/libreoffice fails to stage
Status: Open
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-01-27 04:29 UTC by Mikhail Teterin
Modified: 2022-02-17 02:37 UTC (History)
2 users (show)

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


Attachments
Full build log (474.35 KB, application/x-xz)
2021-01-27 04:29 UTC, Mikhail Teterin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Teterin freebsd_committer freebsd_triage 2021-01-27 04:29:37 UTC
Created attachment 221953 [details]
Full build log

The options:

# This file is auto-generated by 'make config'.
# Options for libreoffice-7.0.4.2_1
_OPTIONS_READ=libreoffice-7.0.4.2_1
_FILE_COMPLETE_OPTIONS_LIST=COINMP CUPS DOCS GNOME GTK3 JAVA KF5 MMEDIA PGSQL QT5 SDK TEST WEBDAV
OPTIONS_FILE_UNSET+=COINMP
OPTIONS_FILE_SET+=CUPS
OPTIONS_FILE_UNSET+=DOCS
OPTIONS_FILE_SET+=GNOME
OPTIONS_FILE_UNSET+=GTK3
OPTIONS_FILE_UNSET+=JAVA
OPTIONS_FILE_UNSET+=KF5
OPTIONS_FILE_SET+=MMEDIA
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_UNSET+=QT5
OPTIONS_FILE_UNSET+=SDK
OPTIONS_FILE_UNSET+=TEST
OPTIONS_FILE_SET+=WEBDAV

The actual error is:

find: share/appdata: No such file or directory

Perhaps, the problem is my non-standard PREFIX (/opt), but that's not obvious...
Comment 1 Dima Panov freebsd_committer freebsd_triage 2021-01-28 02:07:09 UTC
Thanks for report, I'll investigate asap.
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2022-02-16 19:22:11 UTC
Is it still issue with current version of the LibreOffice?
Comment 3 Mikhail Teterin freebsd_committer freebsd_triage 2022-02-16 20:44:14 UTC
(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:
```
Comment 4 Dima Panov freebsd_committer freebsd_triage 2022-02-16 21:27:28 UTC
(In reply to Mikhail Teterin from comment #0)
> find: share/appdata: No such file or directory

Huh? share/appdata usage was ripped out from Makefile about a year ago (or even more, I forgot when faced it) and no places at all where it may be used again.

Are you sure to use vanilla port without any merge (for examples) issues?

Just to be sured, will setup poudriere build with LOCALBASE=/opt asap.
Comment 5 Mikhail Teterin freebsd_committer freebsd_triage 2022-02-17 02:37:07 UTC
(In reply to Dima Panov from comment #4)
> share/appdata usage was ripped out from Makefile about a year ago

appdata was just the first element on the list. The remaining subdirs (applications bash-completion icons metainfo mime) may not be there either. Indeed, they aren't there in my case -- with the port-options as specified.