[Xcb] ask for directory of xcb-proto.pc

wangmy at fujitsu.com wangmy at fujitsu.com
Wed Mar 22 07:44:58 UTC 2023


xcb-proto.pc has been placed under /usr/share, regardless of architecture. 
However, this file contains the following contents:
pythondir=${pc_sysrootdir}${libdir}/python3.11/site-packages
It needs to find python related content under libdir, which is architecture related.
Therefore, it seems not possible to make xcb-proto.pc architecture independent.

  --
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: wangmy at fujitsu.com
http://www.fujitsu.com/cn/fnst/

> -----Original Message-----
> From: Olivier Fourdan <ofourdan at redhat.com>
> Sent: Friday, March 17, 2023 4:38 PM
> To: Wang, Mingyu/王 鸣瑜 <wangmy at fujitsu.com>
> Cc: xcb at lists.freedesktop.org
> Subject: Re: [Xcb] ask for directory of xcb-proto.pc
> 
> Hi,
> 
> On Fri, Mar 17, 2023 at 9:01 AM wangmy at fujitsu.com <wangmy at fujitsu.com>
> wrote:
> >
> > When compiling with version 1.15.2 of xcb-proto, conflict occured in a multilib
> environment:
> > file /usr/share/pkgconfig/xcb-proto.pc conflicts between attempted
> > installs of lib32-xcb-proto-dev and xcb-proto-dev
> >
> > After investigation, it is found that the following setting in Makefile.am:
> > pkgconfigdir = $(datarootdir)/pkgconfig
> >
> > The setting for pgkconfigdir in version 1.15 is as follows:
> > pkgconfigdir = $(libdir)/pkgconfig
> > In this version, conflicts do not occur in the multilib environment.
> >
> > Could you tell me why the pkgconfigdir  changed from libdir to datarootdir?
> 
> That's commit d849b9534a5 [1].
> 
> The commit message does not not tell, but the corresponding merge request [2]
> hints that's because this is an architecture independent package.
> 
> The multilib issue might be a packaging issue with your distribution, xcb proto
> should not be architecture dependent.
> 
> HTH
> Cheers
> Olivier
> 
> [1] https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/commit/d849b9534a5
> [2] https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/merge_requests/30



More information about the Xcb mailing list