Comment 38 for bug 244670

Revision history for this message
Oibaf (oibaf) wrote : Re: [Bug 244670] Re: [hardy] Request of update of aMule to 2.2.2 final release

Citando Surfaz Gemon Meme <email address hidden>:

> http://changelogs.ubuntu.com/changelogs/pool/universe/a/amule/amule_2.2.0~svn20080218-0ubuntu4/changelog
>
> " * debian/control:
> - Do not build-depend on libupnp-dev as the headers needed are shipped
> by upstream and not used from the system, and make amule depend on
> libupnp2 as it uses dlopen() to call the library.
> Changes taken from the Debian package, thanks to Adeodato Simó
> for letting me know about this."

OK, older version of amule didn't Build-Depends on the libupnp*-dev packages (but Depends on binary version of libupnp).

> And see this: http://www.mail-archive.com/debian-bugs-
> <email address hidden>/msg596361.html
>
> "It seems from version 2.2.2 on, aMules configure is able to correctly detect
> the presence of libupnp3-dev and use it accordingly.
>
> Earlier versions (=< 2.2.1) seem to try to unconditionally dlopen()
> libupnp.so.3, but the version from experimental does it right by checking at
> compile time, if the library is available.
>
> Please apply attached patch to correctly use libupnp3, as current version
> in experimental depends on libupnp3 but the binary does not use it, because
> libupnp3-dev was not present during build."

 From 2.2.2 amule appears to be able to link to libupnp at build time, so libupnp3-dev was added to Build-Depends (and libupnp3 removed from explicit Depends). Apparently 2.2.2 only support libupnp linked during built time and not dlopened, see comments from 2008-11-07 of:
https://bugs.launchpad.net/ubuntu/+source/amule/+bug/201624