From e7ea26f08a0d2a9b4c4f4c385a8c2488c073387c Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 12 Jul 2024 21:17:28 +0100 Subject: [PATCH 1/2] sci-chemistry/autodock_vina: fix build w/ boost-1.85 Closes: https://bugs.gentoo.org/932237 Signed-off-by: Sam James --- .../autodock_vina/autodock_vina-1.2.5.ebuild | 1 + .../autodock_vina-1.2.5-boost-1.85.patch | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 sci-chemistry/autodock_vina/files/autodock_vina-1.2.5-boost-1.85.patch diff --git a/sci-chemistry/autodock_vina/autodock_vina-1.2.5.ebuild b/sci-chemistry/autodock_vina/autodock_vina-1.2.5.ebuild index e9edf1f9c9913..a74066d3963a0 100644 --- a/sci-chemistry/autodock_vina/autodock_vina-1.2.5.ebuild +++ b/sci-chemistry/autodock_vina/autodock_vina-1.2.5.ebuild @@ -23,6 +23,7 @@ DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-boost-1.85.patch ) src_prepare() { diff --git a/sci-chemistry/autodock_vina/files/autodock_vina-1.2.5-boost-1.85.patch b/sci-chemistry/autodock_vina/files/autodock_vina-1.2.5-boost-1.85.patch new file mode 100644 index 0000000000000..55906b093a499 --- /dev/null +++ b/sci-chemistry/autodock_vina/files/autodock_vina-1.2.5-boost-1.85.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/932237 +--- a/src/lib/vina.h ++++ b/src/lib/vina.h +@@ -35,7 +35,6 @@ + #include + #include + #include +-#include // filesystem::basename + #include // hardware_concurrency // FIXME rm ? + #include + //#include +--- a/src/split/split.cpp ++++ b/src/split/split.cpp +@@ -30,7 +30,6 @@ + #include + #include + #include +-#include // filesystem::basename + + #include "file.h" + #include "parse_error.h" From c15580624df737dd8363b38ed59ac9018aa3def7 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 12 Jul 2024 21:23:06 +0100 Subject: [PATCH 2/2] media-gfx/sfftobmp: fix build w/ boost-1.85 Closes: https://bugs.gentoo.org/932281 Signed-off-by: Sam James --- .../files/sfftobmp-3.1.2-boost-1.85.patch | 63 +++++++++++++++++++ media-gfx/sfftobmp/sfftobmp-3.1.2-r3.ebuild | 11 ++-- 2 files changed, 67 insertions(+), 7 deletions(-) create mode 100644 media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost-1.85.patch diff --git a/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost-1.85.patch b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost-1.85.patch new file mode 100644 index 0000000000000..9fac138809227 --- /dev/null +++ b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost-1.85.patch @@ -0,0 +1,63 @@ +https://www.boost.org/doc/libs/1_85_0/libs/filesystem/doc/deprecated.html +--- a/src/cmdline.cpp ++++ b/src/cmdline.cpp +@@ -41,7 +41,6 @@ + #include + + #include +-#include + + #include + +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -41,7 +41,6 @@ + + #include + #include +-#include + + extern "C" + { +@@ -172,10 +171,10 @@ int main( int argc, char *argv[] ) + if (pathOutFileName.string().length()) { + // A fixed name was given, so use it as a base name + outPath = pathOutFileName; +- std::string orgExt = fs::extension(outPath); ++ std::string orgExt = outPath.extension().string(); + if (nFileCountOut > 1) { + sprintf(acNumber, "_%03d", nPage+1); +- outPath = fs::change_extension(outPath, acNumber); ++ outPath.replace_extension(acNumber); + if (orgExt.length()) { + std::string strTemp = outPath.string(); + strTemp += orgExt; +@@ -184,15 +183,15 @@ int main( int argc, char *argv[] ) + } + } else { + // Otherwise construct output filename from input filename +- outPath = pathOutDirectory / pathInFileName.leaf(); ++ outPath = pathOutDirectory / pathInFileName.filename(); + if (nFileCountOut > 1) { + sprintf(acNumber, "_%03d", nPage+1); +- outPath = fs::change_extension(outPath, acNumber); ++ outPath.replace_extension(acNumber); + std::string strTemp = outPath.string(); + strTemp += pOut->GetExtension(); + outPath = fs::path(strTemp); + } else { +- outPath = fs::change_extension(outPath, pOut->GetExtension()); ++ outPath.replace_extension(pOut->GetExtension()); + } + } + if (!proc.doOverwrite() && !((nPage > 0) && (nFileCountOut == 1)) && fs::exists(outPath)) { +--- a/src/output.cpp ++++ b/src/output.cpp +@@ -42,7 +42,6 @@ + #include + + #include +-#include + + #ifdef WIN32 + #include diff --git a/media-gfx/sfftobmp/sfftobmp-3.1.2-r3.ebuild b/media-gfx/sfftobmp/sfftobmp-3.1.2-r3.ebuild index 236b6a7b496a8..6b9a92e6cfc25 100644 --- a/media-gfx/sfftobmp/sfftobmp-3.1.2-r3.ebuild +++ b/media-gfx/sfftobmp/sfftobmp-3.1.2-r3.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit autotools flag-o-matic +inherit autotools MY_P=${PN}${PV//./_} @@ -19,7 +19,8 @@ KEYWORDS="amd64 ~hppa ppc x86" RDEPEND=" dev-libs/boost:= media-libs/libjpeg-turbo:= - media-libs/tiff:=" + media-libs/tiff:= +" DEPEND="${RDEPEND}" BDEPEND="app-arch/unzip" @@ -27,6 +28,7 @@ PATCHES=( "${FILESDIR}"/${PN}-3.1.1-gcc44-and-boost-1_37.patch "${FILESDIR}"/${PN}-3.1.2-boost_fs3.patch "${FILESDIR}"/${PN}-3.1.2-Wformat.patch + "${FILESDIR}"/${PN}-3.1.2-boost-1.85.patch ) src_prepare() { @@ -34,11 +36,6 @@ src_prepare() { eautoreconf } -src_configure() { - append-cppflags -DBOOST_FILESYSTEM_VERSION=3 - default -} - src_install() { default dodoc doc/{changes,credits,readme}