<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:Arial,Helvetica,sans-serif">On Wed, 6 Sept 2023 at 18:15, Uri Lublin <<a href="mailto:ulublin@redhat.com">ulublin@redhat.com</a>> wrote:</span></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 6, 2023 at 11:17 AM Tomasz Kłoczko <<a href="mailto:kloczko.tomasz@gmail.com" target="_blank">kloczko.tomasz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:monospace,monospace">HI,</div></div></blockquote><div><br></div><div>Hi,<br></div><div><br></div><div><div>What distribution are you building this on ?<br></div><div>Seems like there is a problem with the libcacard-devel package.<br></div><div>Meson seems to find it but libcacard.so is not found by the gcc command.</div></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:monospace,monospace">MyOwn™️ 😋</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Please ignore this email.</div><div class="gmail_default" style="font-family:monospace,monospace">Issue already has been discussed, udentified and resoleved under <a href="https://gitlab.freedesktop.org/spice/spice-gtk/-/issues/178">https://gitlab.freedesktop.org/spice/spice-gtk/-/issues/178</a><br></div><div class="gmail_default" style="font-family:monospace,monospace">I found the issue with how the libcacard pkgconfig file is generated. Below patch fixes issue.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">``patch</div><div class="gmail_default" style="font-family:monospace,monospace">--- a/meson.build<br>+++ b/meson.build<br>@@ -88,8 +88,7 @@<br> )<br><br> pc = import('pkgconfig')<br>-pc.generate(<br>- libraries: libcacard,<br> requires_private: ['glib-2.0'],<br>+pc.generate(libcacard,<br> subdirs: 'cacard',<br> version: meson.project_version(),<br> name: 'cacard',<br></div><div class="gmail_default" style="font-family:monospace,monospace">```</div><div class="gmail_default" style="font-family:monospace,monospace">Missing "libcacard" as the first parameter is causing the "Libs:" line is generated .pc file is not generated.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Additionally I just realised that case of interaction libcacard with spice-gtk exposed again meson issue which I've reported in <a href="https://github.com/mesonbuild/meson/issues/12225">https://github.com/mesonbuild/meson/issues/12225</a> however in this case looks like meson developers do not understand difference between they assumptions and fact that I've literally tested how pkgconfig is used by meson and rpm on scaLE OF WHOLE DISTRIBUTION.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">So second part of the solution is meson patch which removes generate and propagate Requires.provate.</div><div class="gmail_default" style="font-family:monospace,monospace">In this case my patch is not to submit as meson PR because distribution on which I'm working is that NONE of the packages with libraries and pkgconfig files packages without static libraries variants.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">When I'll test that all packages which are using build dependencies defined as "pkgcobfig(foo)" still everything is working will try to submit above patch as libcacard PR/</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">I'm expecting that above meson issue inconsistently implementation Requires.private may cause some other issues but it is possible to see on meson issue ticket discussion has been locked so this is not a but "feature".🙁</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">kloczek</div><div class="gmail_default" style="font-family:monospace,monospace"><div dir="ltr" style="font-family:Arial,Helvetica,sans-serif"><font face="monospace, monospace">-- </font></div><div dir="ltr" style="font-family:Arial,Helvetica,sans-serif"><font face="monospace, monospace">Tomasz Kłoczko | LinkedIn: <a href="http://lnkd.in/FXPWxH" target="_blank" style="text-decoration-line:none"><span style="font-size:13px;background-color:transparent;text-decoration-line:underline;vertical-align:baseline">http://lnkd.in/FXPWxH</span></a></font></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><font face="monospace, monospace"><b style="font-weight:normal"><br></b></font></div></div></div></div>
</blockquote></div></div>
</blockquote></div></div>