libusb include path hardcoded, breaking cross builds

Bug #1906257 reported by Luiz Angelo Daros de Luca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

Hello,

While doing crossbuiling, hplip tries to use includes from host /usr/include/libusb and not from the target directories.

 Makefile.am:
 -libhpmud_la_CFLAGS += -I/usr/include/libusb-1.0

A better way to detect libusb could be inspired by this patch:

https://github.com/neheb/packages/blob/da62d7b7a067e7bc2a9d629c7e212f84d97f362b/utils/hplip/patches/010-libusb_fix.patch

I know that cross building might not be a priority for hplip but I will also help those who use a "not standard" /usr/include path.

Revision history for this message
Luiz Angelo Daros de Luca (luizluca) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.