diff options
author | Peter-Levine <plevine457@gmail.com> | 2017-05-11 01:05:59 -0400 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-05-19 00:25:42 +0200 |
commit | 2283a06a3813a77ce1e00e8f1539b05d2b5b3d90 (patch) | |
tree | 22a9d552e779b4db9dd1870c184bef772fe0d94c /net-libs/ptlib | |
parent | x11-drivers/nvidia-drivers: Raise kernel compatibility. (diff) | |
download | gentoo-2283a06a3813a77ce1e00e8f1539b05d2b5b3d90.tar.gz gentoo-2283a06a3813a77ce1e00e8f1539b05d2b5b3d90.tar.bz2 gentoo-2283a06a3813a77ce1e00e8f1539b05d2b5b3d90.zip |
net-libs/ptlib: Fix building with GCC-6
Bug: https://bugs.gentoo.org/595690
Closes: https://github.com/gentoo/gentoo/pull/4600
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'net-libs/ptlib')
-rw-r--r-- | net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch | 29 | ||||
-rw-r--r-- | net-libs/ptlib/ptlib-2.10.11.ebuild | 5 |
2 files changed, 32 insertions, 2 deletions
diff --git a/net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch b/net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch new file mode 100644 index 000000000000..140de64f16e4 --- /dev/null +++ b/net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch @@ -0,0 +1,29 @@ +--- a/src/ptlib/unix/svcproc.cxx ++++ b/src/ptlib/unix/svcproc.cxx +@@ -217,7 +217,7 @@ + pid_t pid; + + { +- ifstream pidfile(pidfilename); ++ ifstream pidfile(static_cast<const char*>(pidfilename)); + if (!pidfile.is_open()) { + cout << "Could not open pid file: \"" << pidfilename << "\"" + " - " << strerror(errno) << endl; +@@ -384,7 +384,7 @@ + // Run as a daemon, ie fork + + if (!pidfilename) { +- ifstream pidfile(pidfilename); ++ ifstream pidfile(static_cast<const char*>(pidfilename)); + if (pidfile.is_open()) { + pid_t pid; + pidfile >> pid; +@@ -412,7 +412,7 @@ + cout << "Daemon started with pid " << pid << endl; + if (!pidfilename) { + // Write out the child pid to magic file in /var/run (at least for linux) +- ofstream pidfile(pidfilename); ++ ofstream pidfile(static_cast<const char*>(pidfilename)); + if (pidfile.is_open()) + pidfile << pid; + else diff --git a/net-libs/ptlib/ptlib-2.10.11.ebuild b/net-libs/ptlib/ptlib-2.10.11.ebuild index eb76e20b1426..02495a8d0e38 100644 --- a/net-libs/ptlib/ptlib-2.10.11.ebuild +++ b/net-libs/ptlib/ptlib-2.10.11.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="5" @@ -60,7 +60,8 @@ src_prepare() { "${FILESDIR}/${PN}-2.10.9-pkgconfig_ldflags.patch" \ "${FILESDIR}/${PN}-2.10.9-respect_cxxflags.patch" \ "${FILESDIR}/${PN}-2.10.10-mga-bison-parameter.patch" \ - "${FILESDIR}/${PN}-2.10.10-respect_cflags_cxxflags.patch" + "${FILESDIR}/${PN}-2.10.10-respect_cflags_cxxflags.patch" \ + "${FILESDIR}/${P}-gcc6.patch" if ! use telnet; then epatch "${FILESDIR}/${PN}-2.10.9-disable-telnet-symbols.patch" |