amule: update and fix build on gcc47

This commit is contained in:
Vladimír Čunát 2013-03-17 10:15:03 +01:00
parent 90fc42c2f2
commit 7cb4d92bec
2 changed files with 26 additions and 3 deletions

View File

@ -12,17 +12,19 @@ let
edf = enabled: flag: if enabled then "--enable-" + flag else "--disable-" + flag;
in
mkDerivation rec {
name = "aMule-2.2.6";
name = "aMule-2.3.1";
src = fetchurl {
url = "mirror://sourceforge/amule/${name}.tar.bz2";
sha256 = "08l1931hcg1ia8yvhgx70hx64mknjnfn6l78m0ja44w13mgjpqvc";
url = "mirror://sourceforge/amule/${name}.tar.xz";
sha256 = "0hvpx3c005nvxsfand5bwfxxiq3mv0mpykajfm2lkygjh1rw2383";
};
buildInputs =
[ zlib wxGTK perl cryptopp libupnp gettext pkgconfig makeWrapper ]
++ lib.optional httpServer libpng;
patches = [ ./gcc47.patch ]; # from Gentoo
configureFlags = ''
--with-crypto-prefix=${cryptopp}
--disable-debug

View File

@ -0,0 +1,21 @@
# http://code.google.com/p/amule/source/detail?r=10772
diff -ur aMule-2.3.1.orig//src/ObservableQueue.h aMule-2.3.1/src/ObservableQueue.h
--- aMule-2.3.1.orig//src/ObservableQueue.h 2012-04-22 19:40:05.560084120 +0200
+++ aMule-2.3.1/src/ObservableQueue.h 2012-04-22 19:40:32.479085322 +0200
@@ -331,14 +331,14 @@
template <typename ValueType>
void CObservableQueue<ValueType>::ObserverAdded( ObserverType* o )
{
- NotifyObservers( EventType( EventType::STARTING ), o );
+ this->NotifyObservers( EventType( EventType::STARTING ), o );
}
template <typename ValueType>
void CObservableQueue<ValueType>::ObserverRemoved( ObserverType* o )
{
- NotifyObservers( EventType( EventType::STOPPING ), o );
+ this->NotifyObservers( EventType( EventType::STOPPING ), o );
}