summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-01-21 12:50:32 +0100
committerMichał Górny <mgorny@gentoo.org>2022-01-21 16:37:16 +0100
commit570b96daf126887425ec99ea1fce549063533506 (patch)
tree2a76f0dfb24b9fb2deba501fc29e8f293edcbf52 /eclass/llvm.org.eclass
parentdev-java/joda-convert: removed obsolete 1.3.1-r1 (diff)
downloadgentoo-570b96daf126887425ec99ea1fce549063533506.tar.gz
gentoo-570b96daf126887425ec99ea1fce549063533506.tar.bz2
gentoo-570b96daf126887425ec99ea1fce549063533506.zip
llvm.org.eclass: Detect stale patchsets
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/llvm.org.eclass')
-rw-r--r--eclass/llvm.org.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/llvm.org.eclass b/eclass/llvm.org.eclass
index 7ad6d1efe94e..72e6a3ef25a6 100644
--- a/eclass/llvm.org.eclass
+++ b/eclass/llvm.org.eclass
@@ -1,4 +1,4 @@
-# Copyright 2019-2021 Gentoo Authors
+# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: llvm.org.eclass
@@ -294,6 +294,14 @@ llvm.org_src_unpack() {
"${WORKDIR}/llvm-gentoo-patchset-${LLVM_PATCHSET}" |
xargs rm
assert
+
+ if ver_test -ge 13.0.1_rc3; then
+ # fail if no patches remain
+ if [[ ! -s ${WORKDIR}/llvm-gentoo-patchset-${LLVM_PATCHSET} ]]
+ then
+ die "No patches in the patchset apply to the package"
+ fi
+ fi
fi
}