<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 4:03 PM, Grazvydas Ignotas <span dir="ltr"><<a href="mailto:notasas@gmail.com" target="_blank">notasas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, Mar 20, 2017 at 9:43 PM, Pohjolainen, Topi<br>
<<a href="mailto:topi.pohjolainen@gmail.com">topi.pohjolainen@gmail.com</a>> wrote:<br>
> On Mon, Mar 20, 2017 at 04:45:22PM +0000, Emil Velikov wrote:<br>
>> On 20 March 2017 at 10:27, Grazvydas Ignotas <<a href="mailto:notasas@gmail.com">notasas@gmail.com</a>> wrote:<br>
>> > On Mon, Mar 20, 2017 at 11:28 AM, Topi Pohjolainen<br>
>> > <<a href="mailto:topi.pohjolainen@gmail.com">topi.pohjolainen@gmail.com</a>> wrote:<br>
>> >> Recent change to use drmGetDevices2() made me realize that<br>
>> >> build configured using<br>
>> >><br>
>> >> PKG_CONFIG_PATH=my_drm_lib_<wbr>path/pkgconfig ./autogen.sh<br>
>> >><br>
>> >> considers the libdrm path gotten from pkgconfig only during<br>
>> >> make. When invoking "make install" the relink command puts<br>
>> >> system library ahead of the path gotten from pkgconfig<br>
>> >> (and starts to fail as system libdrm isn't new enough).<br>
>> >><br>
>> >> This change forces the relink command to respect pkgconfig<br>
>> >> settings.<br>
>> ><br>
>> > Nice, this issue is really annoying, and using Emil's workarounds from<br>
>> > bug 100259 is cumbersome.<br>
>> Indeed they are - too many bugs to get around to sorting libtool, I'm afraid :-\<br>
>><br>
>> > Tested-by: Grazvydas Ignotas <<a href="mailto:notasas@gmail.com">notasas@gmail.com</a>><br>
>> ><br>
>> >><br>
>> >> It looks to me that in<br>
>> >><br>
>> >> <a href="https://bugs.freedesktop.org/show_bug.cgi?id=100259" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=100259</a><br>
>> >><br>
>> >> Emil et al are discussing similar case with gbm.<br>
>> >><br>
>> >> CC: Matt Turner <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>><br>
>> >> CC: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
>> >> Signed-off-by: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>><br>
>> >> ---<br>
>> >>  src/glx/Makefile.am | 1 +<br>
>> >>  1 file changed, 1 insertion(+)<br>
>> >><br>
>> >> diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am<br>
>> >> index 79d416a..ced5227 100644<br>
>> >> --- a/src/glx/Makefile.am<br>
>> >> +++ b/src/glx/Makefile.am<br>
>> >> @@ -175,6 +175,7 @@ GL_LIB_VERSION=1:2<br>
>> >>  endif<br>
>> >><br>
>> >>  GL_LIBS = \<br>
>> >> +       $(LIBDRM_LIBS) \<br>
>> If we are to do this, please add a comment - "HACK" or "W/A" with why<br>
>> we need it/how it works.<br>
>> This way we can purge it in a few months as distros catch up ;-)<br>
><br>
> Shouldn't there be something of this sort in general? Build system should<br>
> respect the configuration gotten from pkgconfig, right?<br>
><br>
> And isn't libdrm upstream almost always ahead of distros. Once distros reach<br>
> 2.4.75 libdrm, upstream is likely to have moved forward, don't you think?<br>
><br>
> I can keep this patch in my private tree to make it work for me in case there<br>
> aren't other people needing it.<br>
<br>
</div></div>If I wasn't clear enough, there is at least one person.<br></blockquote><div><br></div><div>This hit me a few nights ago as well. I eventually ended up forcibly upgrading the system libdrm to a newer version, but it was annoying that the libdrm I've got in /usr/local was being used during compile, but ignored during the relink during 'make install' (after the entire build and make check had already succeeded).<br><br></div><div>I agree that this is something that WILL happen again, and we might as well get the install target to use the same settings as the build itself.<br><br></div><div>I can try to test this later today (either remotely, or after I get home), if we need another guinea pig.<br><br></div><div>--Aaron<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Gražvydas<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div></div>