On Tue, Aug 26, 2014 at 1:55 PM, Scott Ritchie scottritchie@ubuntu.com wrote:
On Debian/Ubuntu, libpcap0.8-dev will need to be added to package build dependencies or a user will never be able to turn this feature on. This will cause Wine to statically link a dll, and for debhelper to then detect that static link, figure out it comes from the libpcap0.8 package, and add that dependency to the {$shlibs:Depends} substitution variable. This requires modifying the package rules file to override dh_shlibdeps to either 1) exclude calculating the particular DLL in question, or 2) manually remove libpcap0.8 afterwards.
Both those are fairly straightforward in deb-land. But, so is applying Andre's patch to a distro package. I don't know about tooling for other distros.
As an update for the Ubuntu packages, I have opted for modifying the package rules rather than patching wine. As a general rule I like to minimize the number of patches to upstream in my packages. I would still recommend applying Andre's patch upstream as it provides some consistency with the way the rest of Wine operates, but it's no big deal.