commit:     1940f4b7f0d20a8bd73448e5a652e64fe7e0a100
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  8 13:55:42 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Fri Mar  8 13:56:05 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1940f4b7

app-admin/keepassxc: Don't call mandb

Closes: https://bugs.gentoo.org/679766
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 .../files/keepassxc-dont_call_mandb.patch          | 25 ++++++++++++++++++++++
 app-admin/keepassxc/keepassxc-2.3.3.ebuild         |  3 ++-
 app-admin/keepassxc/keepassxc-2.3.4-r1.ebuild      |  1 +
 app-admin/keepassxc/keepassxc-2.4.0_beta2.ebuild   |  4 ++++
 4 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/app-admin/keepassxc/files/keepassxc-dont_call_mandb.patch 
b/app-admin/keepassxc/files/keepassxc-dont_call_mandb.patch
new file mode 100644
index 00000000000..f966ae5ff28
--- /dev/null
+++ b/app-admin/keepassxc/files/keepassxc-dont_call_mandb.patch
@@ -0,0 +1,25 @@
+From f3e52d89b20a8740d18cd9f1124f299b64f06b36 Mon Sep 17 00:00:00 2001
+From: Lars Wendler <[email protected]>
+Date: Fri, 8 Mar 2019 14:48:13 +0100
+Subject: [PATCH] Don't call mandb
+
+There are other man implementateions beside man-db so it is not even sure
+that the "mandb" binary even exists on all unices. Other than that, usually
+there's a cron job running "mandb" on a daily basis.
+---
+ src/cli/CMakeLists.txt | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/cli/CMakeLists.txt b/src/cli/CMakeLists.txt
+index e59a911a..c3f97a2c 100644
+--- a/src/cli/CMakeLists.txt
++++ b/src/cli/CMakeLists.txt
+@@ -94,5 +94,4 @@ endif()
+ 
+ if(APPLE OR UNIX)
+     install(FILES keepassxc-cli.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/)
+-    execute_process(COMMAND mandb -q)
+ endif()
+-- 
+2.21.0
+

diff --git a/app-admin/keepassxc/keepassxc-2.3.3.ebuild 
b/app-admin/keepassxc/keepassxc-2.3.3.ebuild
index 3b2a5255c88..bf0e88ca357 100644
--- a/app-admin/keepassxc/keepassxc-2.3.3.ebuild
+++ b/app-admin/keepassxc/keepassxc-2.3.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -49,6 +49,7 @@ DEPEND="
 
 PATCHES=(
        "${FILESDIR}/${P}-qt-5.11-edit-entry-widget-includes.patch" #655844
+       "${FILESDIR}/${PN}-dont_call_mandb.patch"
 )
 
 src_prepare() {

diff --git a/app-admin/keepassxc/keepassxc-2.3.4-r1.ebuild 
b/app-admin/keepassxc/keepassxc-2.3.4-r1.ebuild
index 222a7249efa..bf07bec346a 100644
--- a/app-admin/keepassxc/keepassxc-2.3.4-r1.ebuild
+++ b/app-admin/keepassxc/keepassxc-2.3.4-r1.ebuild
@@ -54,6 +54,7 @@ PDEPEND="
 
 PATCHES=(
        "${FILESDIR}/${PN}-2.3.3-qt-5.11-edit-entry-widget-includes.patch" 
#655844
+       "${FILESDIR}/${PN}-dont_call_mandb.patch"
 )
 
 src_prepare() {

diff --git a/app-admin/keepassxc/keepassxc-2.4.0_beta2.ebuild 
b/app-admin/keepassxc/keepassxc-2.4.0_beta2.ebuild
index 1b5f2654570..b05a5089d56 100644
--- a/app-admin/keepassxc/keepassxc-2.4.0_beta2.ebuild
+++ b/app-admin/keepassxc/keepassxc-2.4.0_beta2.ebuild
@@ -57,6 +57,10 @@ PDEPEND="
        x11-misc/xsel
 "
 
+PATCHES=(
+       "${FILESDIR}/${PN}-dont_call_mandb.patch"
+)
+
 src_prepare() {
         use test || \
                sed -e "/^find_package(Qt5Test/d" -i CMakeLists.txt || die

Reply via email to