diff mbox series

[meta-java,kirkstone,1/3] classpath: Use an include file for x11 feature check

Message ID 20220817114406.348705-1-andrei@gherzan.com
State New
Headers show
Series [meta-java,kirkstone,1/3] classpath: Use an include file for x11 feature check | expand

Commit Message

Andrei Gherzan Aug. 17, 2022, 11:44 a.m. UTC
From: Andrei Gherzan <andrei.gherzan@huawei.com>

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>
---
 recipes-core/classpath/classpath-features-check.inc | 6 ++++++
 recipes-core/classpath/classpath_0.99.bb            | 4 +---
 2 files changed, 7 insertions(+), 3 deletions(-)
 create mode 100644 recipes-core/classpath/classpath-features-check.inc

Comments

Andrei Gherzan Aug. 21, 2022, 8:15 a.m. UTC | #1
On Wed, 17 Aug 2022, at 12:44, Andrei Gherzan wrote:
> From: Andrei Gherzan <andrei.gherzan@huawei.com>
>
> 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>
> ---
>  recipes-core/classpath/classpath-features-check.inc | 6 ++++++
>  recipes-core/classpath/classpath_0.99.bb            | 4 +---
>  2 files changed, 7 insertions(+), 3 deletions(-)
>  create mode 100644 recipes-core/classpath/classpath-features-check.inc
>
> 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 @@
> +# SPDX-FileCopyrightText: Huawei Inc.
> +#
> +# SPDX-License-Identifier: Apache-2.0
> +
> +inherit features_check
> +REQUIRED_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 @@
>  require classpath.inc
> 
> -inherit features_check
> -
> -REQUIRED_DISTRO_FEATURES = "x11"
> +include classpath-features-check.inc
> 
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=92acc79f1f429143f4624d07b253702a"
> 
> -- 
> 2.25.1

Friendly reminder on this set.

Andrei
diff mbox series

Patch

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 @@ 
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+inherit features_check
+REQUIRED_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 @@ 
 require classpath.inc
 
-inherit features_check
-
-REQUIRED_DISTRO_FEATURES = "x11"
+include classpath-features-check.inc
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=92acc79f1f429143f4624d07b253702a"