Skip to contentSkip to conversation

opencl: fix virtual PROVIDES warnings

PATCH In review Bin Lan 2 participants 2 messages May 31, 2024

lore
Share & tools
lore

Bin Lan

author
#0 lore raw

PATCH 1/1 opencl: fix virtual PROVIDES warnings

From: Bin Lan <[email protected]>

oe-core has started to warn when virtual/ is used outside of the RPROVIDES (build) context.

We tweak provides/depends to use virtual- instead to avoid the warning:

RPROVIDES is set to virtual/opencl-icd, the substring 'virtual/' holds no meaning in this context. It is suggested to use the 'virtual-'

---
 meta-oe/recipes-core/opencl/ocl-icd_2.3.2.bb                | 2 +-
 meta-oe/recipes-core/opencl/opencl-icd-loader_2023.12.14.bb | 2 +-
 meta-oe/recipes-support/opencl/clinfo_3.0.23.01.25.bb       | 2 +-
 meta-oe/recipes-support/opencv/opencv_4.9.0.bb              | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
meta-oe/recipes-core/opencl/ocl-icd_2.3.2.bb +1 -1
index d43ea281ae..bc1a645217 100644
@@ -14,7 +14,7 @@ S = "${WORKDIR}/git"
 inherit autotools
 
 DEPENDS = "ruby-native"
-PROVIDES = "virtual/opencl-icd"
+PROVIDES = "virtual-opencl-icd"
 RPROVIDES:${PN} = "virtual-opencl-icd"
 
 BBCLASSEXTEND = "native nativesdk"
meta-oe/recipes-core/opencl/opencl-icd-loader_2023.12.14.bb +1 -1
index 146ec6e472..9901e47616 100644
@@ -8,7 +8,7 @@ inherit pkgconfig cmake
 
 DEPENDS += "opencl-headers"
 
-PROVIDES = "virtual/opencl-icd"
+PROVIDES = "virtual-opencl-icd"
 RPROVIDES:${PN} = "virtual-opencl-icd"
 
 S = "${WORKDIR}/git"
meta-oe/recipes-support/opencl/clinfo_3.0.23.01.25.bb +1 -1
index 6cacd3722c..3e9ea48993 100644
@@ -13,7 +13,7 @@ SRCREV = "748c3930a9b9cb826e631d77439e2cb8f84f5bcf"
 
 S = "${WORKDIR}/git"
 
