Created attachment 697785 [details, diff]
LibreOffice's configure.ac contains a Bashism (use of == operator with 'test' built-in). Thus, configure emits an error when /bin/sh is not Bash. This doesn't cause the build to fail outright, but it may be causing misdetection of features.
if test -z "$enable_community_flavor" -o "$enable_community_flavor" == "yes"; then
checking whether to build a Community flavor... ./configure: 10592: test: unexpected operator
The attached patch removes the Bashism and allows app-office/libreoffice-188.8.131.52 to configure without error when /bin/sh is Dash.
This appears to be still the case in git master. Would you send your fix upstream?
(In reply to Andreas Sturmlechner from comment #1)
> This appears to be still the case in git master. Would you send your fix
Thanks for taking it upstream, will backport to 7.1.
The bug has been closed via the following commit(s):
Author: Andreas Sturmlechner <email@example.com>
AuthorDate: 2021-05-21 14:19:47 +0000
Commit: Andreas Sturmlechner <firstname.lastname@example.org>
CommitDate: 2021-05-21 14:21:19 +0000
app-office/libreoffice: Fix configure.ac bashism
Upstream commit 2c4dd73c4c9f471fa2083f9f99dd27a7148f3175
Thanks-to: Matt Whitlock <email@example.com>
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <firstname.lastname@example.org>
.../files/libreoffice-184.108.40.206-bashism.patch | 33 ++++++++++++++++++++++
app-office/libreoffice/libreoffice-220.127.116.11.ebuild | 3 ++
2 files changed, 36 insertions(+)