[MacPorts] #51988: ansible @2.1.0.0.1 new upstream version 2.1.1.0-1 is available
#51988: ansible @2.1.0.0.1 new upstream version 2.1.1.0-1 is available -------------------------+-------------------------------- Reporter: lpancescu@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: ansible -------------------------+-------------------------------- 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! -- Ticket URL: <https://trac.macports.org/ticket/51988> MacPorts <https://www.macports.org/> Ports system for OS X
#51988: ansible @2.1.0.0.1 new upstream version 2.1.1.0-1 is available --------------------------+--------------------------- Reporter: lpancescu@… | Owner: adfernandes@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: ansible | --------------------------+--------------------------- Changes (by mf2k@…): * cc: adfernandes@… (removed) * owner: macports-tickets@… => adfernandes@… * version: 2.3.4 => -- Ticket URL: <https://trac.macports.org/ticket/51988#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51988: ansible @2.1.0.0.1 new upstream version 2.1.1.0-1 is available --------------------------+--------------------------- Reporter: lpancescu@… | Owner: adfernandes@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: ansible | --------------------------+--------------------------- Comment (by adfernandes@…): Okay - working on it. A bit of testing and patching is needed since there's a non-ASCII test that fails: {{{ DEBUG: euid/egid changed to: 0/0 DEBUG: chowned /opt/local/var/macports/build/_Users_andrew_Local_dports_sysutils_ansible/ansible/work/ansible-2.1.1.0-1/test/integration/roles/test_unarchive/files/foo.txt to macports DEBUG: euid/egid changed to: 502/20 DEBUG: euid/egid changed to: 0/0 DEBUG: setting attributes on /opt/local/var/macports/build/_Users_andrew_Local_dports_sysutils_ansible/ansible/work/ansible-2.1.1.0-1/test/integration/roles/test_unarchive/files/foo.txt DEBUG: euid/egid changed to: 502/20 ---> Patching test-unarchive-nonascii-àâæçéèïîôœ.tar.gz: s#/etc/ansible#/opt/local/etc/ansible#g DEBUG: Executing reinplace: /usr/bin/sed s#/etc/ansible#/opt/local/etc/ansible#g < /opt/local/var/macports/build/_Users_andrew_Local_dports_sysutils_ansible/ansible/work/ansible-2.1.1.0-1/test/integration/roles/test_unarchive/files /test-unarchive-nonascii-àâæçéèïîôœ.tar.gz >@ file10 2>@stderr sed: RE error: illegal byte sequence DEBUG: child process exited abnormally while executing "exec /usr/bin/sed s#/etc/ansible#/opt/local/etc/ansible#g < /opt/local/var/macports/build/_Users_andrew_Local_dports_sysutils_ansible/ansible/work/ans..." ("eval" body line 1) invoked from within "eval exec $cmdline" Error: reinplace: child process exited abnormally Error: org.macports.patch for port ansible returned: reinplace sed(1) failed DEBUG: Error code: NONE DEBUG: Backtrace: reinplace sed(1) failed while executing "proc-org.macports.patch-patch-0 org.macports.patch" ("eval" body line 1) invoked from within "eval $procedure $targetname" Warning: targets not executed for ansible: org.macports.activate org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install }}} It will take a day or so for me to get around to it, though! -- Ticket URL: <https://trac.macports.org/ticket/51988#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51988: ansible @2.1.0.0.1 new upstream version 2.1.1.0-1 is available --------------------------+--------------------------- Reporter: lpancescu@… | Owner: adfernandes@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: ansible | --------------------------+--------------------------- Comment (by lpancescu@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/51988#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51988: ansible @2.1.0.0.1 new upstream version 2.1.1.0-1 is available --------------------------+--------------------------- Reporter: lpancescu@… | Owner: adfernandes@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: ansible | --------------------------+--------------------------- Comment (by larryv@…): That’s an unorthodox file to be patching, to say the least. You can try tweaking the patch phase: {{{#!patch diff --git a/dports/sysutils/ansible/Portfile b/dports/sysutils/ansible/Portfile index 44c6325..dd5b4a9 100644 --- a/dports/sysutils/ansible/Portfile +++ b/dports/sysutils/ansible/Portfile @@ -50,8 +50,8 @@ post-fetch { patch { fs-traverse f ${worksrcpath} { if {[file isfile ${f}] && ![regexp {\.(ico|png|eot|ttf|woff|reg)$} ${f} match] && ![regexp {\.git} ${f} match] && ![regexp {v2/test/test.yml} ${f} match]} { - reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f} - reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f} + reinplace -locale C "s#/etc/ansible#${prefix}/etc/ansible#g" ${f} + reinplace -locale C "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f} } } } }}} -- Ticket URL: <https://trac.macports.org/ticket/51988#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#51988: ansible @2.1.0.0.1 new upstream version 2.1.1.0-1 is available --------------------------+--------------------------- Reporter: lpancescu@… | Owner: adfernandes@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: ansible | --------------------------+--------------------------- Changes (by adfernandes@…): * status: new => closed * resolution: => fixed Comment: 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 -- Ticket URL: <https://trac.macports.org/ticket/51988#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts