[MacPorts] #35420: makepasswd won't build on mac 10.8
#35420: makepasswd won't build on mac 10.8 ------------------------+--------------------------------------------------- Reporter: ak@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: makepasswd ------------------------+--------------------------------------------------- {{{ ---> Computing dependencies for makepasswd ---> Dependencies to be installed: p5.12-crypt-passwdmd5 ---> Configuring p5.12-crypt-passwdmd5 Error: org.macports.configure for port p5.12-crypt-passwdmd5 returned: command execution failed Error: Failed to install p5.12-crypt-passwdmd5 Please see the log file for port p5.12-crypt-passwdmd5 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5 -crypt-passwdmd5/p5.12-crypt-passwdmd5/main.log Error: The following dependencies were not installed: p5.12-crypt- passwdmd5 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port makepasswd failed }}} -- Ticket URL: <https://trac.macports.org/ticket/35420> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35420: p5-crypt-passwdmd5: sed: RE error: illegal byte sequence --------------------------+------------------------------------------------- Reporter: ak@… | Owner: ooburai@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: p5-crypt-passwdmd5 --------------------------+------------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => ooburai@… * keywords: => mountainlion * port: makepasswd => p5-crypt-passwdmd5 -- Ticket URL: <https://trac.macports.org/ticket/35420#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35420: p5-crypt-passwdmd5: sed: RE error: illegal byte sequence --------------------------+------------------------------------------------- Reporter: ak@… | Owner: ooburai@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: p5-crypt-passwdmd5 --------------------------+------------------------------------------------- Comment(by nick@…): According to https://github.com/Homebrew/homebrew-dupes/pull/21 and linked pages, the problem is Mountain Lion specific and has to do with locale settings and improper handling of these in sed. You have to unset LANG and/or set LC_CTYPE=C and/or LC_ALL=C. {{{ sudo env ... port install ... }}} did not work for me. However, moving /usr/bin/sed to /usr/bin/sed2 and adding the following executable script /usr/bin/sed {{{ #!/bin/sh unset LANG LC_CTYPE=C LC_ALL=C export LC_CTYPE LC_ALL /usr/bin/sed2 "$@" }}} makes the port install. -- Ticket URL: <https://trac.macports.org/ticket/35420#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35420: p5-crypt-passwdmd5: sed: RE error: illegal byte sequence ---------------------------------+-------------------------- Reporter: ak@… | Owner: ooburai@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: mountainlion Port: p5-crypt-passwdmd5 | ---------------------------------+-------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: I don't have 10.8 to test on, but this should be fixed by r98206. Reopen if not. -- Ticket URL: <https://trac.macports.org/ticket/35420#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35420: p5-crypt-passwdmd5: sed: RE error: illegal byte sequence ---------------------------------+-------------------------- Reporter: ak@… | Owner: ooburai@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: p5-crypt-passwdmd5 | ---------------------------------+-------------------------- Changes (by jmr@…): * cc: jeremyhu@… (added) * status: closed => reopened * resolution: fixed => Comment: Actually, that's probably not enough. The problem seems to be in the post- configure commands defined in the perl5 portgroup. Would it be safe to just add `env LC_CTYPE=C` to those commands? -- Ticket URL: <https://trac.macports.org/ticket/35420#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35420: p5-crypt-passwdmd5: sed: RE error: illegal byte sequence ---------------------------------+-------------------------- Reporter: ak@… | Owner: ooburai@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: p5-crypt-passwdmd5 | ---------------------------------+-------------------------- Comment (by jeremyhu@…): Replying to [comment:5 nick@…]:
According to https://github.com/Homebrew/homebrew-dupes/pull/21 and linked pages, the problem is Mountain Lion specific and has to do with locale settings and improper handling of these in sed.
No, the problem is that ML's sed is properly handling the locale setting whereas other implementations are not handling it correctly. The file is not proper UTF8, so you need to set LC_CTYPE=C Why not just fix the buggy file? -- Ticket URL: <https://trac.macports.org/ticket/35420#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35420: p5-crypt-passwdmd5: sed: RE error: illegal byte sequence ---------------------------------+-------------------------- Reporter: ak@… | Owner: ooburai@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: p5-crypt-passwdmd5 | ---------------------------------+-------------------------- Comment (by jmr@…): Does using an encoding other than UTF-8 really count as a bug? -- Ticket URL: <https://trac.macports.org/ticket/35420#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35420: p5-crypt-passwdmd5: sed: RE error: illegal byte sequence ---------------------------------+-------------------------- Reporter: ak@… | Owner: ooburai@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: p5-crypt-passwdmd5 | ---------------------------------+-------------------------- Comment (by jeremyhu@…): More often than not (of the times I've checked) the file is not properly encoded with any standard. The issue is usually that portions of the file are valid UTF8 whereas other portions are ISO-8859-XX ... usually resulting from developers from different regions all working on the same source code with different settings. Luckily the real code is restricted to the common ASCII subset and these inconsistencies are usually in comments. -- Ticket URL: <https://trac.macports.org/ticket/35420#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35420: p5-crypt-passwdmd5: sed: RE error: illegal byte sequence ---------------------------------+-------------------------- Reporter: ak@… | Owner: ooburai@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: p5-crypt-passwdmd5 | ---------------------------------+-------------------------- Comment (by jmr@…): Well in this case the Makefile.PL is valid ISO-8859-1. The author's name (in a string in the perl code) contains a non-ascii character. I guess the only two solutions are to add code to each affected port to iconv the Makefile.PL to UTF-8, or add a way to tell the portgroup what the encoding is. I think I'd prefer the latter. Or, if there's a reliable way to sniff encodings, the portgroup could do the conversion or set LC_CTYPE itself. -- Ticket URL: <https://trac.macports.org/ticket/35420#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35420: p5-crypt-passwdmd5: sed: RE error: illegal byte sequence ---------------------------------+-------------------------- Reporter: ak@… | Owner: ooburai@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: mountainlion Port: p5-crypt-passwdmd5 | ---------------------------------+-------------------------- Changes (by jmr@…): * status: reopened => closed * resolution: => fixed Comment: r98518 -- Ticket URL: <https://trac.macports.org/ticket/35420#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts