Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357081 - sys-apps/dbus fails tests with Python 3
Summary: sys-apps/dbus fails tests with Python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-02 12:19 UTC by Steffen Bergner
Modified: 2011-03-03 07:39 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Bergner 2011-03-02 12:19:27 UTC
-----NON-working python version----->

linux01 ~ # eselect python list
Available Python interpreters:
  [1]   python2.7 
  [2]   python3.1 *

linux01 ~ # FEATURES="test ccache" emerge -1v dbus
...
*** Testing late thread init
Success ***
running test-privserver-client
got private temp address unix:abstract=/tmp/dbus-2GPN4OMECb,guid=893a5c5e4b3a52ed50057f5c0001209f
got private temp address unix:abstract=/tmp/dbus-yxNbDtilw0,guid=3996ea3c3cc28a18341640dc0001209f
got private temp address unix:abstract=/tmp/dbus-jCSqq79VPh,guid=4ca5e886ead67bdcabe264070001209f
got private temp address unix:abstract=/tmp/dbus-NpVNVFZpZd,guid=94a77101649df5a4d57b173c0001209f
running test-shutdown
running test activation forking
  File 

"/var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6/test/name-test/test-activation-forking.py", line 

10
    print "Failed import, aborting test"
                                       ^
SyntaxError: invalid syntax
Failed test-activation-forking
killing message bus 23518
/var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6/tools/run-with-tmp-session-bus.sh: script 

"/var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6/test/name-test/run-test.sh" failed
FAIL: run-test.sh
escaped service dir is: 

\/var\/tmp\/portage\/sys-apps\/dbus-1.4.6\/work\/dbus-1.4.6-tests-build\/test\/data\/valid-service-file

s
Created configuration file ./run-with-tmp-session-bus.conf
Running /var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6-tests-build/tools/dbus-launch --sh-syntax 

--config-file=./run-with-tmp-session-bus.conf
23561: UID: 9709dd68e0d9bbbefcc8c70046e5b421
23561: Connected to X11 display ':0'
23561: === Parent dbus-launch continues
23561: Waiting for babysitter's intermediate parent
23562: === Babysitter's intermediate parent created
23562: === Babysitter's intermediate parent continues
23562: babysitting, exit_with_session = 0, child_pid = 23563, read_bus_pid_fd = 8
23563: === Bus exec process created
23563: Calling exec()
23561: Reading address from bus
23561: Reading PID from daemon
23561: Saving x11 address
23561: Created window 2097153
23561: session file: 

/var/tmp/portage/sys-apps/dbus-1.4.6/homedir/.dbus/session-bus/9709dd68e0d9bbbefcc8c70046e5b421-0
23561: dbus-launch exiting
Started bus pid 23565 at unix:abstract=/tmp/dbus-inUu7DkISN,guid=99bf738d8a332384339736c8000120a0
Running /var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6/test/name-test/run-test-systemserver.sh
running test-expected-echo-fail
running test echo signal
  File "/var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6/test/name-test/test-wait-for-echo.py", 

line 10
    print "Failed import, aborting test"
                                       ^
SyntaxError: invalid syntax
Failed test-wait-for-echo
killing message bus 23565
/var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6/tools/run-with-tmp-session-bus.sh: script 

"/var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6/test/name-test/run-test-systemserver.sh" failed
FAIL: run-test-systemserver.sh
===================
2 of 2 tests failed
===================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory 

`/var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6-tests-build/test/name-test'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory 

`/var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6-tests-build/test/name-test'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6-tests-build/test'
make: *** [check-recursive] Error 1
emake failed
 * ERROR: sys-apps/dbus-1.4.6 failed (test phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_test
 *   environment, line 3346:  Called die
 * The specific snippet of code:
 *       DBUS_VERBOSE=1 Xemake -j1 check || die
 *
 * If you need support, post the output of 'emerge --info =sys-apps/dbus-1.4.6',
 * the complete build log and the output of 'emerge -pqv =sys-apps/dbus-1.4.6'.
 * The complete build log is located at '/var/tmp/portage/sys-apps/dbus-1.4.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/dbus-1.4.6/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6'

>>> Failed to emerge sys-apps/dbus-1.4.6, Log file:

>>>  '/var/tmp/portage/sys-apps/dbus-1.4.6/temp/build.log'



-----working python version----->

linux01 ~ # eselect python set 1

linux01 ~ # eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.1

linux01 ~ # FEATURES="test ccache" emerge -1v dbus
...
*** Testing late thread init
Success ***
running test-privserver-client
got private temp address unix:abstract=/tmp/dbus-mpvxJVzfvL,guid=0d07693127c82f7d08fdede600012e3a
got private temp address unix:abstract=/tmp/dbus-E77RxkCTZZ,guid=0197c9b2dd516054d617d72700012e3a
got private temp address unix:abstract=/tmp/dbus-DObOx5hR9E,guid=42cb9d78c81dca254230494800012e3a
got private temp address unix:abstract=/tmp/dbus-LAy99IFR4J,guid=044737c366c871dbb6d8d04f00012e3a
running test-shutdown
running test activation forking
Failed import, aborting test
running test-autolaunch
Killed daemon 12025
PASS: run-test.sh
escaped service dir is: \/var\/tmp\/portage\/sys-apps\/dbus-1.4.6\/work\/dbus-1.4.6-tests-build\/test\/data\/valid-service-files
Created configuration file ./run-with-tmp-session-bus.conf
Running /var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6-tests-build/tools/dbus-launch --sh-syntax --config-file=./run-with-tmp-session-bus.conf
12075: UID: 9709dd68e0d9bbbefcc8c70046e5b421
12075: Connected to X11 display ':0'
12075: === Parent dbus-launch continues
12075: Waiting for babysitter's intermediate parent
12076: === Babysitter's intermediate parent created
12076: === Babysitter's intermediate parent continues
12076: babysitting, exit_with_session = 0, child_pid = 12077, read_bus_pid_fd = 8
12077: === Bus exec process created
12077: Calling exec()
12075: Reading address from bus
12075: Reading PID from daemon
12075: Saving x11 address
12075: dbus-launch exiting
Started bus pid 12079 at unix:abstract=/tmp/dbus-pHxqHwhYSJ,guid=4a1a574d0993b8345e2aa1fc00012e3e
Running /var/tmp/portage/sys-apps/dbus-1.4.6/work/dbus-1.4.6/test/name-test/run-test-systemserver.sh
running test-expected-echo-fail
running test echo signal
Failed import, aborting test
Killed daemon 12079
PASS: run-test-systemserver.sh
==================
All 2 tests passed
==================
...
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-03-03 00:32:13 UTC
Fixed in sys-apps/dbus-1.4.1 and sys-apps/dbus-1.4.6.
Comment 2 Steffen Bergner 2011-03-03 07:39:32 UTC
==================
All 2 tests passed
==================

Wonderful. Thanks a lot. Quick fix verified.