diff options
author | Kai Kang <kai.kang@windriver.com> | 2023-05-24 17:23:58 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-25 12:36:00 +0100 |
commit | 57761516e6cd2a4d0c7038c17cc493f9da43f667 (patch) | |
tree | ac7802f3df7cb89bea6c7574ec254011df3748d1 /meta/recipes-bsp | |
parent | 4841284f4013c7d021d8e31c45c870a53a47b26e (diff) | |
download | poky-57761516e6cd2a4d0c7038c17cc493f9da43f667.tar.gz |
pm-utils: fix multilib conflictions
It fails to instal pm-utils and lib32-pm-utils at same time:
Error: Transaction test error:
file /usr/bin/pm-is-supported conflicts between attempted installs of lib32-pm-utils-1.4.1-r1.corei7_32 and pm-utils-1.4.1-r1.corei7_64
file /usr/sbin/pm-hibernate conflicts between attempted installs of lib32-pm-utils-1.4.1-r1.corei7_32 and pm-utils-1.4.1-r1.corei7_64
file /usr/sbin/pm-powersave conflicts between attempted installs of lib32-pm-utils-1.4.1-r1.corei7_32 and pm-utils-1.4.1-r1.corei7_64
file /usr/sbin/pm-suspend conflicts between attempted installs of lib32-pm-utils-1.4.1-r1.corei7_32 and pm-utils-1.4.1-r1.corei7_64
file /usr/sbin/pm-suspend-hybrid conflicts between attempted installs of lib32-pm-utils-1.4.1-r1.corei7_32 and pm-utils-1.4.1-r1.corei7_64
All of the conflicted files either is script which source a file in
${libdir}, or a link file to some file in ${libdir}. Compare the content
of installed files in ${libdir} exclude binaries, only the paths of
${libdir} diff. So re-define libdir with ${nonarch_libdir} to fix the
conflicts.
(From OE-Core rev: f836541bcfdbf033a37537530b4e3b87b0a7f003)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r-- | meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb b/meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb index c6a4bc4932..dcc09f279e 100644 --- a/meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb +++ b/meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb | |||
@@ -19,9 +19,12 @@ PACKAGECONFIG[manpages] = "--enable-doc, --disable-doc, libxslt-native xmlto-nat | |||
19 | 19 | ||
20 | RDEPENDS:${PN} = "grep bash" | 20 | RDEPENDS:${PN} = "grep bash" |
21 | 21 | ||
22 | EXTRA_OECONF = "--libdir=${nonarch_libdir}" | ||
23 | |||
22 | do_configure:prepend () { | 24 | do_configure:prepend () { |
23 | ( cd ${S}; autoreconf -f -i -s ) | 25 | ( cd ${S}; autoreconf -f -i -s ) |
24 | } | 26 | } |
25 | 27 | ||
26 | FILES:${PN} += "${libdir}/${BPN}/*" | 28 | FILES:${PN} += "${nonarch_libdir}/${BPN}/*" |
27 | FILES:${PN}-dbg += "${datadir}/doc/pm-utils/README.debugging" | 29 | FILES:${PN}-dbg += "${datadir}/doc/pm-utils/README.debugging" |
30 | FILES:${PN}-dev += "${nonarch_libdir}/pkgconfig/pm-utils.pc" | ||