commit:     7c5da76e715616d593aaa8c593660e7b75be77cd
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  6 20:16:13 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Nov  6 20:25:27 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c5da76e

media-gfx/gmic: make sure patches only get applied once

For certain USE flags, the ebuild calls cmake_src_prepare for the second
time in another source directory. This causes emerge to attempt to apply
all the patches listed in PATCHES again, in the wrong place. Make sure
PATCHES is empty when cmake_src_prepare is called for the second time.

Closes: https://bugs.gentoo.org/753377
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 media-gfx/gmic/gmic-2.9.2.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/media-gfx/gmic/gmic-2.9.2.ebuild b/media-gfx/gmic/gmic-2.9.2.ebuild
index 260962b2dc1..51708f537aa 100644
--- a/media-gfx/gmic/gmic-2.9.2.ebuild
+++ b/media-gfx/gmic/gmic-2.9.2.ebuild
@@ -96,6 +96,8 @@ src_prepare() {
                        -e '/${CMAKE_EXE_LINKER_FLAGS} -s/d' \
                        -i gmic-qt/CMakeLists.txt || die
                local S="${S}/gmic-qt"
+               # Bug #753377
+               local PATCHES=()
                cmake_src_prepare
        fi
 }

Reply via email to