Open jimklimov opened 9 months ago
I think we should just document that pkg-config is required, look for it, and fail. From a packaging point of view, what we want is clear rules, and secondarily to avoid big dependencies if they aren't necessary. But pkg-config is tiny, and everything else needs it. If this needs qt5-something, that would be another matter!
Really this bug can be solved by documenting that pkg-config is required in the building instructions, and no more, IMHO.
Just ran into this and I agree! A quick add of pkg-config and compilation worked.
I am not sure it is ubiquitous, present on all platforms that NUT gets built for (including embedded like OpenWRT). This is why fallbacks to provide libs and includes (as configure
CLI arguments) for many of the detectable dependencies exist.
Also, for the past few years there is a pretty exhaustive docs/config-prereqs.txt
(also used as a chapter in larger docs) about needed packages on a number of platforms, based on the experience preparing NUT CI workers.
Originally posted by @galapogos01 in https://github.com/networkupstools/nut/issues/139#issuecomment-1742035112
TODO: See if there still is a
libusb-config
sort of script, perhaps by some other name. Or try more ways of detecting the library in m4 scripts (search for header and lib in standard paths, attempt to link?)