When libxcb is compiled, it will read libdir from xcb-proto.pc to find the 
library. 
If delete this line, libxcb will report an error because it cannot find the 
directory of the library.

I haven't got any better way to solve this problem.

  --
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, 
Nanjing, 210012, China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

> -----Original Message-----
> From: Richard Purdie <[email protected]>
> Sent: Wednesday, March 8, 2023 5:21 PM
> To: Wang, Mingyu/王 鸣瑜 <[email protected]>;
> [email protected]
> Subject: Re: [OE-core] [PATCH V2 4/5] xcb-proto: Fix install conflict when 
> enable
> multilib.
> 
> On Wed, 2023-03-08 at 09:40 +0800, wangmy wrote:
> > From: Wang Mingyu <[email protected]>
> >
> > Error: Transaction test error:
> >   file /usr/share/pkgconfig/xcb-proto.pc conflicts between attempted
> > installs of lib32-xcb-proto-dev-1.15.2-r0.armv7ahf_neon and
> > xcb-proto-dev-1.15.2-r0.cortexa57
> >
> > The differences between the two files are as follows:
> > @@ -2,7 +2,7 @@
> >  exec_prefix=/usr
> >  datarootdir=${prefix}/share
> >  datadir=/usr/share
> > -libdir=/usr/lib64
> > +libdir=/usr/lib
> >  xcbincludedir=${pc_sysrootdir}${datadir}/xcb
> >  PYTHON_PREFIX=${prefix}
> >  pythondir=${pc_sysrootdir}${libdir}/python3.11/site-packages
> >
> > Signed-off-by: Wang Mingyu <[email protected]>
> > ---
> >  meta/recipes-graphics/xorg-proto/xcb-proto_1.15.2.bb | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/meta/recipes-graphics/xorg-proto/xcb-proto_1.15.2.bb
> > b/meta/recipes-graphics/xorg-proto/xcb-proto_1.15.2.bb
> > index 4e4472a9c1..0fdca732e8 100644
> > --- a/meta/recipes-graphics/xorg-proto/xcb-proto_1.15.2.bb
> > +++ b/meta/recipes-graphics/xorg-proto/xcb-proto_1.15.2.bb
> > @@ -28,3 +28,6 @@ DEV_PKG_DEPENDENCY = ""
> >  RRECOMMENDS:${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
> >
> >  BBCLASSEXTEND = "native nativesdk"
> > +inherit multilib_script
> > +MULTILIB_SCRIPTS = "${PN}-dev:${datadir}/pkgconfig/xcb-proto.pc"
> > +
> 
> If the .pc file doesn't use libdir anywhere, we should just delete that line. 
> It is
> being installed into a "noarch" location (datadir) so it shouldn't be library
> specific.
> 
> Also, we should *never* be putting pkgconfig files under update- alternatives
> control!
> 
> Cheers,
> 
> Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#178409): 
https://lists.openembedded.org/g/openembedded-core/message/178409
Mute This Topic: https://lists.openembedded.org/mt/97464370/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to