Bug 232743 - editors/libreoffice: Enabling TEST config option causes build failure
Summary: editors/libreoffice: Enabling TEST config option causes build failure
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: FreeBSD Office Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-27 12:35 UTC by Hyun Hwang
Modified: 2020-10-26 15:03 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 Hyun Hwang 2018-10-27 12:35:28 UTC
Running 12-ALPHA10 r339406. The port's config is as follows:


% cat /var/db/ports/editors_libreoffice/options 
# This file is auto-generated by 'make config'.
# Options for libreoffice-6.0.5_6
_OPTIONS_READ=libreoffice-6.0.5_6
_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_SET+=GTK3
OPTIONS_FILE_UNSET+=JAVA
OPTIONS_FILE_UNSET+=KDE4
OPTIONS_FILE_SET+=MMEDIA
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_UNSET+=SDK
OPTIONS_FILE_UNSET+=SYSTRAY
OPTIONS_FILE_SET+=TEST
OPTIONS_FILE_SET+=WEBDAV


Build fails with the following log:


===>  Building for libreoffice-6.0.5_6
gmake[2]: Entering directory '/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2'
mkdir -p /usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/instdir
/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/solenv/bin/install-gdb-printers -a /usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/instdir -c
Automatic fetching of external tarballs is disabled.
gmake -j 4  -r -f /usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/Makefile.gbuild    all
gmake[3]: Entering directory '/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2'
gmake[3]: warning: -jN forced in submake: disabling jobserver mode.
/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/testtools/CustomTarget_uno_test.mk:38: *** missing 'endif'.  Stop.
gmake[3]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2'
gmake[2]: *** [Makefile:269: build] Error 2
gmake[2]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

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

Stop.
make: stopped in /usr/ports/editors/libreoffice


Disabling the TEST config option builds the port just fine.
Comment 1 Walter Schwarzenfeld 2018-11-18 14:52:24 UTC
We have version 6.0.7. Does the problem still exist?
Comment 2 Hyun Hwang 2018-11-20 01:04:16 UTC
(In reply to w.schwarzenfeld from comment #1)
Still fails. Same port config, same error message.

===>  Building for libreoffice-6.0.7_1
gmake[2]: Entering directory '/usr/ports/editors/libreoffice/work/libreoffice-6.0.7.3'
mkdir -p /usr/ports/editors/libreoffice/work/libreoffice-6.0.7.3/instdir
/usr/ports/editors/libreoffice/work/libreoffice-6.0.7.3/solenv/bin/install-gdb-printers -a /usr/ports/editors/libreoffice/work/libreoffice-6.0.7.3/instdir -c
Automatic fetching of external tarballs is disabled.
gmake -j 4  -r -f /usr/ports/editors/libreoffice/work/libreoffice-6.0.7.3/Makefile.gbuild    all
gmake[3]: Entering directory '/usr/ports/editors/libreoffice/work/libreoffice-6.0.7.3'
gmake[3]: warning: -jN forced in submake: disabling jobserver mode.
/usr/ports/editors/libreoffice/work/libreoffice-6.0.7.3/testtools/CustomTarget_uno_test.mk:38: *** missing 'endif'.  Stop.
gmake[3]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-6.0.7.3'
gmake[2]: *** [Makefile:269: build] Error 2
gmake[2]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-6.0.7.3'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

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

Stop.
make: stopped in /usr/ports/editors/libreoffice
Comment 3 Walter Schwarzenfeld 2019-09-11 16:16:09 UTC
> /usr/ports/editors/libreoffice/work/libreoffice-6.0.7.3/testtools/CustomTarget_uno_test.mk:38

In the last version (6.3.1) the file has only 34 lines and seems had a correct endif. I should work now, if I am right (and no other error appears). I don't have test it now.