summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei.gherzan@huawei.com>2022-08-17 13:43:06 +0200
committerRichard Leitner <richard.leitner@skidata.com>2022-08-22 09:35:52 +0200
commita7a021ea8bd4b711f77c96e096b19efbcc2d9796 (patch)
tree2ab34a18ecfc2e29cd90dcf963645ff229e3e5c9
parent3191173e9bb3fd13bb3830e8f2c1c5bfddbfc8d3 (diff)
downloadmeta-java-a7a021ea8bd4b711f77c96e096b19efbcc2d9796.tar.gz
classpath: Use an include file for x11 feature check
This will make it easier to maintain reflecting the same distro check on packages depending on classpath (in the dependency chain). Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
-rw-r--r--recipes-core/classpath/classpath-features-check.inc6
-rw-r--r--recipes-core/classpath/classpath_0.99.bb4
2 files changed, 7 insertions, 3 deletions
diff --git a/recipes-core/classpath/classpath-features-check.inc b/recipes-core/classpath/classpath-features-check.inc
new file mode 100644
index 0000000..c238fc3
--- /dev/null
+++ b/recipes-core/classpath/classpath-features-check.inc
@@ -0,0 +1,6 @@
1# SPDX-FileCopyrightText: Huawei Inc.
2#
3# SPDX-License-Identifier: Apache-2.0
4
5inherit features_check
6REQUIRED_DISTRO_FEATURES = "x11"
diff --git a/recipes-core/classpath/classpath_0.99.bb b/recipes-core/classpath/classpath_0.99.bb
index 5b9d904..f18ad1d 100644
--- a/recipes-core/classpath/classpath_0.99.bb
+++ b/recipes-core/classpath/classpath_0.99.bb
@@ -1,8 +1,6 @@
1require classpath.inc 1require classpath.inc
2 2
3inherit features_check 3include classpath-features-check.inc
4
5REQUIRED_DISTRO_FEATURES = "x11"
6 4
7LIC_FILES_CHKSUM = "file://LICENSE;md5=92acc79f1f429143f4624d07b253702a" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=92acc79f1f429143f4624d07b253702a"
8 6