pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/54903: devel/libusb-compat configuration fails on FreeBSD



The following reply was made to PR pkg/54903; it has been noted by GNATS.

From: Frederic Fauberteau <triaxx%NetBSD.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/54903: devel/libusb-compat configuration fails on FreeBSD
Date: Wed, 7 Oct 2020 19:01:28 +0200

 Actually, the problem is not as easy to solve as I could let it think in my previous mail.
 
 I have the feeling that devel/libusb1/builtin.mk produces an invalid .pc file because:
 * LIBUSB_PREFIX is not defined
 * BUILTIN_VERSION.libusb1 is not defined since PKGCONFIG_FILE.libusb1 is not defined
 
 To fix the PR, I could define PKGCONFIG_FILE.libusb1= /usr/libdata/pkgconfig/libusb-1.0.pc but the path is different on other systems.
 
 The solution of generating a .pc file seems to be complicated because the version is defined in /usr/include/libusb.h in the following manner:
 /* Internally, LIBUSB_API_VERSION is defined as follows:
  * (libusb major << 24) | (libusb minor << 16) | (16 bit incremental) */
 #define LIBUSB_API_VERSION 0x01000102
 
 Is there an objection if I try to add mk/buildlink3/find-pcfiles.mk in which we could define:
 BUILTIN_PKGCONFIG_DIRS?= /usr/lib/pkgconfig \
                          /usr/libdata/pkgconfig \
                          /usr/lib/x86_64-linux-gnu/pkgconfig
 


Home | Main Index | Thread Index | Old Index