Bug 240069 - editors/libreoffice: Fails to package with GTK3 enabled
Summary: editors/libreoffice: Fails to package with GTK3 enabled
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 mailing list
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2019-08-24 12:19 UTC by dal36
Modified: 2019-09-17 10:02 UTC (History)
2 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 dal36 2019-08-24 12:19:02 UTC
When building editors/libreoffice with GTK3 enabled, using ports-mgmt/synth on AMD64, I get the following error at the 'Package phase':

--------------------------------------------------------------------------------
--  Phase: package
--------------------------------------------------------------------------------
===>  Building package for libreoffice-6.3.0
pkg-static: Unable to access file /construction/xports/editors/libreoffice/work/stage/usr/local/share/gir-1.0/LOKDocView-0.1.gir:No such file or directory
*** Error code 1

Stop.
make: stopped in /xports/editors/libreoffice


The full set of build options that I've used for libreoffice are below, however  editors/libreoffice/Makefile appears to have a GTK3-specific instruction for file share/gir-1.0/LokDocView-0.1.gir at line 327-328.

--------------------------------------------------
--  Options
--------------------------------------------------
===> The following configuration options are available for libreoffice-6.3.0:
     CUPS=on: CUPS printing system support
     DOCS=on: Build and/or install documentation
     GNOME=off: GNOME desktop environment support
     GTK2=off: GTK+ 2 GUI toolkit support
     GTK3=on: GTK+ 3 GUI toolkit support (experimental)
     JAVA=on: Add Java support (XML filters, macros, DB connections)
     KDE5=off: KF5/Qt5 GUI toolkit support (require QT5)
     MMEDIA=on: Enable multimedia backend for Impress
     PGSQL=off: Build with PostgreSQL-SDBC driver
     QT5=off: Qt5 GUI toolkit support
     SDK=off: Build with SDK
     SYSTRAY=off: Enable systemtray quickstarter
     TEST=off: Run all regression tests
     WEBDAV=off: Enable WebDAV protocol

Please let me know if there's any further information that would be helpful here.
Comment 1 dal36 2019-08-24 20:50:04 UTC
Should have noted:

$ freebsd-version
12.0-RELEASE-p10
Comment 2 Li-Wen Hsu freebsd_committer 2019-08-25 03:33:48 UTC
I can build libreoffice-6.3.0 in a poudriere 12.0 amd64 jail with following options:

===> The following configuration options are available for libreoffice-6.3.0:
     CUPS=on: CUPS printing system support
     DOCS=on: Build and/or install documentation
     GNOME=off: GNOME desktop environment support
     GTK2=off: GTK+ 2 GUI toolkit support
     GTK3=on: GTK+ 3 GUI toolkit support (experimental)
     JAVA=on: Add Java support (XML filters, macros, DB connections)
     KDE5=off: KF5/Qt5 GUI toolkit support (require QT5)
     MMEDIA=on: Enable multimedia backend for Impress
     PGSQL=off: Build with PostgreSQL-SDBC driver
     QT5=off: Qt5 GUI toolkit support
     SDK=off: Build with SDK
     SYSTRAY=off: Enable systemtray quickstarter
     TEST=off: Run all regression tests
     WEBDAV=off: Enable WebDAV protocol
===> Use 'make config' to modify these settings

ports tree revision: r509768

Can you update the tree and check all the dependency refreshed?
Comment 3 dal36 2019-09-08 11:10:44 UTC
I've tried this again with a make.conf which is empty apart from assigning the GTK2/GTK3/JAVA options listed below for editors/libreoffice (using _SET/_UNSET). When building editors/libreoffice and dependencies from scratch with this make.conf, the port build works as expected.

The make.conf that produced the error also assigns DEFAULT_VERSIONS for various languages/tools and assigns various options with _SET/_UNSET, including dependencies of editors/libreoffice. Only ports-related options are set in the make.conf (no complier flags, etc.). Using this longer make.conf and an updated ports tree, I still get the same error when building editors/libreoffice.

I'm currently investigating this further to try to determine something closer to a minimal make.conf that reproduces the issue. Given the observations above, it seems that the issue might be due to using a particular combination of ports options when building the ports that editors/libreoffice depends upon.
Comment 4 Li-Wen Hsu freebsd_committer 2019-09-08 11:16:17 UTC
Thanks, and did you test with 6.3.1?  I also tried enabling GTK3 before updating it, but note that there are some UI issues with GTK3.
Comment 5 dal36 2019-09-08 14:17:43 UTC
The investigations that I've performed so far were just with 6.3.0. I'm rebuilding the rest of the repo at the moment, so will try libreoffice again with the full make.conf once that's done. If I'm seeing the same issue as before, I'll carry on trying to get some more specific info on which options (on other ports) are causing the problem.
Comment 6 dal36 2019-09-17 10:02:56 UTC
Using a ports tree downloaded at 20:26 on 11-Sep, the following make.conf was sufficient to replicate the error that I was seeing originally:

OPTIONS_UNSET                   += AVAHI

editors_libreoffice_SET		+= GTK3 JAVA
editors_libreoffice_UNSET	+= GTK2

As a comparison point, I also tried (recursively) rebuilding editors/libreoffice with GTK3 off and GTK2 on (using the same ports tree version) - this completed successfully.