Re: [LFS Trac] #1892: host pollution of expect in ch5 breaks binutils testsuite in ch6
#1892: host pollution of expect in ch5 breaks binutils testsuite in ch6 +--- Reporter: [EMAIL PROTECTED] |Owner: [EMAIL PROTECTED] Type: defect | Status: assigned Priority: normal |Milestone: Component: Book| Version: 6.2 Severity: normal | Resolution: Keywords: | +--- Changes (by [EMAIL PROTECTED]): * owner: lfs-book@linuxfromscratch.org = [EMAIL PROTECTED] * status: new = assigned Comment: Confirmed; and here's how: * Start up the LiveCD. * Copy /bin/stty to /usr/local/bin * Compile tcl/expect/dejagnu like you would in chapter 5. * Remove /usr/local/bin/stty * Compile the calc example that comes with the dejagnu source (make sure your PATH is set to use the new testsuite tools): {{{ cd example/calc make make check }}} * The check will fail and calc.log will contain something like the following: {{{ sh: /usr/local/bin/stty: No such file or directory calc: ERROR: Can't start /path/to/dejagnu-1.4.4/example/calc/calc }}} -- Ticket URL: http://wiki.linuxfromscratch.org/lfs/ticket/1892 LFS Trac http://wiki.linuxfromscratch.org/lfs/ Linux From Scratch: Your Distro, Your Rules. -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [LFS Trac] #1892: host pollution of expect in ch5 breaks binutils testsuite in ch6
#1892: host pollution of expect in ch5 breaks binutils testsuite in ch6 +--- Reporter: [EMAIL PROTECTED] |Owner: [EMAIL PROTECTED] Type: defect | Status: closed Priority: normal |Milestone: Component: Book| Version: 6.2 Severity: normal | Resolution: fixed Keywords: | +--- Changes (by [EMAIL PROTECTED]): * resolution: = fixed * status: assigned = closed Comment: Fixed as of r7870. -- Ticket URL: http://wiki.linuxfromscratch.org/lfs/ticket/1892 LFS Trac http://wiki.linuxfromscratch.org/lfs/ Linux From Scratch: Your Distro, Your Rules. -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [LFS Trac] #1892: host pollution of expect in ch5 breaks binutils testsuite in ch6
#1892: host pollution of expect in ch5 breaks binutils testsuite in ch6 +--- Reporter: [EMAIL PROTECTED] |Owner: lfs-book@linuxfromscratch.org Type: defect | Status: new Priority: normal |Milestone: Component: Book| Version: 6.2 Severity: normal | Resolution: Keywords: | +--- Comment (by [EMAIL PROTECTED]): I like the approach. It ought to work (though a test run on the originally affected host may have to wait a while). The explanatory text in patch is great. -- Ticket URL: http://wiki.linuxfromscratch.org/lfs/ticket/1892 LFS Trac http://wiki.linuxfromscratch.org/lfs/ Linux From Scratch: Your Distro, Your Rules. -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [LFS Trac] #1892: host pollution of expect in ch5 breaks binutils testsuite in ch6
#1892: host pollution of expect in ch5 breaks binutils testsuite in ch6 +--- Reporter: [EMAIL PROTECTED] |Owner: lfs-book@linuxfromscratch.org Type: defect | Status: new Priority: normal |Milestone: Component: Book| Version: 6.2 Severity: normal | Resolution: Keywords: | +--- Comment (by [EMAIL PROTECTED]): Adding these two lines to the book commands would 'fix' this behavior: {{{ cp configure{,.bak} sed 's:/usr/local/bin:/bin:' configure.bak configure }}} That would produce the following in the 'configure' script: {{{ echo configure:2028: checking stty to use 5 if test -r /bin/stty ; then STTY_BIN=/bin/stty else STTY_BIN=/bin/stty fi }}} If you like this fix, I made a patch: http://linuxfromscratch.org/~jhuntwork/chapter05-expect.patch -- Ticket URL: http://wiki.linuxfromscratch.org/lfs/ticket/1892 LFS Trac http://wiki.linuxfromscratch.org/lfs/ Linux From Scratch: Your Distro, Your Rules. -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[LFS Trac] #1892: host pollution of expect in ch5 breaks binutils testsuite in ch6
#1892: host pollution of expect in ch5 breaks binutils testsuite in ch6 +--- Reporter: [EMAIL PROTECTED] | Owner: lfs-book@linuxfromscratch.org Type: defect | Status: new Priority: normal | Milestone: Component: Book| Version: 6.2 Severity: normal |Keywords: +--- If there is a stty binary in /usr/local/bin on the host (default install of coreutils), that gets picked up by expect's configure script: {{{ if test -r /usr/local/bin/stty ; then STTY_BIN=/usr/local/bin/stty else STTY_BIN=/bin/stty fi }}} This gets compiled into libexpect and utimately breaks dejagnu in ch6 because we have created a symlink to /tools/bin/stty in /bin but not in /usr/local/bin. I see two possible fixes: 1. ln -s /bin/stty /usr/local/bin in the Essential Symlinks[[BR]] Don't like that as it pollutes the final LFS environment. 2. Fix Expect's configure.status and/or Makefile with a sed between the ./configure and the make. [[BR]] (Probably should check first that /bin/stty actually exists on the host.) -- Ticket URL: http://wiki.linuxfromscratch.org/lfs/ticket/1892 LFS Trac http://wiki.linuxfromscratch.org/lfs/ Linux From Scratch: Your Distro, Your Rules. -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page