On Thu, Jan 19, 2006 at 06:11:10PM +0300, Alex Kanavin wrote:
> On Thu, 19 Jan 2006, Marcel Holtmann wrote:
> 
> >>So you can force USB support in openobex with --with-usb, even there is no
> >>libusb.pc? Then I have no problem. Someone should document this in a wiki
> >>perhaps.
> >
> >no you can't. You can only specify another ${usb_prefix}, but you still
> >need a libusb.pc in that installation prefix.
> 
> Would it be okay to add --force-usb then which would skip that 
> requirement? Most distributions ship with stock libusb that doesn't have 
> libusb.pc, and it's not known when there will be a new version. Until 
> then, you have to let people use and, more importantly, test USB 
> functionality somehow, without forcing them to patch and recompile libusb.

I agree with Alexander. On my first suggestion I supposed that requiring
pkg-config to build openobex would be acceptable. Please, don't beat me.  8)

What if we do something like:

# libusb doesn't support pkg-config on some versions, so don't
# add the dependency if pkg-config doesn't know about libusb
if pkg-config libusb;then  # or any other test that wouldn't break if 
pkg-config isn't available
        REQUIRES="$REQUIRES libusb"
fi


It seems that making a package pkg-config-aware but not depend on
pkg-config isn't trivial.  :(

I am starting to agree that it is better not support
libusb-without-pkg-config on openobex.pc.

-- 
Eduardo

Attachment: pgpNzW1lOxs2d.pgp
Description: PGP signature

Reply via email to