Hi Jon, Achim,

Jon Turney wrote:
On 01/02/2022 06:20, ASSI wrote:
Mark Geisert writes:
I see that 'mtr' is another Cygwin package that makes use of a Windows
driver via libpcap.  Maybe I can use mtr.cygport etc as a guide; I'm
unsure whether a Cygwin package should be including Windows drivers.

No they should not, although there is at least one other package (libusb
IIRC) that requires non-standard Windows drivers for functioning fully
or correctly.  How to present that requirement in setup is another
question.

The 'message:' line in the .hint file (see [1]) can be used for a related purpose of telling people that Windows drivers are needed, although in fact this is only used by libusb0 at the moment.

Actually checking for those being installed generically in setup seems fraught. But I guess you could write a postinstall script which checks somehow for it's presence and fails if it's not present?

[1] https://cygwin.com/packaging-hint-files.html

I had seen "message:" there on [1] and tried once to make use of it, but failed. From reading cygport's pkg_pkg.cygpart, it seemed to me that a 'MESSAGE="foo"' line in the cygfuse.cygport file should cause a 'message: cygfuse "foo"' to be emitted to the .hint file. That didn't seem to happen. Maybe I goofed.

I then thought about manually adding the "message: ..." line, but then realized I had two full 75-char lines of info to display and did not know if that was too big or what it would look like. I dropped the idea for the time being and went with an Overview section on the package update announcement instead.

I should look at libusb.cygport; thanks Achim for that reminder.
Regards,

..mark

Reply via email to