All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/7] eudev: fix file conflict when multilib enabled
@ 2018-03-12  9:12 Zhang Xiao
  2018-03-12  9:12 ` [PATCH 2/7] python3: " Zhang Xiao
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Zhang Xiao @ 2018-03-12  9:12 UTC (permalink / raw)
  To: openembedded-core, mark.hatle

Config file udev.pc conflicts between 32 and 64 bit packages.
Use update-alternatives to add base_libdir as suffix to avoid it.

Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
---
 meta/recipes-core/udev/eudev_3.2.5.bb | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/udev/eudev_3.2.5.bb b/meta/recipes-core/udev/eudev_3.2.5.bb
index 88ad8f1b37..d567c11272 100644
--- a/meta/recipes-core/udev/eudev_3.2.5.bb
+++ b/meta/recipes-core/udev/eudev_3.2.5.bb
@@ -23,7 +23,20 @@ SRC_URI = "http://dev.gentoo.org/~blueness/${BPN}/${BP}.tar.gz \
 SRC_URI[md5sum] = "6ca08c0e14380f87df8e8aceac123671"
 SRC_URI[sha256sum] = "49c2d04105cad2526302627e040fa24b1916a9a3e059539bc8bb919b973890af"
 
-inherit autotools update-rc.d qemu pkgconfig distro_features_check
+inherit autotools update-rc.d qemu pkgconfig distro_features_check update-alternatives
+
+MULTILIB_SUFFIX = "${@d.getVar('base_libdir',1).split('/')[-1]}"
+
+ALTERNATIVE_${PN}-dev = "udev.pc"
+ALTERNATIVE_LINK_NAME[udev.pc] = "${datadir}/pkgconfig/udev.pc"
+ALTERNATIVE_TARGET[udev.pc] = "${datadir}/pkgconfig/udev.pc-${MULTILIB_SUFFIX}"
+
+PACKAGE_PREPROCESS_FUNCS += "eudev_alternative_rename"
+
+eudev_alternative_rename() {
+       # rename udev.pc
+       mv ${PKGD}${datadir}/pkgconfig/udev.pc ${PKGD}${datadir}/pkgconfig/udev.pc-${MULTILIB_SUFFIX}
+}
 
 CONFLICT_DISTRO_FEATURES = "systemd"
 
@@ -65,7 +78,7 @@ PACKAGES =+ "eudev-hwdb"
 
 
 FILES_${PN} += "${libexecdir} ${base_libdir}/udev ${bindir}/udevadm"
-FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \
+FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc-${MULTILIB_SUFFIX} \
                    ${includedir}/libudev.h ${libdir}/libudev.so \
                    ${includedir}/udev.h ${libdir}/libudev.la \
                    ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc"
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-03-27 14:38 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-12  9:12 [PATCH 1/7] eudev: fix file conflict when multilib enabled Zhang Xiao
2018-03-12  9:12 ` [PATCH 2/7] python3: " Zhang Xiao
2018-03-12  9:12 ` [PATCH 3/7] vala: " Zhang Xiao
2018-03-12  9:13 ` [PATCH 4/7] gobject-introspection: " Zhang Xiao
2018-03-12  9:13 ` [PATCH 5/7] cairo: " Zhang Xiao
2018-03-16 15:56   ` Burton, Ross
2018-03-12  9:13 ` [PATCH 6/7] xtrans: " Zhang Xiao
2018-03-16 15:55   ` Burton, Ross
2018-03-12  9:13 ` [PATCH 7/7] icu: " Zhang Xiao
2018-03-12 10:13 ` [PATCH 1/7] eudev: " Alexander Kanavin
2018-03-12 18:38   ` Mark Hatle
2018-03-12 18:55     ` Alexander Kanavin
2018-03-12 19:48       ` Mark Hatle
2018-03-13 10:19         ` Alexander Kanavin
2018-03-26 15:28           ` Mark Hatle
2018-03-27 10:37             ` Alexander Kanavin
2018-03-27 14:38               ` Mark Hatle

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.