-DEPENDS += "opencl-headers virtual/opencl-icd"
+DEPENDS += "opencl-headers virtual-opencl-icd"
 
 do_install() {
 	oe_runmake install PREFIX=${D}${prefix} MANDIR=${D}${mandir}
meta-oe/recipes-support/opencv/opencv_4.9.0.bb +1 -1
index cf836d3ecf..2e72f12658 100644
@@ -109,7 +109,7 @@ PACKAGECONFIG[java] = "-DJAVA_INCLUDE_PATH=${JAVA_HOME}/include -DJAVA_INCLUDE_P
 PACKAGECONFIG[jpeg] = "-DWITH_JPEG=ON,-DWITH_JPEG=OFF,jpeg,"
 PACKAGECONFIG[libav] = "-DWITH_FFMPEG=ON,-DWITH_FFMPEG=OFF,libav,"
 PACKAGECONFIG[libv4l] = "-DWITH_LIBV4L=ON,-DWITH_LIBV4L=OFF,v4l-utils,"
-PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON,-DWITH_OPENCL=OFF,opencl-headers virtual/opencl-icd,"
+PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON,-DWITH_OPENCL=OFF,opencl-headers virtual-opencl-icd,"
 PACKAGECONFIG[openvino] = "-DWITH_OPENVINO=ON,-DWITH_OPENVINO=OFF,openvino-inference-engine,openvino-inference-engine"
 PACKAGECONFIG[oracle-java] = "-DJAVA_INCLUDE_PATH=${ORACLE_JAVA_HOME}/include -DJAVA_INCLUDE_PATH2=${ORACLE_JAVA_HOME}/include/linux -DJAVA_AWT_INCLUDE_PATH=${ORACLE_JAVA_HOME}/include -DJAVA_AWT_LIBRARY=${ORACLE_JAVA_HOME}/lib/amd64/libjawt.so -DJAVA_JVM_LIBRARY=${ORACLE_JAVA_HOME}/lib/amd64/server/libjvm.so,,ant-native oracle-jse-jdk oracle-jse-jdk-native,"
 PACKAGECONFIG[png] = "-DWITH_PNG=ON,-DWITH_PNG=OFF,libpng,"
Signature · 1 line
2.34.1
#1 lore raw

You're changing the build time dependencies, the warning is about runtime dependencies, so I don't think this is correct.

You probably have some bad RPROVIDES in different recipe or bbappend, see bitbake-getvar.

Quoted 84 lines · Bin Lan via lists.openembedded.org

From: Bin Lan <[email protected]>

oe-core has started to warn when virtual/ is used outside of the RPROVIDES (build) context.

We tweak provides/depends to use virtual- instead to avoid the warning:

RPROVIDES is set to virtual/opencl-icd, the substring 'virtual/' holds no meaning in this context. It is suggested to use the 'virtual-'

---
 meta-oe/recipes-core/opencl/ocl-icd_2.3.2.bb                | 2 +-
 meta-oe/recipes-core/opencl/opencl-icd-loader_2023.12.14.bb | 2 +-
 meta-oe/recipes-support/opencl/clinfo_3.0.23.01.25.bb       | 2 +-
 meta-oe/recipes-support/opencv/opencv_4.9.0.bb              | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
meta-oe/recipes-core/opencl/ocl-icd_2.3.2.bb +1 -1
index d43ea281ae..bc1a645217 100644
@@ -14,7 +14,7 @@ S = "${WORKDIR}/git"
 inherit autotools
 
 DEPENDS = "ruby-native"
-PROVIDES = "virtual/opencl-icd"
+PROVIDES = "virtual-opencl-icd"
 RPROVIDES:${PN} = "virtual-opencl-icd"
 
 BBCLASSEXTEND = "native nativesdk"
meta-oe/recipes-core/opencl/opencl-icd-loader_2023.12.14.bb +1 -1
index 146ec6e472..9901e47616 100644
@@ -8,7 +8,7 @@ inherit pkgconfig cmake
 
 DEPENDS += "opencl-headers"
 
-PROVIDES = "virtual/opencl-icd"
+PROVIDES = "virtual-opencl-icd"
 RPROVIDES:${PN} = "virtual-opencl-icd"
 
 S = "${WORKDIR}/git"
meta-oe/recipes-support/opencl/clinfo_3.0.23.01.25.bb +1 -1
index 6cacd3722c..3e9ea48993 100644
@@ -13,7 +13,7 @@ SRCREV = "748c3930a9b9cb826e631d77439e2cb8f84f5bcf"
 
 S = "${WORKDIR}/git"
 
-DEPENDS += "opencl-headers virtual/opencl-icd"
+DEPENDS += "opencl-headers virtual-opencl-icd"
 
 do_install() {
        oe_runmake install PREFIX=${D}${prefix} MANDIR=${D}${mandir}
meta-oe/recipes-support/opencv/opencv_4.9.0.bb +1 -2
index cf836d3ecf..2e72f12658 100644
@@ -109,7 +109,7 @@ PACKAGECONFIG[java] = "-DJAVA_INCLUDE_PATH=${JAVA_HOME}/include -DJAVA_INCLUDE_P
 PACKAGECONFIG[jpeg] = "-DWITH_JPEG=ON,-DWITH_JPEG=OFF,jpeg,"
 PACKAGECONFIG[libav] = "-DWITH_FFMPEG=ON,-DWITH_FFMPEG=OFF,libav,"
 PACKAGECONFIG[libv4l] = "-DWITH_LIBV4L=ON,-DWITH_LIBV4L=OFF,v4l-utils,"
-PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON,-DWITH_OPENCL=OFF,opencl-headers virtual/opencl-icd,"
+PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON,-DWITH_OPENCL=OFF,opencl-headers virtual-opencl-icd,"
 PACKAGECONFIG[openvino] = "-DWITH_OPENVINO=ON,-DWITH_OPENVINO=OFF,openvino-inference-engine,openvino-inference-engine"
 PACKAGECONFIG[oracle-java] = "-DJAVA_INCLUDE_PATH=${ORACLE_JAVA_HOME}/include -DJAVA_INCLUDE_PATH2=${ORACLE_JAVA_HOME}/include/linux -DJAVA_AWT_INCLUDE_PATH=${ORACLE_JAVA_HOME}/include -DJAVA_AWT_LIBRARY=${ORACLE_JAVA_HOME}/lib/amd64/libjawt.so -DJAVA_JVM_LIBRARY=${ORACLE_JAVA_HOME}/lib/amd64/server/libjvm.so,,ant-native oracle-jse-jdk oracle-jse-jdk-native,"
 PACKAGECONFIG[png] = "-DWITH_PNG=ON,-DWITH_PNG=OFF,libpng,"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110650): https://lists.openembedded.org/g/openembedded-devel/message/110650
Mute This Topic: https://lists.openembedded.org/mt/106403783/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-