diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2009-03-21 08:07:43 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2009-03-21 08:07:43 +0800 |
commit | d27b1676a1653bc444626be808728d0f02b9f228 (patch) | |
tree | d2de902b77855b06f744b0fe1c02adafdbce0dca /dns | |
parent | e27de3ab5ee8ee03d33450fa6d91b945cbfe5e2a (diff) | |
download | freebsd-ports-gnome-d27b1676a1653bc444626be808728d0f02b9f228.tar.gz freebsd-ports-gnome-d27b1676a1653bc444626be808728d0f02b9f228.tar.zst freebsd-ports-gnome-d27b1676a1653bc444626be808728d0f02b9f228.zip |
- Add patches to fix build with upcoming boost 1.37.0
Approved by: Sten Spans <sten at blinkenlights dot nl> (maintainer)
Diffstat (limited to 'dns')
-rw-r--r-- | dns/powerdns-recursor/files/patch-lwres.cc | 11 | ||||
-rw-r--r-- | dns/powerdns-recursor/files/patch-pdns_recursor.cc | 65 |
2 files changed, 76 insertions, 0 deletions
diff --git a/dns/powerdns-recursor/files/patch-lwres.cc b/dns/powerdns-recursor/files/patch-lwres.cc new file mode 100644 index 000000000000..4655d4028a0d --- /dev/null +++ b/dns/powerdns-recursor/files/patch-lwres.cc @@ -0,0 +1,11 @@ +--- lwres.cc.orig 2008-06-24 22:23:33.000000000 +0400 ++++ lwres.cc 2009-03-19 23:25:35.000000000 +0300 +@@ -181,7 +181,7 @@ + + return 1; + } +- catch(exception &mde) { ++ catch(std::exception &mde) { + if(::arg().mustDo("log-common-errors")) + L<<Logger::Notice<<"Unable to parse packet from remote server "<<ip.toString()<<": "<<mde.what()<<endl; + } diff --git a/dns/powerdns-recursor/files/patch-pdns_recursor.cc b/dns/powerdns-recursor/files/patch-pdns_recursor.cc new file mode 100644 index 000000000000..234ab9f95f7b --- /dev/null +++ b/dns/powerdns-recursor/files/patch-pdns_recursor.cc @@ -0,0 +1,65 @@ +--- pdns_recursor.cc.orig 2008-06-24 22:23:33.000000000 +0400 ++++ pdns_recursor.cc 2009-03-19 23:27:01.000000000 +0300 +@@ -666,7 +666,7 @@ + catch(MOADNSException& e) { + L<<Logger::Error<<"DNS parser error: "<<dc->d_mdp.d_qname<<", "<<e.what()<<endl; + } +- catch(exception& e) { ++ catch(std::exception& e) { + L<<Logger::Error<<"STL error: "<<e.what()<<endl; + } + catch(...) { +@@ -1183,7 +1183,7 @@ + s_rcc.send(answer, &remote); + command(); + } +- catch(exception& e) { ++ catch(std::exception& e) { + L<<Logger::Error<<"Error dealing with control socket request: "<<e.what()<<endl; + } + catch(AhuException& ae) { +@@ -1486,7 +1486,7 @@ + SyncRes::s_negcache.clear(); + return "ok\n"; + } +- catch(exception& e) { ++ catch(std::exception& e) { + L<<Logger::Error<<"Had error reloading zones, keeping original data: "<<e.what()<<endl; + } + catch(AhuException& ae) { +@@ -1525,7 +1525,7 @@ + string tmp=DNSRR2String(rr); + rr=String2DNSRR(rr.qname, rr.qtype, tmp, rr.ttl); + } +- catch(exception &e) { ++ catch(std::exception &e) { + throw AhuException("Error parsing record '"+rr.qname+"' of type "+rr.qtype.getName()+" in zone '"+headers.first+"' from file '"+headers.second+"': "+e.what()); + } + catch(...) { +@@ -1647,7 +1647,7 @@ + } + } + } +- catch(exception& e) { ++ catch(std::exception& e) { + L<<Logger::Error<<"Retaining current script, error from '"<<fname<<"': "<< e.what() <<endl; + return string("Retaining current script, error from '"+fname+"': "+string(e.what())+"\n"); + } +@@ -1771,7 +1771,7 @@ + } + + } +- catch(exception &e) { ++ catch(std::exception &e) { + L<<Logger::Error<<"Failed to load 'lua' script from '"<<::arg()["lua-dns-script"]<<"': "<<e.what()<<endl; + exit(99); + } +@@ -2060,7 +2060,7 @@ + L<<Logger::Error<<"Exception: "<<ae.reason<<endl; + ret=EXIT_FAILURE; + } +- catch(exception &e) { ++ catch(std::exception &e) { + L<<Logger::Error<<"STL Exception: "<<e.what()<<endl; + ret=EXIT_FAILURE; + } |