Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264439 - dev-python/python-bibtex fails some tests (and bails install out)
Summary: dev-python/python-bibtex fails some tests (and bails install out)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 247558
  Show dependency tree
 
Reported: 2009-03-31 20:59 UTC by Colin Macdonald
Modified: 2010-03-27 18:55 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Working version (python-bibtex-1.2.4-r1.tar.bz2,1.44 KB, application/octet-stream)
2009-07-24 11:53 UTC, Peter Waller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Macdonald 2009-03-31 20:59:50 UTC
i686-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -march=i686 -O2 -pipe build/temp.linux-i686-2.6/recodemodule.o -L/usr/lib -lrecode -lpython2.6 -o build/lib.linux-i686-2.6/_recode.so
>>> Source compiled.
>>> Test phase [not enabled]: dev-python/python-bibtex-1.2.4

>>> Install python-bibtex-1.2.4 into /var/tmp/portage/dev-python/python-bibtex-1.2.4/image/ category dev-python
running install
running check
running build
running build_ext
error: tests/simple-2.bib: line 1: unexpected result:
error: tests/simple-2.bib: line 1:    obtained ('entry', ('gobry03', 'article', 0, 1, {'journal': (0, 0, 'My diary'), 'title': (2, 0, 'A simple example'), 'year': (3, 0, '2003', 2003, 0, 0), 'author': (1, 0, 'Fr\xe9d\xe9ric Gobry', [(None, 'Fr\xe9d\xe9ric', 'Gobry', None)])}))
error: tests/simple-2.bib: line 1:    expected ('entry', ('gobry03', 'article', 0, 1, {'journal': (0, 0, 'My diary'), 'year': (3, 0, '2003', 2003, 0, 0), 'author': (1, 0, 'Fr\xe9d\xe9ric Gobry', [(None, 'Fr\xe9d\xe9ric', 'Gobry', None)]), 'title': (2, 0, 'A simple example')}))
error: tests/simple.bib: line 1: unexpected result:
error: tests/simple.bib: line 1:    obtained ('gobry03', 'article', 0, 1, {'journal': (0, 0, 'My diary'), 'title': (2, 0, 'A simple example'), 'year': (3, 0, '2003', 2003, 0, 0), 'author': (1, 0, 'Fr\xe9d\xe9ric Gobry', [(None, 'Fr\xe9d\xe9ric', 'Gobry', None)])})
error: tests/simple.bib: line 1:    expected ('gobry03', 'article', 0, 1, {'journal': (0, 0, 'My diary'), 'year': (3, 0, '2003', 2003, 0, 0), 'author': (1, 0, 'Fr\xe9d\xe9ric Gobry', [(None, 'Fr\xe9d\xe9ric', 'Gobry', None)]), 'title': (2, 0, 'A simple example')})
testsuite: 12 checks, 3 failures
error: check failed.
 * 
 * ERROR: dev-python/python-bibtex-1.2.4 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_install
 *             environment, line 2464:  Called distutils_src_install
 *             environment, line  717:  Called die
 * The specific snippet of code:
 *           ${python} setup.py install --root="${D}" --no-compile "$@" || die "python setup.py install failed";
 *  The die message:
 *   python setup.py install failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-python:python-bibtex-1.2.4:20090331-205354.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/python-bibtex-1.2.4/temp/environment'.
 * 

This is with python2.6 but same error happens with python2.5
Comment 1 Heiko Stamer 2009-05-09 17:30:57 UTC
This seems to be a upstream bug due to dirty test programming. Note the different order of the BibTeX fields in python dictionary of the failing test cases.

For example, the obtained "('entry', ('gobry03', 'article', 0, 1, {'journal': (0, 0, 'My diary'), 'title': (2, 0, 'A simple example'), 'year': (3, 0, '2003', 2003, 0, 0), 'author': (1, 0, 'Fr\xe9d\xe9ric Gobry', [(None, 'Fr\xe9d\xe9ric', 'Gobry', None)])}))" has just a permuted order of the dictionary elements with respect to "('entry', ('gobry03', 'article', 0, 1, {'journal': (0, 0, 'My diary'), 'year': (3, 0, '2003', 2003, 0, 0), 'author': (1, 0, 'Fr\xe9d\xe9ric Gobry', [(None, 'Fr\xe9d\xe9ric', 'Gobry', None)]), 'title': (2, 0, 'A simple example')}))". Thus, I guess in python2.6/2.5 the ordering algorithm for dictionaries has changed. Right?

Comment 2 Heiko Stamer 2009-05-10 10:33:54 UTC
Upstream bug already filed, see http://sourceforge.net/tracker/?func=detail&aid=2474782&group_id=4825&atid=104825
Comment 3 Peter Waller 2009-07-24 11:53:30 UTC
Created attachment 198981 [details]
Working version
Comment 4 Peter Waller 2009-07-24 11:54:40 UTC
(In reply to comment #3)
> Created an attachment (id=198981) [edit]
> Working version
> 

I bodged the test case by telling it to eval() the results (Evil, I know.). I needed it working.
Comment 5 Toralf Goaltenner 2009-09-18 16:25:24 UTC
Should not it version 1.2.4-r1 be marked as unstable as long the upstream bug is not fixed? I also want use it (with pybliographer) but it's confusing if a stable marked package does not install with current version of its base library (python)
Tests are nice as long they work...thank you Peter for the fix
my2c
Comment 6 Neil 2009-10-02 15:04:45 UTC
Looks pretty dead upstream as the frontpage indicates that the project is looking for a new maintainer (see http://pybliographer.org/ ).
Comment 7 pjv 2009-12-23 15:48:54 UTC
Hello? If the emerge fails for everybody, then shouldn't this be ~x86 or masked? Either that or the -r1 version is taken as an acceptable workaround.
Comment 8 Alexander van der Meij 2010-01-13 17:46:58 UTC
Solution by Peter Warner confirmed working here on amd64. Any chance we can get this into portage? 
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-27 18:55:27 UTC
Fixed.