diff options
author | Sam James <sam@gentoo.org> | 2024-07-12 22:16:12 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-07-12 22:16:12 +0100 |
commit | 99616548f7b7246aba0069ed9de67060cf2b6b62 (patch) | |
tree | 88a939e58a0024f81a3bbb6fffaf04bbb321b329 /net-im | |
parent | games-board/pokerth: fix build w/ boost-1.85 (diff) | |
download | gentoo-99616548f7b7246aba0069ed9de67060cf2b6b62.tar.gz gentoo-99616548f7b7246aba0069ed9de67060cf2b6b62.tar.bz2 gentoo-99616548f7b7246aba0069ed9de67060cf2b6b62.zip |
net-im/swift: build fixes
* Fix build with ICU-75.1 by building with C++17 instead of C++11 (bug #933871)
* Fix build with >=net-libs/miniupnpc-2.2.8 (bug #934054), thanks to
Bill Prendergast <dek.devel@baisenvar.info> for the patch.
Closes: https://bugs.gentoo.org/933871
Closes: https://bugs.gentoo.org/934054
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/swift/files/swift-4.0.3-miniupnpc.patch | 24 | ||||
-rw-r--r-- | net-im/swift/swift-4.0.3-r2.ebuild | 4 |
2 files changed, 28 insertions, 0 deletions
diff --git a/net-im/swift/files/swift-4.0.3-miniupnpc.patch b/net-im/swift/files/swift-4.0.3-miniupnpc.patch new file mode 100644 index 000000000000..db717ff1213b --- /dev/null +++ b/net-im/swift/files/swift-4.0.3-miniupnpc.patch @@ -0,0 +1,24 @@ +https://bugs.gentoo.org/934054 + +From: Bill Prendergast <dek.devel@baisenvar.info> + +Fix build with newer net-libs/miniupnpc (API 18) +--- a/Swiften/Network/MiniUPnPInterface.cpp ++++ b/Swiften/Network/MiniUPnPInterface.cpp +@@ -45,9 +45,16 @@ MiniUPnPInterface::MiniUPnPInterface() : p(new Private()) { + } + + char lanAddress[64]; ++#if MINIUPNPC_API_VERSION > 17 ++ char wanAddress[64]; ++ if (!UPNP_GetValidIGD(p->deviceList, &p->urls, &p->data, lanAddress, sizeof(lanAddress), wanAddress, sizeof(wanAddress))) { ++ return; ++ } ++#else + if (!UPNP_GetValidIGD(p->deviceList, &p->urls, &p->data, lanAddress, sizeof(lanAddress))) { + return; + } ++#endif + p->localAddress = std::string(lanAddress); + p->isValid = true; + } diff --git a/net-im/swift/swift-4.0.3-r2.ebuild b/net-im/swift/swift-4.0.3-r2.ebuild index 792b487871ed..8a2cbafdea9e 100644 --- a/net-im/swift/swift-4.0.3-r2.ebuild +++ b/net-im/swift/swift-4.0.3-r2.ebuild @@ -61,6 +61,7 @@ PATCHES=( "${FILESDIR}"/${PN}-4.0.3-libxml2-2.12-compatibility.patch "${WORKDIR}"/${PN}-4.0.3-python3-compatibility.patch "${FILESDIR}"/${PN}-4.0.3-reproducible-build.patch + "${FILESDIR}"/${PN}-4.0.3-miniupnpc.patch ) pkg_setup() { @@ -77,6 +78,9 @@ src_prepare() { # Use correct LIBDIR for Lua sed -e "s/lib/$(get_libdir)/g" -i Sluift/SConscript.variant || die + # bug #933871 + sed -i -e 's:c++11:c++17:g' BuildTools/SCons/SConscript.boot || die + # Hack for finding Qt system libs mkdir "${T}"/qt || die ln -s "${EPREFIX}"/usr/$(get_libdir)/qt5/bin "${T}"/qt/bin || die |