From c35585303c48d0746234352cca0df3e1b9ff8fd3 Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Sun, 10 May 2020 13:52:32 +0200 Subject: [PATCH] media-gfx/iscan: fix building with boost 1.73 Closes: https://bugs.gentoo.org/721696 Signed-off-by: Marcin Deranek Closes: https://github.com/gentoo/gentoo/pull/15737 Signed-off-by: Andreas Sturmlechner --- .../iscan/files/iscan-3.62.0-boost-1.73.patch | 33 +++++++++++++++++++ media-gfx/iscan/iscan-3.62.0.ebuild | 1 + 2 files changed, 34 insertions(+) create mode 100644 media-gfx/iscan/files/iscan-3.62.0-boost-1.73.patch diff --git a/media-gfx/iscan/files/iscan-3.62.0-boost-1.73.patch b/media-gfx/iscan/files/iscan-3.62.0-boost-1.73.patch new file mode 100644 index 000000000000..d55a464823b8 --- /dev/null +++ b/media-gfx/iscan/files/iscan-3.62.0-boost-1.73.patch @@ -0,0 +1,33 @@ +diff -urN a/drivers/esci/verify.cpp b/drivers/esci/verify.cpp +--- a/drivers/esci/verify.cpp 2019-11-18 04:08:45.000000000 +0200 ++++ b/drivers/esci/verify.cpp 2020-05-09 20:22:00.899968638 +0300 +@@ -58,6 +58,7 @@ + + using namespace utsushi; + using namespace _drv_::esci; ++using namespace boost::placeholders; + + using std::basic_string; + using std::ios_base; +diff -urN a/lib/monitor.cpp b/lib/monitor.cpp +--- a/lib/monitor.cpp 2019-11-18 04:08:08.000000000 +0200 ++++ b/lib/monitor.cpp 2020-05-09 20:22:26.392174029 +0300 +@@ -49,6 +49,7 @@ + namespace utsushi { + + using boost::filesystem::exists; ++using namespace boost::placeholders; + + class monitor::impl + { +diff -urN a/sane/handle.cpp b/sane/handle.cpp +--- a/sane/handle.cpp 2019-11-18 04:08:08.000000000 +0200 ++++ b/sane/handle.cpp 2020-05-09 20:21:49.559223712 +0300 +@@ -65,6 +65,7 @@ + using utsushi::_flt_::deskew; + using utsushi::_flt_::autocrop; + using utsushi::_flt_::pnm; ++using namespace boost::placeholders; + + namespace sane { + diff --git a/media-gfx/iscan/iscan-3.62.0.ebuild b/media-gfx/iscan/iscan-3.62.0.ebuild index f5957958df9a..f01a67d24171 100644 --- a/media-gfx/iscan/iscan-3.62.0.ebuild +++ b/media-gfx/iscan/iscan-3.62.0.ebuild @@ -33,6 +33,7 @@ PATCHES=( "${FILESDIR}"/${PN}-3.61.0-ijg-libjpeg.patch "${FILESDIR}"/${PN}-3.61.0-imagemagick-7.patch "${FILESDIR}"/${PN}-3.62.0-gcc-10.patch + "${FILESDIR}"/${PN}-3.62.0-boost-1.73.patch ) src_prepare() { -- 2.26.2