commit:     ab2bacd4f96e2f9d17552d1fe881b824c3ee7eec
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 21 11:17:09 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 21 22:31:27 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab2bacd4

llvm.org.eclass: Add a check for missing Gentoo-Comp in patches

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/llvm.org.eclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/eclass/llvm.org.eclass b/eclass/llvm.org.eclass
index d0b172e4fed..83f8127a4bd 100644
--- a/eclass/llvm.org.eclass
+++ b/eclass/llvm.org.eclass
@@ -202,6 +202,12 @@ llvm.org_src_unpack() {
        fi
 
        if [[ -n ${LLVM_PATCHSET} ]]; then
+               local nocomp=$(grep -r -L "^Gentoo-Component:" \
+                       "${WORKDIR}/llvm-gentoo-patchset-${LLVM_PATCHSET}")
+               if [[ -n ${nocomp} ]]; then
+                       die "Patches lacking Gentoo-Component found: ${nocomp}"
+               fi
+
                # strip patches that don't match current components
                local IFS='|'
                grep -E -r -L "^Gentoo-Component:.*(${components[*]})" \

Reply via email to