* [meta-virtualization][PATCH] skopeo: fix native skopeo failed if no libdevmapper.so.1.02 on host
@ 2021-07-05 9:30 hongxu
2021-07-07 19:43 ` Bruce Ashfield
0 siblings, 1 reply; 2+ messages in thread
From: hongxu @ 2021-07-05 9:30 UTC (permalink / raw)
To: meta-virtualization
If host does not install libdevmapper.so.1.02, run native skopeo failed:
...
$ tmp-glibc/sysroots/x86_64/usr/sbin/skopeo -h
|tmp-glibc/sysroots/x86_64/usr/sbin/skopeo.real: error while loading
shared libraries: libdevmapper.so.1.02: cannot open shared object file: No such file or directory
...
Create wrapper to set LD_LIBRARY_PATH which using native
libdevmapper.so.1.02
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
recipes-containers/skopeo/skopeo_git.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/recipes-containers/skopeo/skopeo_git.bb b/recipes-containers/skopeo/skopeo_git.bb
index 6c95bf3e..19ac938b 100644
--- a/recipes-containers/skopeo/skopeo_git.bb
+++ b/recipes-containers/skopeo/skopeo_git.bb
@@ -84,6 +84,9 @@ do_install() {
do_install_append_class-native() {
create_cmdline_wrapper ${D}/${sbindir}/skopeo \
--policy ${sysconfdir}/containers/policy.json
+
+ create_wrapper ${D}/${sbindir}/skopeo.real \
+ LD_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE}
}
do_install_append_class-nativesdk() {
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-virtualization][PATCH] skopeo: fix native skopeo failed if no libdevmapper.so.1.02 on host
2021-07-05 9:30 [meta-virtualization][PATCH] skopeo: fix native skopeo failed if no libdevmapper.so.1.02 on host hongxu
@ 2021-07-07 19:43 ` Bruce Ashfield
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2021-07-07 19:43 UTC (permalink / raw)
To: hongxu; +Cc: meta-virtualization
merged.
Bruce
In message: [meta-virtualization][PATCH] skopeo: fix native skopeo failed if no libdevmapper.so.1.02 on host
on 05/07/2021 hongxu wrote:
> If host does not install libdevmapper.so.1.02, run native skopeo failed:
> ...
> $ tmp-glibc/sysroots/x86_64/usr/sbin/skopeo -h
> |tmp-glibc/sysroots/x86_64/usr/sbin/skopeo.real: error while loading
> shared libraries: libdevmapper.so.1.02: cannot open shared object file: No such file or directory
> ...
>
> Create wrapper to set LD_LIBRARY_PATH which using native
> libdevmapper.so.1.02
>
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
> recipes-containers/skopeo/skopeo_git.bb | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/recipes-containers/skopeo/skopeo_git.bb b/recipes-containers/skopeo/skopeo_git.bb
> index 6c95bf3e..19ac938b 100644
> --- a/recipes-containers/skopeo/skopeo_git.bb
> +++ b/recipes-containers/skopeo/skopeo_git.bb
> @@ -84,6 +84,9 @@ do_install() {
> do_install_append_class-native() {
> create_cmdline_wrapper ${D}/${sbindir}/skopeo \
> --policy ${sysconfdir}/containers/policy.json
> +
> + create_wrapper ${D}/${sbindir}/skopeo.real \
> + LD_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE}
> }
>
> do_install_append_class-nativesdk() {
> --
> 2.27.0
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-07 19:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 9:30 [meta-virtualization][PATCH] skopeo: fix native skopeo failed if no libdevmapper.so.1.02 on host hongxu
2021-07-07 19:43 ` Bruce Ashfield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.