testing/amule: fix build with gcc11

This commit is contained in:
psykose 2022-02-04 10:37:58 +00:00
parent a2a6b4dcf9
commit 92632169a7
2 changed files with 17 additions and 2 deletions

View File

@ -12,7 +12,9 @@ makedepends="bison boost-dev crypto++-dev gd-dev geoip-dev libsm-dev libupnp-dev
wxgtk3-dev"
options="!check" # unexpected end of file
subpackages="$pkgname-lang $pkgname-doc"
source="$_pkgname-$pkgver.tar.xz::https://downloads.sourceforge.net/project/amule/aMule/2.3.3/aMule-$pkgver.tar.xz"
source="$_pkgname-$pkgver.tar.xz::https://downloads.sourceforge.net/project/amule/aMule/2.3.3/aMule-$pkgver.tar.xz
fix-gcc11-include.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
@ -49,4 +51,7 @@ package() {
make DESTDIR="$pkgdir" install
}
sha512sums="a5a80c5ddd1e107d92070c1d8e232c2762c4c54791abc067c739eef7c690062ed164dd7733808f80c762719261162aeb3d602308964dda2670a0bb059d87b74e aMule-2.3.3.tar.xz"
sha512sums="
a5a80c5ddd1e107d92070c1d8e232c2762c4c54791abc067c739eef7c690062ed164dd7733808f80c762719261162aeb3d602308964dda2670a0bb059d87b74e aMule-2.3.3.tar.xz
ce5e35ad33a188358dc311df06a2357dba52b5905f345dcba0fb44337ee1a1314579e918cb4e0cc60818a39d5c4678321262e9d6b1e17fe800fda55a5def1976 fix-gcc11-include.patch
"

View File

@ -0,0 +1,10 @@
--- a/src/libs/common/MuleDebug.cpp
+++ b/src/libs/common/MuleDebug.cpp
@@ -24,6 +24,7 @@
//
#include <cstdlib> // Needed for std::abort()
+#include <exception>
#include "config.h" // Needed for HAVE_CXXABI and HAVE_EXECINFO