diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2014-04-09 16:56:44 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-09 10:27:34 +0100 |
commit | 77e3d60fa00a41424fe65977b2bf307727a5a26c (patch) | |
tree | a0573f19e46f2bb31631d84dcf1eb91fc643815b /meta/recipes-extended/pam | |
parent | 83a49c0fc5f6835c1385acb501380a0e351e4ac2 (diff) | |
download | openembedded-core-77e3d60fa00a41424fe65977b2bf307727a5a26c.tar.gz openembedded-core-77e3d60fa00a41424fe65977b2bf307727a5a26c.tar.bz2 openembedded-core-77e3d60fa00a41424fe65977b2bf307727a5a26c.zip |
libpam: fix 64-bit pam plugins not installed when add to 32-bit image
While the BSP is configured as a 64-bit kernel and 32-bit userspace,
add a 64-bit version of libpam to the filesystem, there was a failure:
...
| Computing transaction...error: Can't install
pam-plugin-unix-1.1.6-r2@lib64_x86_64: no package provides libpam-lib64
|
| Saving cache...
...
While using 'lib64' as the multilib suffix of libpam RPROVIDES , the
RPROVIDES was overridden by map_depends_variable in classextend.py.
...
$RPROVIDES_lib64-libpam [2 operations]
set data_smart.py:429 [finalize]
" libpam-${baselib}"
set classextend.py:71 [map_depends_variable]4532
"lib64-libpam"
computed:
"lib64-libpam"
RPROVIDES_lib64-libpam="lib64-libpam"
...
Rename the suffix could fix this issue.
[YOCTO #4532]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/pam')
-rw-r--r-- | meta/recipes-extended/pam/libpam_1.1.6.bb | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/meta/recipes-extended/pam/libpam_1.1.6.bb b/meta/recipes-extended/pam/libpam_1.1.6.bb index 61aa0a1ddd..7c0111fb04 100644 --- a/meta/recipes-extended/pam/libpam_1.1.6.bb +++ b/meta/recipes-extended/pam/libpam_1.1.6.bb @@ -62,12 +62,18 @@ FILES_${PN}-xtests = "${datadir}/Linux-PAM/xtests" PACKAGES_DYNAMIC += "^pam-plugin-.*" -RPROVIDES_${PN} += "libpam-${baselib}" -RPROVIDES_${PN}-runtime += "libpam-runtime-${baselib}" +def get_multilib_bit(d): + baselib = d.getVar('baselib', True) or '' + return baselib.replace('lib', '') -RDEPENDS_${PN}-runtime = "libpam-${baselib} pam-plugin-deny-${baselib} pam-plugin-permit-${baselib} pam-plugin-warn-${baselib} pam-plugin-unix-${baselib}" -RDEPENDS_${PN}-xtests = "libpam-${baselib} pam-plugin-access-${baselib} pam-plugin-debug-${baselib} pam-plugin-cracklib-${baselib} pam-plugin-pwhistory-${baselib} pam-plugin-succeed-if-${baselib} pam-plugin-time-${baselib} coreutils" -RRECOMMENDS_${PN} = "libpam-runtime-${baselib}" +libpam_suffix = "suffix${@get_multilib_bit(d)}" + +RPROVIDES_${PN} += "libpam-${libpam_suffix}" +RPROVIDES_${PN}-runtime += "libpam-runtime-${libpam_suffix}" + +RDEPENDS_${PN}-runtime = "libpam-${libpam_suffix} pam-plugin-deny-${libpam_suffix} pam-plugin-permit-${libpam_suffix} pam-plugin-warn-${libpam_suffix} pam-plugin-unix-${libpam_suffix}" +RDEPENDS_${PN}-xtests = "libpam-${libpam_suffix} pam-plugin-access-${libpam_suffix} pam-plugin-debug-${libpam_suffix} pam-plugin-cracklib-${libpam_suffix} pam-plugin-pwhistory-${libpam_suffix} pam-plugin-succeed-if-${libpam_suffix} pam-plugin-time-${libpam_suffix} coreutils" +RRECOMMENDS_${PN} = "libpam-runtime-${libpam_suffix}" python populate_packages_prepend () { def pam_plugin_append_file(pn, dir, file): @@ -78,21 +84,21 @@ python populate_packages_prepend () { d.setVar('FILES_' + pn, nf) def pam_plugin_hook(file, pkg, pattern, format, basename): - baselib = d.getVar('baselib', True) + libpam_suffix = d.getVar('libpam_suffix', True) mlprefix = d.getVar('MLPREFIX', True) or '' rdeps = d.getVar('RDEPENDS_' + pkg, True) if rdeps: - rdeps = rdeps + " " + mlprefix + "libpam-" + baselib + rdeps = rdeps + " " + mlprefix + "libpam-" + libpam_suffix else: - rdeps = mlprefix + "libpam-" + baselib + rdeps = mlprefix + "libpam-" + libpam_suffix d.setVar('RDEPENDS_' + pkg, rdeps) provides = d.getVar('RPROVIDES_' + pkg, True) if provides: - provides = provides + " " + pkg + "-" + baselib + provides = provides + " " + pkg + "-" + libpam_suffix else: - provides = pkg + "-" + baselib + provides = pkg + "-" + libpam_suffix d.setVar('RPROVIDES_' + pkg, provides) dvar = bb.data.expand('${WORKDIR}/package', d, True) |