Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254192 - dev-libs/dbus-glib fails testsuite with FEATURES=userpriv
Summary: dev-libs/dbus-glib fails testsuite with FEATURES=userpriv
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-01-08 04:30 UTC by Ryan Hill (RETIRED)
Modified: 2011-01-19 20:21 UTC (History)
6 users (show)

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


Attachments
build.log (build.log,93.94 KB, text/plain)
2009-01-18 20:46 UTC, Gilles Dartiguelongue (RETIRED)
Details
Patch to fix this bug (dbus-glib_test_fix.patch,422 bytes, patch)
2010-05-29 18:11 UTC, Myckel Habets
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2009-01-08 04:30:20 UTC
thanks for taking the time to look at the testsuite.  however it still fails for me:

make[4]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.78/work/dbus-glib-0.78/test/core'
Cannot get connection: dbus-launch failed to autolaunch D-Bus session: No protocol specified
Autolaunch error: X11 initialization failed.

FAIL: test-types
FAIL: run-test.sh
PASS: run-peer-test.sh
========================================================================
2 of 3 tests failed
Please report to https://bugs.freedesktop.org/enter_bug.cgi?product=dbus
========================================================================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.78/work/dbus-glib-0.78/test/core'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.78/work/dbus-glib-0.78/test/core'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.78/work/dbus-glib-0.78/test/core'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.78/work/dbus-glib-0.78/test'
make: *** [check-recursive] Error 1
 *
 * ERROR: dev-libs/dbus-glib-0.78 failed.



