commit:     bbd141f5e863c63ea0d432eea62f8e8d334fc64c
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  7 11:25:26 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Mar  7 12:57:47 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbd141f5

app-office/libreoffice: Disable running kf5-config

We don't need it, and it is causing sandbox violations.

Closes: https://bugs.gentoo.org/646406
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-office/libreoffice/libreoffice-6.0.2.1.ebuild  | 5 +++++
 app-office/libreoffice/libreoffice-6.0.9999.ebuild | 5 +++++
 app-office/libreoffice/libreoffice-9999.ebuild     | 5 +++++
 3 files changed, 15 insertions(+)

diff --git a/app-office/libreoffice/libreoffice-6.0.2.1.ebuild 
b/app-office/libreoffice/libreoffice-6.0.2.1.ebuild
index 73cd46b4e1a..b5671c6317c 100644
--- a/app-office/libreoffice/libreoffice-6.0.2.1.ebuild
+++ b/app-office/libreoffice/libreoffice-6.0.2.1.ebuild
@@ -312,6 +312,11 @@ src_unpack() {
 src_prepare() {
        default
 
+       # sandbox violations on many systems, we don't need it. Bug #646406
+       sed -i \
+               -e "/KF5_CONFIG/s/kf5-config/no/" \
+               configure.ac || die "Failed to disable kf5-config"
+
        AT_M4DIR="m4" eautoreconf
        # hack in the autogen.sh
        touch autogen.lastrun

diff --git a/app-office/libreoffice/libreoffice-6.0.9999.ebuild 
b/app-office/libreoffice/libreoffice-6.0.9999.ebuild
index 73cd46b4e1a..b5671c6317c 100644
--- a/app-office/libreoffice/libreoffice-6.0.9999.ebuild
+++ b/app-office/libreoffice/libreoffice-6.0.9999.ebuild
@@ -312,6 +312,11 @@ src_unpack() {
 src_prepare() {
        default
 
+       # sandbox violations on many systems, we don't need it. Bug #646406
+       sed -i \
+               -e "/KF5_CONFIG/s/kf5-config/no/" \
+               configure.ac || die "Failed to disable kf5-config"
+
        AT_M4DIR="m4" eautoreconf
        # hack in the autogen.sh
        touch autogen.lastrun

diff --git a/app-office/libreoffice/libreoffice-9999.ebuild 
b/app-office/libreoffice/libreoffice-9999.ebuild
index eca7b36b89a..ec4bf5552b6 100644
--- a/app-office/libreoffice/libreoffice-9999.ebuild
+++ b/app-office/libreoffice/libreoffice-9999.ebuild
@@ -310,6 +310,11 @@ src_unpack() {
 src_prepare() {
        default
 
+       # sandbox violations on many systems, we don't need it. Bug #646406
+       sed -i \
+               -e "/KF5_CONFIG/s/kf5-config/no/" \
+               configure.ac || die "Failed to disable kf5-config"
+
        AT_M4DIR="m4" eautoreconf
        # hack in the autogen.sh
        touch autogen.lastrun

Reply via email to