<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f661f9793d190f825ed10b1682ba373925a1d62d">https://github.com/macports/macports-ports/commit/f661f9793d190f825ed10b1682ba373925a1d62d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new f661f9793d1 qpdf: add missing include
</span>f661f9793d1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f661f9793d190f825ed10b1682ba373925a1d62d
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Thu Feb 10 22:15:45 2022 +1100
<span style='display:block; white-space:pre;color:#404040;'> qpdf: add missing include
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/64635
</span>---
textproc/qpdf/Portfile | 2 ++
textproc/qpdf/files/test_driver.cc.patch | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/qpdf/Portfile b/textproc/qpdf/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3b72eb238e3..851d07de429 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/qpdf/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/qpdf/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,6 +26,8 @@ depends_lib path:include/turbojpeg.h:libjpeg-turbo \
</span> port:libxslt \
port:zlib
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles test_driver.cc.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> compiler.cxx_standard 2014
platform darwin 8 {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/qpdf/files/test_driver.cc.patch b/textproc/qpdf/files/test_driver.cc.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ccae1f80b9c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/qpdf/files/test_driver.cc.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://trac.macports.org/ticket/64635
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- qpdf/test_driver.cc.orig 2022-02-09 21:47:58.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ qpdf/test_driver.cc 2022-02-10 22:14:02.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -22,6 +22,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <qpdf/QIntC.hh>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <qpdf/QPDFJob.hh>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <qpdf/QPDFUsage.hh>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <cmath>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <iostream>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sstream>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <algorithm>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3293,11 +3294,11 @@ static void test_85(QPDF& pdf, char cons
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ assert(s == "42.0");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ double num = 0.0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ assert(oh_i.getValueAsNumber(num));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- assert(abs(num - 1.0) < 1e-100);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ assert(std::abs(num - 1.0) < 1e-100);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ assert(oh_r.getValueAsNumber(num));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- assert(abs(num - 42.0) < 1e-100);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ assert(std::abs(num - 42.0) < 1e-100);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ assert(! oh_b.getValueAsNumber(num));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- assert(abs(num - 42.0) < 1e-100);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ assert(std::abs(num - 42.0) < 1e-100);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ s = "";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ assert(oh_n.getValueAsName(s));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ assert(s == "/Test") ;
</span></pre><pre style='margin:0'>
</pre>