Skip to contentSkip to conversation

Adding recipe for exprtk

PATCH In review Khem Raj 2 participants 12 messages Aug 12, 2020 – Aug 14, 2020 x86 trust domain extensions (TDX)

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/9 Adding recipe for exprtk

From: Vijay Khemka <[email protected]>

The C++ Mathematical Expression  Toolkit Library (ExprTk) is  a simple
to  use,   easy  to   integrate  and   extremely  efficient   run-time

mathematical expression parsing and evaluation engine. The parsing engine supports numerous forms of functional and logic processing semantics and is easily extensible.

It is a header only library.

---
 meta-oe/recipes-devtools/exprtk/exprtk_git.bb | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/exprtk/exprtk_git.bb
meta-oe/recipes-devtools/exprtk/exprtk_git.bb new file +22 -0
new file mode 100644
index 0000000000..6930f31e96
@@ -0,0 +1,22 @@
+SUMMARY = "Expression parser"
+HOMEPAGE = "https://github.com/ArashPartow/exprtk"
+SECTION = "libs"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+SRCREV = "281c2ccc65b8f91c012ea3725ebcef406378a225"
+
+SRC_URI = "git://github.com/ArashPartow/exprtk.git"
+
+S = "${WORKDIR}/git"
+
+# other packages commonly reference the file directly as "exprtk.hpp"
+# create symlink to allow this usage
+do_install() {
+    install -d ${D}/${includedir}
+    install -m 0644 ${S}/exprtk.hpp ${D}/${includedir}/exprtk.hpp
+}
+
+# exprtk is a header only C++ library, so the main package will be empty.
+RDEPENDS_${PN}-dev = ""
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.28.0
author
#1 lore raw

PATCH 2/9 satyr: Upgrade to 0.30

satyr 0.30
==========
Fix registers being parsed as modules in kernel oopses in some cases Use Nettle for cryptographic calculations
Fix builds with GCC 10

Add needed additional dependencies

---
 .../recipes-support/satyr/{satyr_0.28.bb => satyr_0.30.bb}   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
 rename meta-oe/recipes-support/satyr/{satyr_0.28.bb => satyr_0.30.bb} (89%)
meta-oe/recipes-support/satyr/satyr_0.30.bb renamed from meta-oe/recipes-support/satyr/satyr_0.28.bb +4 -1
similarity index 89%
rename from meta-oe/recipes-support/satyr/satyr_0.28.bb
rename to meta-oe/recipes-support/satyr/satyr_0.30.bb
index fbf018d7f5..7831dd9564 100644
@@ -10,13 +10,16 @@ inherit autotools-brokensep python3native pkgconfig
 SRC_URI = "git://github.com/abrt/satyr.git \
            file://0002-fix-compile-failure-against-musl-C-library.patch \
 "
-SRCREV = "8b5547b89b712b39a59f1d8b366e7de0f5f46108"
+SRCREV = "871a07001c64cfce15dffd7e93a5c3d55af6d5e8"
 S = "${WORKDIR}/git"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
 DEPENDS += " \
     gdb \
+    gperf-native \
+    json-c \
+    nettle \
 "
 
 PACKAGES += "python3-${BPN}"
Signature · 1 line
2.28.0
author
#2 lore raw

PATCH 3/9 gpm: Upgrade to latest master

In reply to Khem Raj

Drop upstreamed patch

---
 ...mptyset-API-instead-of-__sigemptyset.patch | 34 -------------------
 meta-oe/recipes-support/gpm/gpm_git.bb        |  3 +-
 2 files changed, 1 insertion(+), 36 deletions(-)
 delete mode 100644 meta-oe/recipes-support/gpm/gpm/0001-Use-sigemptyset-API-instead-of-__sigemptyset.patch
