[Slackbuilds-users] Some necessary changes to build a newer version of gpsd

Max Miorim miorimmax at gmail.com
Tue Jun 22 02:45:32 UTC 2010

On Mon, Jun 21, 2010 at 11:37 PM, Niels Horn <niels.horn at gmail.com> wrote:
> On Mon, Jun 21, 2010 at 11:31 PM, Max Miorim <miorimmax at gmail.com> wrote:
>> On Mon, Jun 21, 2010 at 10:38 PM, Niels Horn <niels.horn at gmail.com> wrote:
>>> Hi,
>>> To build the latest version of gpsd (2.94), some small changes to the
>>> SlackBuild are necessary:
>>> 1) Change to configure script for Slackware64
>>> ---------------------------------------------
>>> The configure script uses a "hack" to discover the installed version of libusb.
>>> It does this by looking for libusb-*.so in /usr/lib
>>> On Slackware64 this file resides in /usr/lib64 so it is never found
>>> and building fails.
>>> The following line in the SlackBuild (after unpacking the sources) solves it:
>>> sed "s|/usr/lib/libusb|/usr/lib$LIBDIRSUFFIX/libusb|" -i configure
>> Using pkg-config for this seems less hacky to me:
>> max at willcrashforsure:~$ pkg-config --modversion libusb
>> 0.1.12
>> -- Max
> But it gives the wrong answer.
> The version needed is the version of the libusb-*.so file, which is 1.0
> Check the configure script of gpsd to see how it works.
> Niels

Oops that was the wrong libusb. :)

max at willcrashforsure:~$ pkg-config --modversion libusb-1.0

I'll take a look at it (the script) later, the point I was trying to
make is that pkg-config should be more reliable than looking for a
symlink/library lying somewhere. :)

-- Max

More information about the SlackBuilds-users mailing list