Package: megaglest Version: 3.7.1-3.1 Severity: important Tags: patch Dear package maintainer,
Please apply attached patch, so that megaglest can build against the version of MiniUPnP client currently in experimental. Please upload it ASAP so that we can do the transition. Note that I have tested the patch, and megaglest built fine with it. However, I didn't check/test for the UPnP functionality. Cheers, Thomas Goirand (zigo)
Description: Allow build with newer libminiupnpc10 The API changed, this fixes the calls. Author: Thomas Goirand <z...@debian.org> Forwarded: no Last-Update: 2014-06-11 --- megaglest-3.7.1.orig/source/shared_lib/sources/platform/posix/socket.cpp +++ megaglest-3.7.1/source/shared_lib/sources/platform/posix/socket.cpp @@ -2478,13 +2478,21 @@ int UPNP_Tools::upnp_init(void *param) { if(SystemFlags::VERBOSE_MODE_ENABLED) printf("UPnP device found: %s %s\n", dev->descURL, dev->st); //printf("UPnP device found: [%s] [%s] lanaddr [%s]\n", dev->descURL, dev->st,lanaddr); +#if defined(MINIUPNPC_API_VERSION) && MINIUPNPC_API_VERSION > 8 + descXML = (char *)miniwget_getaddr(dev->descURL, &descXMLsize, lanaddr, (sizeof(lanaddr) / sizeof(lanaddr[0])), 0); +#else descXML = (char *)miniwget_getaddr(dev->descURL, &descXMLsize, lanaddr, (sizeof(lanaddr) / sizeof(lanaddr[0]))); +#endif if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"LAN address: %s\n", lanaddr); if (descXML) { parserootdesc (descXML, descXMLsize, &data); free (descXML); descXML = 0; +#if defined(MINIUPNPC_API_VERSION) && MINIUPNPC_API_VERSION > 8 + GetUPNPUrls (&urls, &data, dev->descURL, 0); +#else GetUPNPUrls (&urls, &data, dev->descURL); +#endif } snprintf(buf, 255,"UPnP device found: %s %s LAN address %s", dev->descURL, dev->st, lanaddr);