diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2019-02-22 10:15:44 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 10:43:06 +0000 |
commit | 060f27602afb883f31ef46049571c7b6442287ab (patch) | |
tree | 00b2700f2757b3bc4a45f74b7be7e549a5dc5c28 /meta/recipes-devtools | |
parent | e51d27b86ea29c8c272335879d8c4a434d0c686c (diff) | |
download | poky-060f27602afb883f31ef46049571c7b6442287ab.tar.gz |
perl: fix incorrect symbolic link for libperl.so
The perl-cross uses PERL_API_VERSION but not PERL_VERSION to define
libperl soname: libperl.so.$PERL_API_REVISION.$PERL_API_VERSION.$PERL_API_SUBVERSION.
For perl stable releases, the PERL_API_SUBVERSION is always 0. Specify
the so version for libperl to make sure the libperl.so can be linked to
the correct library.
(From OE-Core rev: 6257fcd86e63fe533aeaadbc65a54213b4885c16)
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/perl-sanity/perl_5.28.1.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/perl-sanity/perl_5.28.1.bb b/meta/recipes-devtools/perl-sanity/perl_5.28.1.bb index 71653feb53..1cc5480d68 100644 --- a/meta/recipes-devtools/perl-sanity/perl_5.28.1.bb +++ b/meta/recipes-devtools/perl-sanity/perl_5.28.1.bb | |||
@@ -34,6 +34,8 @@ inherit upstream-version-is-even | |||
34 | 34 | ||
35 | DEPENDS += "db gdbm zlib virtual/crypt" | 35 | DEPENDS += "db gdbm zlib virtual/crypt" |
36 | 36 | ||
37 | PERL_LIB_VER = "${@'.'.join(d.getVar('PV').split('.')[0:2])}.0" | ||
38 | |||
37 | do_unpack_append() { | 39 | do_unpack_append() { |
38 | bb.build.exec_func('do_copy_perlcross', d) | 40 | bb.build.exec_func('do_copy_perlcross', d) |
39 | } | 41 | } |
@@ -104,7 +106,7 @@ do_install() { | |||
104 | 106 | ||
105 | # Fix up shared library | 107 | # Fix up shared library |
106 | rm ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/libperl.so | 108 | rm ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/libperl.so |
107 | ln -sf ../../../../libperl.so.${PV} ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/libperl.so | 109 | ln -sf ../../../../libperl.so.${PERL_LIB_VER} ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/libperl.so |
108 | } | 110 | } |
109 | 111 | ||
110 | do_install_append_class-target() { | 112 | do_install_append_class-target() { |