[MacPorts] #33684: autogen 5.15 fails shell.hlp test case
#33684: autogen 5.15 fails shell.hlp test case --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- The MacPorts autogen 5.15 package is currently not passing the autogen testsuite.[[BR]] The autoopts/test/shell.test test is failing as... FAILURE: script generator help output mismatch: *** shell.hlp Sat Mar 17 20:12:00 2012[[BR]] --- shell.help Sat Mar 17 20:12:00 2012[[BR]] ***************[[BR]] *** 1,25 ****[[BR]] - genshellopt - Generate Shell Option Processing Script - Ver. 1[[BR]] - USAGE: shell [ -<flag> [<val>] | --<name>[{=| }<val>] ]...[[BR]] - Flg Arg Option-Name Description[[BR]] - -o Str script Output Script File[[BR]] - -s Str shell Shell name (follows "#!" magic)[[BR]] - - disabled as --no-shell[[BR]] - - enabled by default[[BR]] - -v opt version Output version information and exit[[BR]] - -? no help Display extended usage information and exit[[BR]] - -! no more-help Extended usage information passed thru pager[[BR]] - Options are specified by doubled hyphens and their name or by a single[[BR]] - hyphen and the flag character.[[BR]] - = = = = = = = =[[BR]] - This incarnation of genshell will produce[[BR]] - a shell script to parse the options for test_shell:[[BR]] - test_shell - Test AutoOpts for shell[[BR]] - USAGE: test_shell [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \[[BR]] - reg-arg [ ... ][[BR]] - Flg Arg Option-Name Description[[BR]] - -o Str option The option option descrip[[BR]] - -s no second The second option descrip[[BR]] - -? no help Display extended usage information and exit[[BR]] - -! no more-help Extended usage information passed thru pager[[BR]] - Options are specified by doubled hyphens and their name or by a single[[BR]] - hyphen and the flag character.[[BR]] --- 0 ----[[BR]] FAIL: shell.test[[BR]] [[BR]] This has been filed upstream as...[[BR]] [[BR]] https://sourceforge.net/tracker/?func=detail&atid=103593&aid=3507334&group_id=3593#[[BR]] [[BR]] [[BR]] The autogen developers can't reproduce this failure (although I can also reproduce [[BR]] under fink). Any help we can give the autogen developer in debugging this[[BR] ]apparent sed issue on darwin would be appreciated.[[BR]] -- Ticket URL: <https://trac.macports.org/ticket/33684> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mww@… Old description:
The MacPorts autogen 5.15 package is currently not passing the autogen testsuite.[[BR]] The autoopts/test/shell.test test is failing as...
FAILURE: script generator help output mismatch: *** shell.hlp Sat Mar 17 20:12:00 2012[[BR]] --- shell.help Sat Mar 17 20:12:00 2012[[BR]] ***************[[BR]] *** 1,25 ****[[BR]] - genshellopt - Generate Shell Option Processing Script - Ver. 1[[BR]] - USAGE: shell [ -<flag> [<val>] | --<name>[{=| }<val>] ]...[[BR]] - Flg Arg Option-Name Description[[BR]] - -o Str script Output Script File[[BR]] - -s Str shell Shell name (follows "#!" magic)[[BR]] - - disabled as --no-shell[[BR]] - - enabled by default[[BR]] - -v opt version Output version information and exit[[BR]] - -? no help Display extended usage information and exit[[BR]] - -! no more-help Extended usage information passed thru pager[[BR]] - Options are specified by doubled hyphens and their name or by a single[[BR]] - hyphen and the flag character.[[BR]] - = = = = = = = =[[BR]] - This incarnation of genshell will produce[[BR]] - a shell script to parse the options for test_shell:[[BR]] - test_shell - Test AutoOpts for shell[[BR]] - USAGE: test_shell [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \[[BR]] - reg-arg [ ... ][[BR]] - Flg Arg Option-Name Description[[BR]] - -o Str option The option option descrip[[BR]] - -s no second The second option descrip[[BR]] - -? no help Display extended usage information and exit[[BR]] - -! no more-help Extended usage information passed thru pager[[BR]] - Options are specified by doubled hyphens and their name or by a single[[BR]] - hyphen and the flag character.[[BR]] --- 0 ----[[BR]] FAIL: shell.test[[BR]] [[BR]] This has been filed upstream as...[[BR]] [[BR]] https://sourceforge.net/tracker/?func=detail&atid=103593&aid=3507334&group_id=3593#[[BR]] [[BR]] [[BR]] The autogen developers can't reproduce this failure (although I can also reproduce [[BR]] under fink). Any help we can give the autogen developer in debugging this[[BR] ]apparent sed issue on darwin would be appreciated.[[BR]]
New description: The MacPorts autogen 5.15 package is currently not passing the autogen testsuite.[[BR]] The autoopts/test/shell.test test is failing as... {{{ FAILURE: script generator help output mismatch: *** shell.hlp Sat Mar 17 20:12:00 2012 --- shell.help Sat Mar 17 20:12:00 2012 *************** *** 1,25 **** - genshellopt - Generate Shell Option Processing Script - Ver. 1 - USAGE: shell [ -<flag> [<val>] | --<name>[{=| }<val>] ]... - Flg Arg Option-Name Description - -o Str script Output Script File - -s Str shell Shell name (follows "#!" magic) - - disabled as --no-shell - - enabled by default - -v opt version Output version information and exit - -? no help Display extended usage information and exit - -! no more-help Extended usage information passed thru pager - Options are specified by doubled hyphens and their name or by a single - hyphen and the flag character. - = = = = = = = = - This incarnation of genshell will produce - a shell script to parse the options for test_shell: - test_shell - Test AutoOpts for shell - USAGE: test_shell [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \ - reg-arg [ ... ] - Flg Arg Option-Name Description - -o Str option The option option descrip - -s no second The second option descrip - -? no help Display extended usage information and exit - -! no more-help Extended usage information passed thru pager - Options are specified by doubled hyphens and their name or by a single - hyphen and the flag character. --- 0 ---- FAIL: shell.test }}} This has been filed upstream as... https://sourceforge.net/tracker/?func=detail&atid=103593&aid=3507334&group_i... The autogen developers can't reproduce this failure (although I can also reproduce under fink). Any help we can give the autogen developer in debugging this apparent sed issue on darwin would be appreciated. -- Comment: Just for the record, what OS version and Xcode version are you using? -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by ryandesign@…): Ah, in the upstream bug you stated OS X 10.7.3 and Xcode 4.3.1. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by bkorb@…): What is seen from the various files is that the test program at issue runs and is capable of producing the expected output. The command xtrace ("set -x") output shows a sed command that ought to leave behind the text that should be tested against. Instead, the text file produced is empty. The "shell.help" file (attached) is the output of running the test command with the --help option and the "shell.HELP" file (also attached) is the output created by running that text through the following pipe (also on a Mac): {{{ /sw/bin/sed '/[Pp]lease send bug reports/d /^Packaged by/d /^Report .* bugs to/d /Note that.*is only useful/,/will be regenerated/d' | grep -v $'^[ \t]*$' }}} -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by howarth@…): FYI, I have reproduced this under fink as well using llvm-gcc-4.2, clang and gcc-fsf-4.6[[BR]] under Mac OS X 10.7.3 and Xcode 4.3.1. Upstream claims the shell.test binary runs fine [[BR]] and produced the correct output. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: I reproduced the issue on my machine with OS X 10.6.8 and Xcode 3.2.6; I attached the main.log for reference. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by bkorb@…): I am sure it is eminently reproducible. I don't have a Mac build platform, so I cannot. I just need to know how the shell.test script and clean_help function are failing. In my repo, I've altered the clean_help function (lives in "defs.in") thus: {{{ clean_help() { { echo '/^Packaged by/d' echo '/^Report .* bugs to/d' echo '/[Pp]lease send bug reports/d' test -z "$sedcmd" || echo "$sedcmd" echo "/^[ ${ht}]*\$/d" } > ${testname}.sed-cmd ${SED} -f ${testname}.sed-cmd } }}} but Jack says this makes it worse for him, so maybe not the right solution. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by bkorb@…): Replying to [comment:4 howarth@…]:
FYI, ... Upstream claims the shell.test binary runs fine
It does, indeed. In your tarball there is a file named test/FAILURES/shell That is a binary, not actually any sort of shell. Run it with "--help" or "-?" and you will get the correct help text. The shell.test script will do that. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by ryandesign@…): What is the significance of the fact that the files you attached were named shell.help and shell.HELP? Are those the names that the test suite will use to create these files? If so, presumably they are created in the same directory? If so, they will overwrite each other on case-insensitive filesystems, which mine and most Mac users' are. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by bkorb@…): {{{ while IFS='' read -r line do <<<manipulations>>> done < ${testname}.help > ${testname}.HELP }}} Then the bug is here. I wrote this so many years ago and I don't really do development on a Mac. Or under Windows. Thank you. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by bkorb@…): Yep. That while loop is left over cruft from before the "clean_help" function was written. Next rev. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case on case-insensitive filesystems --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case on case-insensitive filesystems --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by bkorb@…): Please try: {{{ http://autogen.sourceforge.net/data/autogen-5.16pre11.tar.xz }}} -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case on case-insensitive filesystems --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by ryandesign@…): Replying to [comment:12 bkorb@…]:
Please try:
Two tests now fail; I'll attach the main.log. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case on case-insensitive filesystems --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by ryandesign@…): Looks like 5.16pre11 still contains the line: {{{ done < ${testname}.help > ${testname}.HELP }}} This can't work right on case-insensitive filesystems. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case on case-insensitive filesystems --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by bkorb@…): *sigh*. Thank you. 1. Duh. I must have overwritten the removal ... #( 2. NTP folks want texi markups in the option short descriptions, so I sedded-away the texi-isms and reformatted with "fmt -w72". Apparently, our "fmt" programs disagree about whether byte 72 causes a line break or is a line limit. More variable text. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case on case-insensitive filesystems --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by howarth@…): Simply changing the instances of .HELP to .HELP2 is sufficient to fix the test for darwin. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case on case-insensitive filesystems --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by bkorb@…): Removing that whole "while" loop fixes it, too. :) Whatever is easiest tho...This time, it's really gone from my source base. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case on case-insensitive filesystems --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by bkorb@…): That fixes it for the 5.15 release, that is. My "pre" release has that formatting issue. -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33684: autogen 5.15 fails shell.hlp test case on case-insensitive filesystems --------------------------------------+------------------------------------- Reporter: howarth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: autogen --------------------------------------+------------------------------------- Comment(by jmr@…): I gather this can be closed now that the port is at version 5.16.1? -- Ticket URL: <https://trac.macports.org/ticket/33684#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts