ntpsec: require x11 in DISTRO_FEATURES

* fixes:
  ERROR: Nothing RPROVIDES 'gnuplot' (but meta-openembedded/meta-networking/recipes-support/ntpsec/ntpsec_1.2.1.bb RDEPENDS on or otherwise requires it)
  gnuplot was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES)
  NOTE: Runtime target 'gnuplot' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['gnuplot']
  NOTE: Runtime target 'ntpsec' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['ntpsec', 'gnuplot']
  NOTE: Runtime target 'ntpsec-python' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['ntpsec-python', 'gnuplot']
  ERROR: Nothing RPROVIDES 'ntpsec-dev' (but meta-openembedded/meta-networking/recipes-support/ntpsec/ntpsec_1.2.1.bb RDEPENDS on or otherwise requires it)
  No eligible RPROVIDERs exist for 'ntpsec-dev'
  NOTE: Runtime target 'ntpsec-dev' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['ntpsec-dev']

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Martin Jansa 2021-11-06 19:54:42 +01:00 committed by Khem Raj
parent 1c1670a8c4
commit d6b4f9b460
2 changed files with 5 additions and 2 deletions

View File

@ -217,7 +217,7 @@ RDEPENDS:packagegroup-meta-networking-support = "\
yp-tools \
mtr \
ntp ntpdate sntp ntpdc ntpq ntp-tickadj ntp-utils \
ntpsec \
${@bb.utils.contains("DISTRO_FEATURES", "x11", "ntpsec", "", d)} \
nbd-client \
nbd-server \
nbd-trdump \

View File

@ -17,7 +17,10 @@ SRC_URI = "https://ftp.ntpsec.org/pub/releases/ntpsec-${PV}.tar.gz \
SRC_URI[sha256sum] = "f2684835116c80b8f21782a5959a805ba3c44e3a681dd6c17c7cb00cc242c27a"
inherit pkgconfig python3-dir python3targetconfig systemd update-alternatives update-rc.d useradd waf
inherit pkgconfig python3-dir python3targetconfig systemd update-alternatives update-rc.d useradd waf features_check
# RDEPENDS on gnuplot with this restriction
REQUIRED_DISTRO_FEATURES = "x11"
PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'seccomp systemd', d)} \
cap \