#4522: mercurial-2.8.2
-------------------------+-----------------------
Reporter: izivkov | Owner: fo
Type: enhancement | Status: reopened
Priority: normal | Milestone: current
Component: BOOK | Version: SVN
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------
Comment (by fo):
OK, test passed, now.
First, main error message was:
{{{
ImportError: No module named osutil
}}}
According to most reports, it was related to installation by mercurial in
a directory not in PYTHONPATH:
{{{
$ find /usr/lib -iname osutil\*
/usr/lib/python2.7/site-packages/mercurial/osutil.so
}}}
Tried to use export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/site-
packages, without success.
What worked:
{{{
export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/site-packages/mercurial
$ echo $PYTHONPATH
:/usr/lib/python2.7/site-packages/mercurial
}}}
Now, I have:
{{{
$ cd mercurial-2.8.2/tests
$ rm -rf tmp && ./run-tests.py --local --debug --tmpdir tmp test-archive-
symlinks.t
python hash seed: 887407892
+ echo SALT1389102801.14 0 0
SALT1389102801.14 0 0
+ /home/fernando/tmp/paco-
build-2014.01.07-08h27m38s/mercurial-2.8.2/tests/hghave symlink
+ echo SALT1389102801.14 2 0
SALT1389102801.14 2 0
++ pwd
+ origdir=/home/fernando/tmp/paco-
build-2014.01.07-08h27m38s/mercurial-2.8.2/tests/tmp/child0/test-archive-
symlinks.t
+ echo SALT1389102801.14 4 0
SALT1389102801.14 4 0
+ hg init repo
+ echo SALT1389102801.14 5 0
SALT1389102801.14 5 0
+ cd repo
+ echo SALT1389102801.14 6 0
SALT1389102801.14 6 0
+ ln -s nothing dangling
+ echo SALT1389102801.14 10 0
SALT1389102801.14 10 0
+ hg ci -d '2000-01-01 00:00:00 +0000' -qAm 'add symlink'
+ echo SALT1389102801.14 12 0
SALT1389102801.14 12 0
+ hg archive -t files ../archive
+ echo SALT1389102801.14 13 0
SALT1389102801.14 13 0
+ hg archive -t tar -p tar ../archive.tar
+ echo SALT1389102801.14 14 0
SALT1389102801.14 14 0
+ hg archive -t zip -p zip ../archive.zip
+ echo SALT1389102801.14 18 0
SALT1389102801.14 18 0
+ cd /home/fernando/tmp/paco-
build-2014.01.07-08h27m38s/mercurial-2.8.2/tests/tmp/child0/test-archive-
symlinks.t
+ echo SALT1389102801.14 19 0
SALT1389102801.14 19 0
+ cd archive
+ echo SALT1389102801.14 20 0
SALT1389102801.14 20 0
+ /home/fernando/tmp/paco-
build-2014.01.07-08h27m38s/mercurial-2.8.2/tests/readlink.py dangling
dangling -> nothing
+ echo SALT1389102801.14 25 0
SALT1389102801.14 25 0
+ cd /home/fernando/tmp/paco-
build-2014.01.07-08h27m38s/mercurial-2.8.2/tests/tmp/child0/test-archive-
symlinks.t
+ echo SALT1389102801.14 26 0
SALT1389102801.14 26 0
+ tar xf archive.tar
+ echo SALT1389102801.14 27 0
SALT1389102801.14 27 0
+ cd tar
+ echo SALT1389102801.14 28 0
SALT1389102801.14 28 0
+ /home/fernando/tmp/paco-
build-2014.01.07-08h27m38s/mercurial-2.8.2/tests/readlink.py dangling
dangling -> nothing
+ echo SALT1389102801.14 33 0
SALT1389102801.14 33 0
+ cd /home/fernando/tmp/paco-
build-2014.01.07-08h27m38s/mercurial-2.8.2/tests/tmp/child0/test-archive-
symlinks.t
+ echo SALT1389102801.14 34 0
SALT1389102801.14 34 0
+ unzip archive.zip
lchmod (file attributes) error: Function not implemented
+ echo SALT1389102801.14 35 0
SALT1389102801.14 35 0
+ cd zip
+ echo SALT1389102801.14 36 0
SALT1389102801.14 36 0
+ /home/fernando/tmp/paco-
build-2014.01.07-08h27m38s/mercurial-2.8.2/tests/readlink.py dangling
dangling -> nothing
+ echo SALT1389102801.14 39 0
SALT1389102801.14 39 0
+ cd ..
+ echo SALT1389102801.14 40 0
SALT1389102801.14 40 0
.
# Ran 1 tests, 0 skipped, 0 failed.
}}}
Think it is not interesting to set PYTHONPATH like that for the whole
system, so, I am leaning to include in the instructions only for make
check. But this seems to imply that the tests need to be run after
install.
Now, I will run the whole tests and build from scratch, for statistics, as
I suspect the SBU for tests was reflecting that failure, and turn the
attention to docs statistics.
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/4522#comment:6>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page