summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-07-21 13:17:09 +0200
committerMichał Górny <mgorny@gentoo.org>2021-07-22 00:31:27 +0200
commitab2bacd4f96e2f9d17552d1fe881b824c3ee7eec (patch)
tree7b9e94bb1b7f62bff7664591c05bfb462ed3516e /eclass/llvm.org.eclass
parentmedia-tv/plex-media-server: remove old version 1.23.3.4707 (diff)
downloadgentoo-ab2bacd4f96e2f9d17552d1fe881b824c3ee7eec.tar.gz
gentoo-ab2bacd4f96e2f9d17552d1fe881b824c3ee7eec.tar.bz2
gentoo-ab2bacd4f96e2f9d17552d1fe881b824c3ee7eec.zip
llvm.org.eclass: Add a check for missing Gentoo-Comp in patches
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/llvm.org.eclass')
-rw-r--r--eclass/llvm.org.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/llvm.org.eclass b/eclass/llvm.org.eclass
index d0b172e4fed4..83f8127a4bd7 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[*]})" \