meta-oe/recipes-support/gpm/gpm/0001-Use-sigemptyset-API-instead-of-__sigemptyset.patch deleted +0 -34
deleted file mode 100644
index a9198166a9..0000000000
@@ -1,34 +0,0 @@
-From 52e6cf052b1f938fcca1bc24d578fe0bfd972988 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Sun, 25 Jun 2017 07:25:33 -0700
-Subject: [PATCH] Use sigemptyset API instead of __sigemptyset
-
-__sigemptyset has been removed from glibc public
-API headers in upcoming (2.26) release onwards
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Submitted
-
- src/prog/gpm-root.y | 4 ----
- 1 file changed, 4 deletions(-)
-
-diff --git a/src/prog/gpm-root.y b/src/prog/gpm-root.y
-index 5126c65..76c896c 100644
---- a/src/prog/gpm-root.y
-+++ b/src/prog/gpm-root.y
-@@ -1196,11 +1196,7 @@ int main(int argc, char **argv)
-                                                         LOG_DAEMON : LOG_USER);
-    /* reap your zombies */
-    childaction.sa_handler=reap_children;
--#if defined(__GLIBC__)
--   __sigemptyset(&childaction.sa_mask);
--#else /* __GLIBC__ */
-    sigemptyset(&childaction.sa_mask);
--#endif /* __GLIBC__ */
-    childaction.sa_flags=0;
-    sigaction(SIGCHLD,&childaction,NULL);
- 
--- 
-2.13.1
-
meta-oe/recipes-support/gpm/gpm_git.bb +1 -2
index 3800d147f9..600b25df86 100644
@@ -9,14 +9,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
 
 PV = "1.99.7+git${SRCREV}"
 PR = "r2"
-SRCREV = "1fd19417b8a4dd9945347e98dfa97e4cfd798d77"
+SRCREV = "e82d1a653ca94aa4ed12441424da6ce780b1e530"
 
 DEPENDS = "ncurses bison-native"
 
 SRC_URI = "git://github.com/telmich/gpm;protocol=git \
            file://init \
            file://gpm.service.in \
-           file://0001-Use-sigemptyset-API-instead-of-__sigemptyset.patch \
            "
 
 S = "${WORKDIR}/git"
Signature · 1 line
2.28.0
author
#3 lore raw

PATCH 4/9 gensio: Upgrade to 2.1.4

In reply to Khem Raj

Drop backported patch which is present in 2.1.4

---
 ...r-Rename-some-variables-to-tr_stdxxx.patch | 108 ------------------
 .../{gensio_1.5.3.bb => gensio_2.1.4.bb}      |   4 +-
 2 files changed, 1 insertion(+), 111 deletions(-)
 delete mode 100644 meta-oe/recipes-connectivity/gensio/gensio/0001-filter-Rename-some-variables-to-tr_stdxxx.patch
 rename meta-oe/recipes-connectivity/gensio/{gensio_1.5.3.bb => gensio_2.1.4.bb} (84%)
