Bug 226842 - editors/libreoffice: installation fails on staging
Summary: editors/libreoffice: installation fails on staging
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: FreeBSD Office Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-22 09:51 UTC by Alexander Shikov
Modified: 2022-02-12 08:25 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Shikov 2018-03-22 09:51:26 UTC
I've tried to install editors/libreoffice from ports tree, updated last night.
Installation fails on "staging" with following error:
[...]
find: /usr/ports/editors/libreoffice/work/stage/usr/local/share/application-registry: No such file or directory
find: /usr/ports/editors/libreoffice/work/stage/usr/local/share/mime/packages: No such file or directory
find: /usr/ports/editors/libreoffice/work/stage/usr/local/share/mime-info: No such file or directory
find: /usr/ports/editors/libreoffice/work/stage/usr/local/share/icons: No such file or directory
Install /usr/local/bin/lobase
Install /usr/local/man/man1/lobase.1.gz
Install /usr/local/bin/localc
Install /usr/local/man/man1/localc.1.gz
Install /usr/local/bin/lodraw
Install /usr/local/man/man1/lodraw.1.gz
Install /usr/local/bin/lomath
Install /usr/local/man/man1/lomath.1.gz
Install /usr/local/bin/loimpress
Install /usr/local/man/man1/loimpress.1.gz
Install /usr/local/bin/loweb
Install /usr/local/man/man1/loweb.1.gz
Install /usr/local/bin/lowriter
Install /usr/local/man/man1/lowriter.1.gz
Install /usr/local/bin/lofromtemplate
Install /usr/local/man/man1/lofromtemplate.1.gz
Install /usr/local/bin/libreoffice
Install /usr/local/man/man1/libreoffice.1.gz
Install /usr/local/bin/loffice
Install /usr/local/man/man1/loffice.1.gz
Install /usr/local/bin/unopkg
Install /usr/local/man/man1/unopkg.1.gz
Install /basis/program/java-set-classpath
/usr/ports/editors/libreoffice/work/libreoffice-6.0.2.1/bin/distro-install-sdk
/usr/ports/editors/libreoffice/work/libreoffice-6.0.2.1/bin/distro-install-file-lists
Generating package file lists for FreeBSD ports...
gmake[2]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-6.0.2.1'
find: share/appdata: No such file or directory
*** Error code 1

Stop.

