Comment 15 for bug 949912

Revision history for this message
Reinhard Tartler (siretart) wrote : Re: [Bug 949912] Re: libpcsclite1 is not compatible with multiarch

On Fri, Apr 13, 2012 at 18:28:48 (CEST), Steve Langasek wrote:

> On Fri, Apr 13, 2012 at 07:26:00AM -0000, Reinhard Tartler wrote:
>> The change for this task is not complete yet. The libpcsclite-
>> dev_1.7.4-2ubuntu2_amd64.deb installs a .la file with these contents:
>
>> [...]
>> # Directory that this library needs to be installed in:
>> libdir='/usr/lib'
>
>> That directory is wrong. Either it should read correctly, ot this file
>> should be removed.
>
> What, practically speaking, is the impact of this field being wrong here?
> I don't think it's correct to say that libpcsclite1 is still "not compatible
> with multiarch". Shouldn't this be tracked as a new bug?

I noticed that a driver, which uses libtool to link against libpcsclite,
"suddently" gained an rpath to a very weird path. Libtool uttered a
"warning: library libpcsclite.la was moved" and decided to add the
rpath. removing the .la solved the issue.

> On Fri, Apr 13, 2012 at 03:21:54PM -0000, Reinhard Tartler wrote:
>> Also, I think the .pc file is wrong:
>
>> >> grep '/lib' /usr/lib/x86_64-linux-gnu/pkgconfig/libpcsclite.pc
>> prefix=/usr
>> libdir=${exec_prefix}/lib
>> usbdropdir=/usr/lib/pcsc/drivers
>
>> Obviously, libdir need to be adjusted.
>
>> Moreover, I think the usbdropdir should be moved in order to allow pcsc
>> drivers for different architectures to be installed.
>
> It probably should, yes, but that's a secondary issue. So far no one has
> been asking for multiarch usability of libpcsclite1, only
> installability.

As Ludovic indicates, we should not modify usbdropdir. However, the
issue with libdir still stands, and I still do believe that this is in
scope of this particular bug.

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4