meta-oe/recipes-connectivity/gensio/gensio/0001-filter-Rename-some-variables-to-tr_stdxxx.patch deleted +0 -108
deleted file mode 100644
index dbc48a2134..0000000000
@@ -1,108 +0,0 @@
-From 601e6e56f44b91d957bb643662455f52540f336a Mon Sep 17 00:00:00 2001
-From: Corey Minyard <[email protected]>
-Date: Tue, 25 Feb 2020 16:08:40 -0600
-Subject: [PATCH] filter: Rename some variables to tr_stdxxx
-
-stdout and stderr can be macros, don't use the names directly.
-
-Signed-off-by: Corey Minyard <[email protected]>
-Upstream-Status: Backport [https://github.com/cminyard/gensio/commit/601e6e56f44b91d957bb643662455f52540f336a]
-Signed-off-by: Pierre-Jean Texier <[email protected]>
----
- lib/gensio_filter_trace.c | 28 ++++++++++++++--------------
- 1 file changed, 14 insertions(+), 14 deletions(-)
-
-diff --git a/lib/gensio_filter_trace.c b/lib/gensio_filter_trace.c
-index d39d58b..abe2db6 100644
---- a/lib/gensio_filter_trace.c
-+++ b/lib/gensio_filter_trace.c
-@@ -32,8 +32,8 @@ struct trace_filter {
-     enum trace_dir dir;
-     bool raw;
-     char *filename;
--    bool stdout;
--    bool stderr;
-+    bool tr_stdout;
-+    bool tr_stderr;
- 
-     FILE *tr;
- };
-@@ -82,9 +82,9 @@ trace_try_connect(struct gensio_filter *filter, struct timeval *timeout)
- {
-     struct trace_filter *tfilter = filter_to_trace(filter);
- 
--    if (tfilter->stdout) {
-+    if (tfilter->tr_stdout) {
- 	tfilter->tr = stdout;
--    } else if (tfilter->stderr) {
-+    } else if (tfilter->tr_stderr) {
- 	tfilter->tr = stderr;
-     } else if (tfilter->filename) {
- 	tfilter->tr = fopen(tfilter->filename, "a+");
-@@ -99,7 +99,7 @@ trace_try_disconnect(struct gensio_filter *filter, struct timeval *timeout)
- {
-     struct trace_filter *tfilter = filter_to_trace(filter);
- 
--    if (!tfilter->stdout && !tfilter->stderr && tfilter->tr)
-+    if (!tfilter->tr_stdout && !tfilter->tr_stderr && tfilter->tr)
- 	fclose(tfilter->tr);
-     tfilter->tr = NULL;
-     return 0;
-@@ -331,12 +331,12 @@ static int gensio_trace_filter_func(struct gensio_filter *filter, int op,
- 
- static struct gensio_filter *
- gensio_trace_filter_raw_alloc(struct gensio_os_funcs *o, enum trace_dir dir,
--			      bool raw, const char *filename, bool stdout,
--			      bool stderr)
-+			      bool raw, const char *filename, bool tr_stdout,
-+			      bool tr_stderr)
- {
-     struct trace_filter *tfilter;
- 
--    if (!filename && !stdout && !stderr)
-+    if (!filename && !tr_stdout && !tr_stderr)
- 	dir = TRACE_NONE;
- 
-     tfilter = o->zalloc(o, sizeof(*tfilter));
-@@ -351,8 +351,8 @@ gensio_trace_filter_raw_alloc(struct gensio_os_funcs *o, enum trace_dir dir,
- 	if (!tfilter->filename)
- 	    goto out_nomem;
-     }
--    tfilter->stdout = stdout;
--    tfilter->stderr = stderr;
-+    tfilter->tr_stdout = tr_stdout;
-+    tfilter->tr_stderr = tr_stderr;
- 
-     tfilter->lock = o->alloc_lock(o);
-     if (!tfilter->lock)
-@@ -385,7 +385,7 @@ gensio_trace_filter_alloc(struct gensio_os_funcs *o,
- {
-     struct gensio_filter *filter;
-     int dir = TRACE_NONE;
--    bool raw = false, stdout = false, stderr = false;
-+    bool raw = false, tr_stdout = false, tr_stderr = false;
-     const char *filename = NULL;
-     unsigned int i;
- 
-@@ -396,15 +396,15 @@ gensio_trace_filter_alloc(struct gensio_os_funcs *o,
- 	    continue;
- 	if (gensio_check_keyvalue(args[i], "file", &filename) > 0)
- 	    continue;
--	if (gensio_check_keybool(args[i], "stdout", &stdout) > 0)
-+	if (gensio_check_keybool(args[i], "stdout", &tr_stdout) > 0)
- 	    continue;
--	if (gensio_check_keybool(args[i], "stderr", &stderr) > 0)
-+	if (gensio_check_keybool(args[i], "stderr", &tr_stderr) > 0)
- 	    continue;
- 	return GE_INVAL;
-     }
- 
-     filter = gensio_trace_filter_raw_alloc(o, dir, raw, filename,
--					   stdout, stderr);
-+					   tr_stdout, tr_stderr);
-     if (!filter)
- 	return GE_NOMEM;
- 
--- 
-2.7.4
-
meta-oe/recipes-connectivity/gensio/gensio_2.1.4.bb renamed from meta-oe/recipes-connectivity/gensio/gensio_1.5.3.bb +1 -3
similarity index 84%
rename from meta-oe/recipes-connectivity/gensio/gensio_1.5.3.bb
rename to meta-oe/recipes-connectivity/gensio/gensio_2.1.4.bb
index 8c97662df5..9d73da90d8 100644
@@ -5,11 +5,9 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a0fd36908af843bcee10cb6dfc47fa67 \
                     file://COPYING;md5=bae3019b4c6dc4138c217864bd04331f \
                     "
 
-SRCREV = "95ec1ab31ee97411fc37156d12061adcf0331598"
-PV = "1.5.3+git${SRCPV}"
+SRCREV = "998a017076a86179696a3ad811e2bae9155e46cb"
 
 SRC_URI = "git://github.com/cminyard/gensio;protocol=https \
-           file://0001-filter-Rename-some-variables-to-tr_stdxxx.patch \
            "
 
 S = "${WORKDIR}/git"
Signature · 1 line
2.28.0
author
#4 lore raw

PATCH 5/9 ocl-icd: Upgrade to latest

In reply to Khem Raj

Install CL/cl_icd.h as its needed by opencl-icd-loader

---
 meta-oe/recipes-core/opencl/ocl-icd_git.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta-oe/recipes-core/opencl/ocl-icd_git.bb +6 -1
index d14ec53e3d..d91fb4ee5c 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=232257bbf7320320725ca9529d3782ab"
 SRC_URI = "git://github.com/OCL-dev/ocl-icd.git;protocol=https"
 
 PV = "2.2.12+git${SRCPV}"
-SRCREV = "af79aebe4649f30dbd711c1bf6fc661eac6e5f01"
+SRCREV = "a9e57b199ff1e8d03fa3e5c53c5544de3dc72fe6"
 
 S = "${WORKDIR}/git"
 
@@ -16,4 +16,9 @@ inherit autotools
 
 DEPENDS = "ruby-native"
 
+
+do_install_append() {
+    install -Dm 0644 ${S}/khronos-headers/CL/cl_icd.h ${D}${includedir}/CL/cl_icd.h
+}
+
 BBCLASSEXTEND = "native"
Signature · 1 line
2.28.0
author
#5 lore raw

PATCH 6/9 opencl-icd-loader: Update beyond 2020.06.16

In reply to Khem Raj

License-Update: License is now apache-2.0 as per [1]

Fixes build wih gcc10
Add new dependency on ocl-icd
Gather install artifacts from new locations

[1] https://github.com/KhronosGroup/OpenCL-ICD-Loader/commit/44f384ae624675d6b0b92ce39a97cb7f4899d92a

---
 .../opencl/opencl-icd-loader_git.bb            | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)
meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +10 -8
index 7c49c8d552..3b9d050569 100644
@@ -1,24 +1,27 @@
 SUMMARY  = "OpenCL ICD Loader"
 DESCRIPTION = "OpenCL compute ICD Loader from Khronos Group"
-LICENSE  = "Khronos"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ec724732ce73269486574c718ef0c79b"
+LICENSE  = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
 SECTION = "base"
 
+DEPENDS += "opencl-headers ocl-icd"
+
 inherit pkgconfig cmake
 
 S = "${WORKDIR}/git"
-SRCREV = "b342ff7b7f70a4b3f2cfc53215af8fa20adc3d86"
+PV = "2020.06.16+git${SRCPV}"
+SRCREV = "862eebe7ca733c398334a8db8481172a7d3a3c47"
 SRC_URI = "git://github.com/KhronosGroup/OpenCL-ICD-Loader.git"
 
 do_install () {
 	install -d ${D}${bindir}
-	install -m 0755 ${B}/bin/icd_loader_test ${D}${bindir}/
+	install -m 0755 ${B}/test/loader_test/icd_loader_test ${D}${bindir}/
 	chrpath -d ${D}${bindir}/icd_loader_test
 	install -d ${D}${libdir}
-	install -m 0644 ${B}/lib/libIcdLog.so ${D}${libdir}/
-	install -m 0644 ${B}/lib/libOpenCLDriverStub.so ${D}${libdir}/
+	install -m 0644 ${B}/test/log/libIcdLog.so ${D}${libdir}/
+	install -m 0644 ${B}/test/driver_stub/libOpenCLDriverStub.so ${D}${libdir}/
 	chrpath -d ${D}${libdir}/libOpenCLDriverStub.so
-	install -m 0644 ${B}/lib/libOpenCL.so.1.2 ${D}${libdir}/
+	install -m 0644 ${B}/libOpenCL.so.1.2 ${D}${libdir}/
 	cd ${D}${libdir}
 	ln -s libOpenCL.so.1.2 libOpenCL.so.1
 	ln -s libOpenCL.so.1 libOpenCL.so
@@ -41,5 +44,4 @@ FILES_${PN}-dev = " \
 FILES_libicdlog = "${libdir}/libIcdLog.so"
 FILES_libicdlog-dbg = "${libdir}/.debug/libIcdLog.so"
 
-DEPENDS = "opencl-headers"
 RDEPENDS_${PN} = "libicdlog"
Signature · 1 line
2.28.0
#6 lore raw

Re: [oe] [meta-oe][ 6/9] opencl-icd-loader: Update beyond 2020.06.16

Quoted 4 lines · Khem Raj

License-Update: License is now apache-2.0 as per [1]

Fixes build wih gcc10
Add new dependency on ocl-icd

Why does it need to depend on ocl-icd?

Thanks,

Anuj

Quoted 62 lines

Gather install artifacts from new locations

[1]
https://github.com/KhronosGroup/OpenCL-ICD-Loader/commit/44f384ae624675d6b0b92ce39a97cb7f4899d92a

---
 .../opencl/opencl-icd-loader_git.bb            | 18 ++++++++++----
----
 1 file changed, 10 insertions(+), 8 deletions(-)
meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +0 -2
index 7c49c8d552..3b9d050569 100644
@@ -1,24 +1,27 @@
 SUMMARY  = "OpenCL ICD Loader"
 DESCRIPTION = "OpenCL compute ICD Loader from Khronos Group"
-LICENSE  = "Khronos"
-LIC_FILES_CHKSUM =

"file://LICENSE.txt;md5=ec724732ce73269486574c718ef0c79b"

meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +2 -0
+LICENSE  = "Apache-2.0"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
SECTION = "base"

meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +5 -2
+DEPENDS += "opencl-headers ocl-icd"
+
 inherit pkgconfig cmake
 
 S = "${WORKDIR}/git"
-SRCREV = "b342ff7b7f70a4b3f2cfc53215af8fa20adc3d86"
+PV = "2020.06.16+git${SRCPV}"
+SRCREV = "862eebe7ca733c398334a8db8481172a7d3a3c47"
 SRC_URI = "git://github.com/KhronosGroup/OpenCL-ICD-Loader.git"
 
 do_install () {
 	install -d ${D}${bindir}
-	install -m 0755 ${B}/bin/icd_loader_test ${D}${bindir}/
+	install -m 0755 ${B}/test/loader_test/icd_loader_test

${D}${bindir}/

meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +2 -2
 	chrpath -d ${D}${bindir}/icd_loader_test
 	install -d ${D}${libdir}
-	install -m 0644 ${B}/lib/libIcdLog.so ${D}${libdir}/
-	install -m 0644 ${B}/lib/libOpenCLDriverStub.so ${D}${libdir}/
+	install -m 0644 ${B}/test/log/libIcdLog.so ${D}${libdir}/
+	install -m 0644 ${B}/test/driver_stub/libOpenCLDriverStub.so

${D}${libdir}/

meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +1 -2
 	chrpath -d ${D}${libdir}/libOpenCLDriverStub.so
-	install -m 0644 ${B}/lib/libOpenCL.so.1.2 ${D}${libdir}/
+	install -m 0644 ${B}/libOpenCL.so.1.2 ${D}${libdir}/
 	cd ${D}${libdir}
 	ln -s libOpenCL.so.1.2 libOpenCL.so.1
 	ln -s libOpenCL.so.1 libOpenCL.so
@@ -41,5 +44,4 @@ FILES_${PN}-dev = " \
 FILES_libicdlog = "${libdir}/libIcdLog.so"
 FILES_libicdlog-dbg = "${libdir}/.debug/libIcdLog.so"
 
-DEPENDS = "opencl-headers"
 RDEPENDS_${PN} = "libicdlog"
author
#7 lore raw

Re: [oe] [meta-oe][ 6/9] opencl-icd-loader: Update beyond 2020.06.16

Quoted 8 lines · Anuj
Quoted 4 lines · Khem Raj

License-Update: License is now apache-2.0 as per [1]

Fixes build wih gcc10
Add new dependency on ocl-icd

Why does it need to depend on ocl-icd?

It needs headers from it.

Quoted 67 lines

Thanks,

Anuj

Quoted 62 lines

Gather install artifacts from new locations

[1]
https://github.com/KhronosGroup/OpenCL-ICD-Loader/commit/44f384ae624675d6b0b92ce39a97cb7f4899d92a

---
 .../opencl/opencl-icd-loader_git.bb            | 18 ++++++++++----
----
 1 file changed, 10 insertions(+), 8 deletions(-)
meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +0 -2
index 7c49c8d552..3b9d050569 100644
@@ -1,24 +1,27 @@
 SUMMARY  = "OpenCL ICD Loader"
 DESCRIPTION = "OpenCL compute ICD Loader from Khronos Group"
-LICENSE  = "Khronos"
-LIC_FILES_CHKSUM =

"file://LICENSE.txt;md5=ec724732ce73269486574c718ef0c79b"

meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +2 -0
+LICENSE  = "Apache-2.0"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
SECTION = "base"

meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +5 -2
+DEPENDS += "opencl-headers ocl-icd"
+
 inherit pkgconfig cmake
 
 S = "${WORKDIR}/git"
-SRCREV = "b342ff7b7f70a4b3f2cfc53215af8fa20adc3d86"
+PV = "2020.06.16+git${SRCPV}"
+SRCREV = "862eebe7ca733c398334a8db8481172a7d3a3c47"
 SRC_URI = "git://github.com/KhronosGroup/OpenCL-ICD-Loader.git"
 
 do_install () {
      install -d ${D}${bindir}
-     install -m 0755 ${B}/bin/icd_loader_test ${D}${bindir}/
+     install -m 0755 ${B}/test/loader_test/icd_loader_test

${D}${bindir}/

      chrpath -d ${D}${bindir}/icd_loader_test
      install -d ${D}${libdir}
meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +2 -2
-     install -m 0644 ${B}/lib/libIcdLog.so ${D}${libdir}/
-     install -m 0644 ${B}/lib/libOpenCLDriverStub.so ${D}${libdir}/
+     install -m 0644 ${B}/test/log/libIcdLog.so ${D}${libdir}/
+     install -m 0644 ${B}/test/driver_stub/libOpenCLDriverStub.so

${D}${libdir}/

      chrpath -d ${D}${libdir}/libOpenCLDriverStub.so
meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +1 -2
-     install -m 0644 ${B}/lib/libOpenCL.so.1.2 ${D}${libdir}/
+     install -m 0644 ${B}/libOpenCL.so.1.2 ${D}${libdir}/
      cd ${D}${libdir}
      ln -s libOpenCL.so.1.2 libOpenCL.so.1
      ln -s libOpenCL.so.1 libOpenCL.so
@@ -41,5 +44,4 @@ FILES_${PN}-dev = " \
 FILES_libicdlog = "${libdir}/libIcdLog.so"
 FILES_libicdlog-dbg = "${libdir}/.debug/libIcdLog.so"
 
-DEPENDS = "opencl-headers"
 RDEPENDS_${PN} = "libicdlog"
#8 lore raw

Re: [oe] [meta-oe][ 6/9] opencl-icd-loader: Update beyond 2020.06.16

Quoted 12 lines · Khem Raj
Quoted 7 lines · Anuj
Quoted 4 lines · Khem Raj

License-Update: License is now apache-2.0 as per [1]

Fixes build wih gcc10
Add new dependency on ocl-icd

Why does it need to depend on ocl-icd?

It needs headers from it.

The headers should come from opencl-headers. For the missing header, we will need to upgrade opencl-headers recipe too. This DEPENDS is incorrect.

Thanks,

Anuj

Quoted 69 lines
Quoted 69 lines

Thanks,

Anuj

Quoted 65 lines

Gather install artifacts from new locations

[1]
https://github.com/KhronosGroup/OpenCL-ICD-Loader/commit/44f384ae624675d6b0b92ce39a97cb7f4899d92a

---
 .../opencl/opencl-icd-loader_git.bb            | 18 ++++++++++
----
----
 1 file changed, 10 insertions(+), 8 deletions(-)
meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +0 -2
index 7c49c8d552..3b9d050569 100644
@@ -1,24 +1,27 @@
 SUMMARY  = "OpenCL ICD Loader"
 DESCRIPTION = "OpenCL compute ICD Loader from Khronos Group"
-LICENSE  = "Khronos"
-LIC_FILES_CHKSUM =

"file://LICENSE.txt;md5=ec724732ce73269486574c718ef0c79b"

meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +2 -0
+LICENSE  = "Apache-2.0"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
SECTION = "base"

meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +5 -2
+DEPENDS += "opencl-headers ocl-icd"
+
 inherit pkgconfig cmake
 
 S = "${WORKDIR}/git"
-SRCREV = "b342ff7b7f70a4b3f2cfc53215af8fa20adc3d86"
+PV = "2020.06.16+git${SRCPV}"
+SRCREV = "862eebe7ca733c398334a8db8481172a7d3a3c47"
 SRC_URI = "git://github.com/KhronosGroup/OpenCL-ICD-Loader.git"
 
 do_install () {
      install -d ${D}${bindir}
-     install -m 0755 ${B}/bin/icd_loader_test ${D}${bindir}/
+     install -m 0755 ${B}/test/loader_test/icd_loader_test

${D}${bindir}/

      chrpath -d ${D}${bindir}/icd_loader_test
      install -d ${D}${libdir}
meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +0 -2
-     install -m 0644 ${B}/lib/libIcdLog.so ${D}${libdir}/
-     install -m 0644 ${B}/lib/libOpenCLDriverStub.so

${D}${libdir}/

meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +2 -0
+     install -m 0644 ${B}/test/log/libIcdLog.so ${D}${libdir}/
+     install -m 0644

${B}/test/driver_stub/libOpenCLDriverStub.so
${D}${libdir}/

      chrpath -d ${D}${libdir}/libOpenCLDriverStub.so
meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +1 -2
-     install -m 0644 ${B}/lib/libOpenCL.so.1.2 ${D}${libdir}/
+     install -m 0644 ${B}/libOpenCL.so.1.2 ${D}${libdir}/
      cd ${D}${libdir}
      ln -s libOpenCL.so.1.2 libOpenCL.so.1
      ln -s libOpenCL.so.1 libOpenCL.so
@@ -41,5 +44,4 @@ FILES_${PN}-dev = " \
 FILES_libicdlog = "${libdir}/libIcdLog.so"
 FILES_libicdlog-dbg = "${libdir}/.debug/libIcdLog.so"
 
-DEPENDS = "opencl-headers"
 RDEPENDS_${PN} = "libicdlog"
author
#9 lore raw

PATCH 7/9 freeglut: Use -fcommon always

In reply to Khem Raj

This package does not compile with -fno-common yet

errors out like
| /mnt/b/yoe/master/build/tmp/work/armv7vet2hf-neon-yoe-linux-musleabi/freeglut/3.2.1-r0/recipe-sysroot-native/usr/bin/arm-yoe-linux-musleabi/arm-yoe-linux-musleabi-ld: CMakeFiles/freeglut.dir/src/fg_gl2.c.o:/usr/src/debug/freeglut/3.2.1- r0/freeglut-3.2.1/src/fg_gl2.h:72: multiple definition of `fghBindBuffer'; CMakeFiles/freeglut.dir/src/fg_geometry.c.o:/usr/src/debug/freeglut/3.2.1-r0/freeglut-3.2.1/src/fg_gl2.h:72: first defined here

---
 meta-oe/recipes-graphics/freeglut/freeglut_3.2.1.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-graphics/freeglut/freeglut_3.2.1.bb +3 -0
index 851641c083..6ef9f74c70 100644
@@ -12,6 +12,9 @@ inherit cmake features_check
 # depends on virtual/libx11, virtual/libgl
 REQUIRED_DISTRO_FEATURES = "x11 opengl"
 
+# Do not use -fno-common, check back when upgrading to new version it might not be needed
+CFLAGS += "-fcommon"
+
 PROVIDES += "mesa-glut"
 
 DEPENDS = "virtual/libx11 libxmu libxi virtual/libgl libglu libxrandr"
Signature · 1 line
2.28.0
author
#10 lore raw

PATCH 8/9 xfsprogs: Upgrade to 5.7.0

In reply to Khem Raj

License-Update: Added SPDX tags [1]

Drop readline option its no longer needed

[1] https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/commit/LICENSES/GPL-2.0?id=c7498b6911d03f2bd7f74e9f9862d8d5fbd5b5da

---
 .../xfsprogs/{xfsprogs_5.2.1.bb => xfsprogs_5.7.0.bb}    | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
 rename meta-filesystems/recipes-utils/xfsprogs/{xfsprogs_5.2.1.bb => xfsprogs_5.7.0.bb} (87%)
meta-filesystems/recipes-utils/xfsprogs/xfsprogs_5.7.0.bb renamed from meta-filesystems/recipes-utils/xfsprogs/xfsprogs_5.2.1.bb +3 -6
similarity index 87%
rename from meta-filesystems/recipes-utils/xfsprogs/xfsprogs_5.2.1.bb
rename to meta-filesystems/recipes-utils/xfsprogs/xfsprogs_5.7.0.bb
index 433ce47739..9efcc56174 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "http://oss.sgi.com/projects/xfs"
 SECTION = "base"
 LICENSE = "GPLv2 & LGPLv2.1"
 LICENSE_libhandle = "LGPLv2.1"
-LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=74274e8a218423e49eefdea80bc55038 \
+LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97 \
                     file://LICENSES/LGPL-2.1;md5=b370887980db5dd40659b50909238dbd"
 DEPENDS = "util-linux util-linux-native"
 SRC_URI = "https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/${BP}.tar.xz \
@@ -12,9 +12,7 @@ SRC_URI = "https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/${BP}.tar.xz \
            file://0002-include-include-xfs-linux.h-after-sys-mman.h.patch \
            file://0001-support-usrmerge.patch \
            "
-SRC_URI[md5sum] = "5ca3f79e76e3fb984a03d1b42a2e60ba"
-SRC_URI[sha256sum] = "7b500e148cebd08f99e37cf744c7843817b37e7be2a32c4dc57d6ea16e3019ae"
-
+SRC_URI[sha256sum] = "8f2348a68a686a3f4491dda5d62dd32d885fbc52d32875edd41e2c296e7b4f35"
 inherit autotools-brokensep
 
 PACKAGES =+ "${PN}-fsck ${PN}-mkfs ${PN}-repair libhandle"
@@ -41,9 +39,8 @@ EXTRA_OECONF = "--enable-gettext=no \
 DISABLE_STATIC = ""
 EXTRA_AUTORECONF += "-I ${S}/m4 --exclude=autoheader"
 
-PACKAGECONFIG ??= "readline blkid"
+PACKAGECONFIG ??= "blkid"
 
-PACKAGECONFIG[readline] = "--enable-readline=yes,--enable-readline=no,readline"
 PACKAGECONFIG[blkid] = "--enable-blkid=yes,--enable-blkid=no,util-linux"
 
 export DEBUG="-DNDEBUG"
Signature · 1 line
2.28.0
author
#11 lore raw

PATCH 9/9 freerdp: Upgrade to 2.2.0

In reply to Khem Raj
---
 .../freerdp/{freerdp_git.bb => freerdp_2.2.0.bb}            | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
 rename meta-oe/recipes-support/freerdp/{freerdp_git.bb => freerdp_2.2.0.bb} (95%)
meta-oe/recipes-support/freerdp/freerdp_2.2.0.bb renamed from meta-oe/recipes-support/freerdp/freerdp_git.bb +2 -4
similarity index 95%
rename from meta-oe/recipes-support/freerdp/freerdp_git.bb
rename to meta-oe/recipes-support/freerdp/freerdp_2.2.0.bb
index 7cafbb7993..6a97c24c2f 100644
@@ -11,12 +11,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 inherit pkgconfig cmake gitpkgv
 
 PE = "1"
-PV = "2.0.0+gitr${SRCPV}"
 PKGV = "${GITPKGVTAG}"
 
-# 2.0.0 release
-SRCREV = "5ab2bed8749747b8e4b2ed431fd102bc726be684"
-SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \
+SRCREV = "d2ba84a6885f57674098fe8e76c5f99d880e580d"
+SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=stable-2.0 \
     file://winpr-makecert-Build-with-install-RPATH.patch \
 "
 
Signature · 1 line
2.28.0