Opened 8 years ago
Closed 8 years ago
#51988 closed update (fixed)
ansible @2.1.0.0.1 new upstream version 2.1.1.0-1 is available
Reported by: | lpancescu (Laurențiu Păncescu) | Owned by: | adfernandes (Andrew Fernandes) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | blair (Blair Zajac), steenzout (Pedro Salgado) | |
Port: | ansible |
Description
Could you please upgrade the Ansible port to 2.1.1.0-1? It fixes a bug preventing the synchronize module from working properly when using it with Vagrant boxes (https://github.com/ansible/ansible/issues/16284).
Thanks!
Change History (5)
comment:1 Changed 8 years ago by mf2k (Frank Schima)
Cc: | adfernandes@… removed |
---|---|
Owner: | changed from macports-tickets@… to adfernandes@… |
Version: | 2.3.4 |
comment:2 Changed 8 years ago by adfernandes (Andrew Fernandes)
comment:3 Changed 8 years ago by lpancescu (Laurențiu Păncescu)
Thanks, I appreciate the effort!
Is that code trying to use /usr/bin/sed to patch a binary archive? Apple's sed defaults to expecting UTF-8 - I assume it tries to read the binary data as an UTF-8 stream, and it fails decoding it. If that's the case, sed should probably be forced to treat the input stream as binary data; I assume invoking it as 'LANG=C LC_ALL=C sed' should be enough, but I haven't tested it.
comment:4 Changed 8 years ago by larryv (Lawrence Velázquez)
That’s an unorthodox file to be patching, to say the least. You can try tweaking the patch phase:
-
dports/sysutils/ansible/Portfile
diff --git a/dports/sysutils/ansible/Portfile b/dports/sysutils/ansible/Portfile index 44c6325..dd5b4a9 100644
a b post-fetch { 50 50 patch { 51 51 fs-traverse f ${worksrcpath} { 52 52 if {[file isfile ${f}] && ![regexp {\.(ico|png|eot|ttf|woff|reg)$} ${f} match] && ![regexp {\.git} ${f} match] && ![regexp {v2/test/test.yml} ${f} match]} { 53 reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}54 reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}53 reinplace -locale C "s#/etc/ansible#${prefix}/etc/ansible#g" ${f} 54 reinplace -locale C "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f} 55 55 } 56 56 } 57 57 }
comment:5 Changed 8 years ago by adfernandes (Andrew Fernandes)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Yes, I can't recall why all the reinplace
stuff... but I didn't like forcing the locale because upstream is pretty good about keeping up UTF-8 support.
Turns out the solution is just to add .gz
to one of the ignored file extensions.
Fixed in r151238
Okay - working on it. A bit of testing and patching is needed since there's a non-ASCII test that fails:
It will take a day or so for me to get around to it, though!