Port's options are:
# This file is auto-generated by 'make config'.
# Options for libreoffice-6.0.2
_OPTIONS_READ=libreoffice-6.0.2
_FILE_COMPLETE_OPTIONS_LIST=CUPS DOCS GNOME GTK2 GTK3 JAVA KDE4 MMEDIA PGSQL SDK SYSTRAY TEST WEBDAV
OPTIONS_FILE_SET+=CUPS
OPTIONS_FILE_SET+=DOCS
OPTIONS_FILE_SET+=GNOME
OPTIONS_FILE_SET+=GTK2
OPTIONS_FILE_UNSET+=GTK3
OPTIONS_FILE_UNSET+=JAVA
OPTIONS_FILE_UNSET+=KDE4
OPTIONS_FILE_UNSET+=MMEDIA
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_UNSET+=SDK
OPTIONS_FILE_UNSET+=SYSTRAY
OPTIONS_FILE_UNSET+=TEST
OPTIONS_FILE_UNSET+=WEBDAV
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2018-03-22 11:08:14 UTC
Ok I think I know where the problem is, but it may take a while for fixing.  In the mean time, cloud you try to disable GNOME option?
Comment 2 Alexander Shikov 2018-03-22 13:03:32 UTC
(In reply to Li-Wen Hsu from comment #1)
Hello!

It was the first I'd tried after failure. It does not solve an issue.
Comment 3 Li-Wen Hsu freebsd_committer freebsd_triage 2018-03-22 13:52:14 UTC
then I had wrong assumption, cloud you try to check all the packages are updated?   If it doesn't help, please use package from pkg.freebsd.org for now.
Comment 4 Alexander Shikov 2018-03-22 16:50:52 UTC
(In reply to Li-Wen Hsu from comment #3)

My try was to perform upgrade from 5.3.7 version by issuing command "portupgrade -Rk libreoffice-5.3.7_2". There were no errors except the libreoffice itself. Thus I guess that all packets which libreoffice depends on, are up-to-date.

Following your suggestion I'll use package for now, it seems working well. But its dependence on compat6x-amd64 is confusing...

Thanks!
Comment 5 Alexander Shikov 2018-08-14 21:14:24 UTC
The same is with Libreoffice 6.0.5.2:

[...]
Install /usr/local/bin/lofromtemplate
Install /usr/local/man/man1/lofromtemplate.1.gz
Install /usr/local/bin/libreoffice
Install /usr/local/man/man1/libreoffice.1.gz
Install /usr/local/bin/loffice
Install /usr/local/man/man1/loffice.1.gz
Install /usr/local/bin/unopkg
Install /usr/local/man/man1/unopkg.1.gz
Install /basis/program/java-set-classpath
/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/bin/distro-install-sdk
/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/bin/distro-install-file-lists
Generating package file lists for FreeBSD ports...
gmake[2]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2'
find: share/appdata: No such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/editors/libreoffice
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/libreoffice
Comment 6 Walter Schwarzenfeld freebsd_triage 2019-08-03 11:50:38 UTC
We have version 6.2.5. Does the problem still exist?
Comment 7 Alexander Shikov 2019-08-07 10:50:23 UTC
Everything is fine.
Thanks!
Comment 8 Mikhail Teterin freebsd_committer freebsd_triage 2020-08-07 13:35:31 UTC
I'm facing this problem now -- trying to install 6.4.5.2 -- and found this ticket with Google...

[...]
Rootpath: /opt/lib/libreoffice 
... cleaning the output tree ...
... removing directory /spare/usr/ports/editors/libreoffice/work/ooopackagingLGHchk/i_284361596807170 ...
... removing directory /spare/usr/ports/editors/libreoffice/work/LibreOffice//stripped/en-US ...
... checking log file /spare/usr/ports/editors/libreoffice/work/LibreOffice//logging/en-US/log_640_en-US.log

***********************************************************
Successful packaging process!
***********************************************************
... creating log file log_640_en-US.log 
Fri Aug  7 09:33:19 2020 (00:29 min.)
Installer finished

If you want to edit the .ui files with glade first execute:

export GLADE_CATALOG_SEARCH_PATH=/opt/lib/libreoffice/share/glade

Installation finished, you can now execute:
/opt/lib/libreoffice/program/soffice
/spare/usr/ports/editors/libreoffice/work/libreoffice-6.4.5.2/bin/distro-install-clean-up
Cleaning up ...
Fixing permissions...
Checking for DESTDIR inside installed files...
/spare/usr/ports/editors/libreoffice/work/libreoffice-6.4.5.2/bin/distro-install-desktop-integration
find: /spare/usr/ports/editors/libreoffice/work/stage/opt/share/application-registry: No such file or directory
find: /spare/usr/ports/editors/libreoffice/work/stage/opt/share/mime/packages: No such file or directory
find: /spare/usr/ports/editors/libreoffice/work/stage/opt/share/mime-info: No such file or directory
find: /spare/usr/ports/editors/libreoffice/work/stage/opt/share/icons: No such file or directory
Install /opt/bin/lobase
Install /opt/man/man1/lobase.1.gz
Install /opt/bin/localc
Install /opt/man/man1/localc.1.gz
Install /opt/bin/lodraw
Install /opt/man/man1/lodraw.1.gz
Install /opt/bin/lomath
Install /opt/man/man1/lomath.1.gz
Install /opt/bin/loimpress
Install /opt/man/man1/loimpress.1.gz
Install /opt/bin/loweb
Install /opt/man/man1/loweb.1.gz
Install /opt/bin/lowriter
Install /opt/man/man1/lowriter.1.gz
Install /opt/bin/lofromtemplate
Install /opt/man/man1/lofromtemplate.1.gz
Install /opt/bin/libreoffice
Install /opt/man/man1/libreoffice.1.gz
Install /opt/bin/loffice
Install /opt/man/man1/loffice.1.gz
Install /opt/bin/unopkg
Install /opt/man/man1/unopkg.1.gz
Install /basis/program/java-set-classpath
/spare/usr/ports/editors/libreoffice/work/libreoffice-6.4.5.2/bin/distro-install-sdk
/spare/usr/ports/editors/libreoffice/work/libreoffice-6.4.5.2/bin/distro-install-file-lists
Generating package file lists for FreeBSD ports...
gmake[2]: Leaving directory '/spare/usr/ports/editors/libreoffice/work/libreoffice-6.4.5.2'
find: share/appdata: No such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/editors/libreoffice
*** Error code 1

Will try disabling the GNOME option...
Comment 9 Mikhail Teterin freebsd_committer freebsd_triage 2020-08-07 13:58:20 UTC
Disabling GNOME-option had no effect. I forced it to install with this change:

Index: Makefile
===================================================================
--- Makefile    (revision 544329)
+++ Makefile    (working copy)
@@ -297,8 +297,9 @@
        @cd ${STAGEDIR}${PREFIX} && \
        ${FIND} -s bin lib man -not -type d >> ${TMPPLIST}
 .for subdir in appdata application-registry applications bash-completion icons mime mime-info
-       @cd ${STAGEDIR}${PREFIX} && \
-       ${FIND} -s share/${subdir} -not -type d >> ${TMPPLIST}
+       @if [ -d ${STAGEDIR}${PREFIX}/share/${subdir} ]; then \
+       cd ${STAGEDIR}${PREFIX} && \
+       ${FIND} -s share/${subdir} -not -type d >> ${TMPPLIST} ; fi
 .endfor
 
 post-install-SDK-on:

My options-file is:

# This file is auto-generated by 'make config'.
# Options for libreoffice-6.4.5
_OPTIONS_READ=libreoffice-6.4.5
_FILE_COMPLETE_OPTIONS_LIST=CUPS DOCS GNOME GTK3 JAVA KF5 MMEDIA PGSQL QT5 SDK TEST WEBDAV
OPTIONS_FILE_SET+=CUPS
OPTIONS_FILE_UNSET+=DOCS
OPTIONS_FILE_SET+=GNOME
OPTIONS_FILE_SET+=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
Comment 10 Alexander Shikov 2020-08-08 06:22:04 UTC
(In reply to Mikhail Teterin from comment #9)
This time it works for me without errors. Yesterday try to build from ports was successful.

# This file is auto-generated by 'make config'.
# Options for libreoffice-6.4.5
_OPTIONS_READ=libreoffice-6.4.5
_FILE_COMPLETE_OPTIONS_LIST=CUPS DOCS GNOME GTK3 JAVA KF5 MMEDIA PGSQL QT5 SDK TEST WEBDAV
OPTIONS_FILE_SET+=CUPS
OPTIONS_FILE_SET+=DOCS
OPTIONS_FILE_UNSET+=GNOME
OPTIONS_FILE_UNSET+=GTK3
OPTIONS_FILE_UNSET+=JAVA
OPTIONS_FILE_UNSET+=KF5
OPTIONS_FILE_UNSET+=MMEDIA
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_SET+=QT5
OPTIONS_FILE_UNSET+=SDK
OPTIONS_FILE_UNSET+=TEST
OPTIONS_FILE_UNSET+=WEBDAV
Comment 11 Daniel Engberg freebsd_committer freebsd_triage 2021-12-08 22:06:41 UTC
This bug report can be closed now?
Comment 12 Daniel Engberg freebsd_committer freebsd_triage 2022-02-12 08:25:22 UTC
Closing this as it refers to a really old version and packaging cluster generates packages fine. If it still occurs please open a new ticket.