diff options
Diffstat (limited to 'recipes-multimedia/onevpl/onevpl/0001-Fix-basename-build-issue-with-musl_libc.patch')
-rw-r--r-- | recipes-multimedia/onevpl/onevpl/0001-Fix-basename-build-issue-with-musl_libc.patch | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/recipes-multimedia/onevpl/onevpl/0001-Fix-basename-build-issue-with-musl_libc.patch b/recipes-multimedia/onevpl/onevpl/0001-Fix-basename-build-issue-with-musl_libc.patch index 93e5ed0d..14453279 100644 --- a/recipes-multimedia/onevpl/onevpl/0001-Fix-basename-build-issue-with-musl_libc.patch +++ b/recipes-multimedia/onevpl/onevpl/0001-Fix-basename-build-issue-with-musl_libc.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From d16afe9f9302e4995f12d699019eba170bb6db21 Mon Sep 17 00:00:00 2001 | 1 | From 72ceb46b43a7a74d20ced961aaff9366ccce53a9 Mon Sep 17 00:00:00 2001 |
2 | From: "Yew, Chang Ching" <chang.ching.yew@intel.com> | 2 | From: "Yew, Chang Ching" <chang.ching.yew@intel.com> |
3 | Date: Fri, 8 Oct 2021 08:45:39 +0800 | 3 | Date: Mon, 24 Jan 2022 20:49:50 +0800 |
4 | Subject: [PATCH] Fix basename() build issue with musl_libc | 4 | Subject: [PATCH 1/5] Fix basename() build issue with musl_libc |
5 | 5 | ||
6 | Upstream-Status: Submitted | 6 | Upstream-Status: Submitted |
7 | innersource PR #264 | 7 | innersource PR #264 |
@@ -12,7 +12,7 @@ Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com> | |||
12 | 1 file changed, 2 insertions(+), 1 deletion(-) | 12 | 1 file changed, 2 insertions(+), 1 deletion(-) |
13 | 13 | ||
14 | diff --git a/tools/legacy/sample_common/src/vaapi_utils.cpp b/tools/legacy/sample_common/src/vaapi_utils.cpp | 14 | diff --git a/tools/legacy/sample_common/src/vaapi_utils.cpp b/tools/legacy/sample_common/src/vaapi_utils.cpp |
15 | index b69dbe44..9382535a 100644 | 15 | index 86193d17..db71d413 100644 |
16 | --- a/tools/legacy/sample_common/src/vaapi_utils.cpp | 16 | --- a/tools/legacy/sample_common/src/vaapi_utils.cpp |
17 | +++ b/tools/legacy/sample_common/src/vaapi_utils.cpp | 17 | +++ b/tools/legacy/sample_common/src/vaapi_utils.cpp |
18 | @@ -7,6 +7,7 @@ | 18 | @@ -7,6 +7,7 @@ |
@@ -23,15 +23,15 @@ index b69dbe44..9382535a 100644 | |||
23 | #include <dlfcn.h> | 23 | #include <dlfcn.h> |
24 | #include <stdexcept> | 24 | #include <stdexcept> |
25 | 25 | ||
26 | @@ -26,7 +27,7 @@ SimpleLoader::SimpleLoader(const char* name) { | 26 | @@ -24,7 +25,7 @@ namespace MfxLoader { |
27 | |||
28 | SimpleLoader::SimpleLoader(const char* name) { | ||
27 | dlerror(); | 29 | dlerror(); |
28 | so_handle = dlopen(name, RTLD_GLOBAL | RTLD_NOW); | 30 | - so_handle = dlopen(name, RTLD_GLOBAL | RTLD_NOW); |
31 | + so_handle = dlopen(basename((char *)name), RTLD_GLOBAL | RTLD_NOW); | ||
29 | if (NULL == so_handle) { | 32 | if (NULL == so_handle) { |
30 | - so_handle = dlopen(basename(name), RTLD_GLOBAL | RTLD_NOW); | 33 | std::cerr << dlerror() << std::endl; |
31 | + so_handle = dlopen(basename((char *)name), RTLD_GLOBAL | RTLD_NOW); | 34 | throw std::runtime_error("Can't load library"); |
32 | if (NULL == so_handle) { | ||
33 | std::cerr << dlerror() << std::endl; | ||
34 | throw std::runtime_error("Can't load library"); | ||
35 | -- | 35 | -- |
36 | 2.33.0 | 36 | 2.34.1 |
37 | 37 | ||