<pre style='margin:0'>
Jeremy Huddleston Sequoia (jeremyhu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2cfa81183291bcc5ce4e6927cf1944229c14391d">https://github.com/macports/macports-ports/commit/2cfa81183291bcc5ce4e6927cf1944229c14391d</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 2cfa811 bison: Don't use %n in dynamic format strings passed to the host Libc
</span>2cfa811 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 2cfa81183291bcc5ce4e6927cf1944229c14391d
</span>Author: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
AuthorDate: Sat Mar 4 15:54:10 2017 -0800
<span style='display:block; white-space:pre;color:#404040;'> bison: Don't use %n in dynamic format strings passed to the host Libc
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This is a hack. Instructions for fixing this correctly are provided
</span><span style='display:block; white-space:pre;color:#404040;'> in a comment in the Portfile.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
</span>---
devel/bison/Portfile | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/bison/Portfile b/devel/bison/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d4fc1d1..63575fd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/bison/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/bison/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,7 +8,9 @@ subport bison-runtime {}
</span> epoch 1
version 3.0.4
if {${subport} eq "bison"} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 1
</span> }
categories devel
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -55,6 +57,21 @@ checksums rmd160 414959f3d619d8e4875e241ee02852b2ff13c2cb \
</span>
configure.args --disable-silent-rules
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # This is a reinplace hack simply because I am unable to look a the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # current (GPLv3) source to come up with a proper fix. This hack was
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # derived by looking at the last GPLv2 version and making a guess that
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # this workaround would be successful. If someone able to look at GPLv3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # code wants to come up with a proper fix, note that the solution is to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # not pass %n in dynamic strings to snprintf (rather than completely
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # disabling it). There is likely some code to control that already
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # since multiple Libcs (including glibc) disallow the usage of %n in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # dynamic strings.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "/define USE_SNPRINTF/s/USE_SNPRINTF.*$/USE_SNPRINTF 0/" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/lib/vasnprintf.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {${subport} eq "bison-runtime"} {
build.dir ${worksrcpath}/runtime-po
livecheck.type none
</pre><pre style='margin:0'>
</pre>