Opened 14 years ago

Closed 14 years ago

#2528 closed defect (fixed)

Coreutils-8.1 fails pwd-long test

Reported by: Matthew Burgess Owned by: lfs-book@…
Priority: normal Milestone: 6.6
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description

As the summary suggests, there's a test failure with Coreutils-8.1 that I missed due to our current use of '
true' in the test suite invocation. The thread starting at http://www.mail-archive.com/bug-coreutils@gnu.org/msg18565.html discusses what causes this issue, and I think it's because of us building as root. As reported by Gilles Espinasse at http://www.mail-archive.com/bug-coreutils@gnu.org/msg18590.html this is because we're untarring as root which doesn't preserve permissions. Testing here shows that
chmod 755 src

enables that test to pass again.

Confirmation from others would be appreciated before I commit this to the book though.

Change History (2)

comment:1 by Gilles Espinasse, 14 years ago

Then you need too to add --no-same-permissions to tar instruction or coreutils-8.1 and subdirs are still world-writable and that test still fail.
Path to the coreutils source package is added to PATH inside the script and perl -T will fail with 'Insecure directory in $ENV{PATH} while running with -T switch'

There is another test that will fail. If you don't have error when running non-root tests, then gnulib tests are run.
And gnulib-tests/test-update-copyright.sh will fail as perl path is hardcoded to /us/bin/perl I fixed that with
sed -i -e 's|/usr/bin/perl|perl|' $(DIR_APP)/gnulib-tests/test-update-copyright.sh

That's fixed another way after 8.1 and 8.2 should arrive very soon.

comment:2 by Matthew Burgess, 14 years ago

Resolution: fixed
Status: newclosed

Fixed by upgrading to Coreutils-8.2 in r9133.

Note: See TracTickets for help on using tickets.