Portage 2.2_rc20 (default/linux/amd64/2008.0/developer, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoo x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-glibc2.2.5
Timestamp of tree: Thu, 08 Jan 2009 03:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=core2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -march=core2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect cvs digest distlocks fixpackages metadata-transfer multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://gentoo.osuosl.org http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed,--hash-style=gnu"
LINGUAS="en en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/dirtyepic/overlay /home/dirtyepic/dev/svn/dirtyepic /home/dirtyepic/dev/svn/gcc-porting"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi akode alsa amd64 aspell audiofile avahi bash-completion berkdb bzip2 cairo cdaudio cdr chm cleartype cli consolekit cracklib crypt css cups curl cvs dbus divx dri dts dvd dvdr dvdread eds emboss encode evo exif expat fam ffmpeg fftw firefox3 flac fontconfig foomaticdb gdbm geos gif gimp glib glw gmedia gmp gpgme gphoto2 gstreamer gtk hal hdaps howl-compat hpn htmlhandbook iconv id3tag imap imlib inotify ipw4965 isdnlog javascript jpeg kde kdeenablefinal kdehiddenvisibility lame laptop libwww lzma mad mdnsresponder-compat midi mikmod mmap mmx mozilla mp3 mpeg multilib ncurses network-cron nntp nptl nptlonly nsplugin ogg opengl openmp pam pch pcre pdf pic png pop ppds pppd pth qt3 qt3support qt4 quicktime readline reflection rtc sasl session smapi smime smp smtp sndfile spell spl sql srt sse sse2 ssl ssse3 startup-notification subversion svg sysfs taglib tcpd theora threads threadsafe tiff truetype unicode urandom usb utempter vim-syntax vorbis wifi wmp wxwindows x264 xcb xcomposite xine xml xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-01-18 20:46:17 UTC
Created attachment 178923 [details]
build.log

this is the build.log I have. A bit different probably because you get to your privilegded shell differently than I do.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2009-02-10 03:08:56 UTC
looks like the testsuite only fails with FEATURES=userpriv (which is the default)
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-08 19:32:41 UTC
upstream fixed the issue and release 0.80. 0.80 is now in tree so closing this bug.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2009-03-10 02:25:17 UTC
sorry, still fails but the error is different.

>>> Test phase [check]: dev-libs/dbus-glib-0.80                                                                                             
make -j4 -j1 check                                                                                                                          
Making check in dbus                                                                                                                        
make[1]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus'                                             
make  check-recursive                                                                                                                       
make[2]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus'                                             
Making check in .                                                                                                                           
make[3]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus'                                             
make  check-TESTS                                                                                                                           
make[4]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus'                                             
Test data in ../test/data                                                                                                                   
dbus-glib-test: running GValue util tests                                                                                                   
dbus-glib-test: running GValue tests                                                                                                        
dbus-glib-test: running glib tests                                                                                                          
dbus-glib-test: running utils tests                                                                                                         
dbus-glib-test: running mainloop integration tests                                                                                          
dbus-glib-test: running GObject tests                                                                                                       
dbus-glib-test: completed successfully                                                                                                      
PASS: dbus-glib-test                                                                                                                        
==================                                                                                                                          
All 1 tests passed                                                                                                                          
==================                                                                                                                          
make[4]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus'                                              
make[3]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus'                                              
Making check in examples                                                                                                                    
make[3]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus/examples'                                    
make  check-recursive                                                                                                                       
make[4]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus/examples'                                    
Making check in .                                                                                                                           
make[5]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus/examples'                                    
make[5]: Nothing to be done for `check-am'.                                                                                                 
make[5]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus/examples'                                     
Making check in statemachine                                                                                                                
make[5]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus/examples/statemachine'                       
make  check-am                                                                                                                              
make[6]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus/examples/statemachine'                       
make[6]: Nothing to be done for `check-am'.                                                                                                 
make[6]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus/examples/statemachine'                        
make[5]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus/examples/statemachine'                        
make[4]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus/examples'                                     
make[3]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus/examples'                                     
make[2]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus'                                              
make[1]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/dbus'                                              
Making check in tools                                                                                                                       
make[1]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/tools'                                            
make  check-am                                                                                                                              
make[2]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/tools'                                            
make[2]: Nothing to be done for `check-am'.                                                                                                 
make[2]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/tools'                                             
make[1]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/tools'                                             
Making check in test                                                                                                                        
make[1]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/test'                                             
Making check in core                                                                                                                        
make[2]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/test/core'                                        
make  check-am                                                                                                                              
make[3]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/test/core'                                        
make  check-TESTS                                                                                                                           
make[4]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/test/core'                                        
FAIL: run-test.sh                                                                                                                           
PASS: run-peer-test.sh                                                                                                                      
========================================================================                                                                    
1 of 2 tests failed                                                                                                                         
Please report to https://bugs.freedesktop.org/enter_bug.cgi?product=dbus                                                                    
========================================================================                                                                    
make[4]: *** [check-TESTS] Error 1                                                                                                          
make[4]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/test/core'                                         
make[3]: *** [check-am] Error 2                                                                                                             
make[3]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/test/core'                                         
make[2]: *** [check] Error 2                                                                                                                
make[2]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/test/core'                                         
make[1]: *** [check-recursive] Error 1                                                                                                      
make[1]: Leaving directory `/var/tmp/portage/dev-libs/dbus-glib-0.80/work/dbus-glib-0.80/test'                                              
make: *** [check-recursive] Error 1                                                                                                         
 *                                                                                                                                          
 * ERROR: dev-libs/dbus-glib-0.80 failed.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2009-03-10 02:25:53 UTC
.
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-10 07:35:14 UTC
could you update the upstream bug please ?
Comment 7 Hans de Graaff gentoo-dev Security 2009-11-08 10:06:58 UTC
The failure described in comment 4 still occurs with dbus-glib-0.82.
Comment 8 Hans de Graaff gentoo-dev Security 2010-03-23 06:53:11 UTC
And in dbus-glib 0.84.
Comment 9 Myckel Habets 2010-05-29 18:11:24 UTC
Created attachment 233431 [details, diff]
Patch to fix this bug

The test framework calls secondary scripts with ${SHELL} /path/to/script.sh. Portage sets ${SHELL} to /bin/false, causing the tests to fail. The patch I supplied changes ${SHELL} into /bin/sh with 2 sed commands. I don't know if this is the right way to do it, but it seems to work in my case (/bin/sh points to bash in my test case, but might fail with other shells)
Comment 10 Martin Rejman 2010-07-07 08:20:37 UTC
This fix also works for me (dev-libs/dbus-glib-0.86 ). Thanks.

(In reply to comment #9)
> Created an attachment (id=233431) [details]
> Patch to fix this bug
> 
> The test framework calls secondary scripts with ${SHELL} /path/to/script.sh.
> Portage sets ${SHELL} to /bin/false, causing the tests to fail. The patch I
> supplied changes ${SHELL} into /bin/sh with 2 sed commands. I don't know if
> this is the right way to do it, but it seems to work in my case (/bin/sh points
> to bash in my test case, but might fail with other shells)
> 

Comment 11 fernercc 2010-07-19 04:50:59 UTC
im having the same problem dbus-glib-0.86

http://bugs.gentoo.org/show_bug.cgi?id=328903
Comment 12 Pacho Ramos gentoo-dev 2010-07-19 18:17:22 UTC
(In reply to comment #11)
> im having the same problem dbus-glib-0.86
> 
> http://bugs.gentoo.org/show_bug.cgi?id=328903
> 

Not the same, you are suffering a segfault instead
Comment 13 Faustus 2010-10-13 22:58:21 UTC
(In reply to comment #4)

Same with 0.86 + userpriv.
Comment 14 Myckel Habets 2010-10-30 12:53:29 UTC
Stabilizing 0.88, bug of comment #4 still present.
Comment 15 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-01-19 20:21:13 UTC
+  19 Jan 2011; Gilles Dartiguelongue <eva@gentoo.org> dbus-glib-0.92.ebuild,
+  +files/dbus-glib-0.92-userpriv-fix.patch:
+  Fix running tests with userpriv, using upstream patch, bug #254192.
+
Thanks for reporting.