Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234054 - sys-apps/dbus-1.2.1 - dbus-launch does not working without X session
Summary: sys-apps/dbus-1.2.1 - dbus-launch does not working without X session
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 08:05 UTC by Gorlow Max
Modified: 2011-10-30 22:54 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 Gorlow Max 2008-08-06 08:05:08 UTC
dbus-launch does not working without X session. I try compile dbus with X use flag, and with -X use flag.
With X:
# dbus-monitor
Failed to open connection to session message bus: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.

With -X:
# dbus-monitor
Failed to open connection to session message bus: dbus-launch failed to autolaunch D-Bus session: Autolaunch requested, but X11 support not compiled in.
Cannot continue.

Reproducible: Always

Steps to Reproduce:
1. Need PC without X
2. /etc/init.d/dbus start
2. Run dbus-monitor




dbus make info:
                    D-Bus 1.2.1
                  ==============

        prefix:                   /usr
        exec_prefix:              ${prefix}
        libdir:                   /usr/lib
        libexecdir:               /usr/libexec
        bindir:                   /usr/bin
        sysconfdir:               /etc
        localstatedir:            /var
        datadir:                  /usr/share
        source code location:     .
        compiler:                 i686-pc-linux-gnu-gcc
        cflags:                   -ffunction-sections -fdata-sections -O2 -march=pentium3 -pipe -fomit-frame-pointer -rdynamic -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common
        cppflags:
        cxxflags:                 -O2 -march=pentium3 -pipe -fomit-frame-pointer -rdynamic
        64-bit int:               long long
        32-bit int:               int
        16-bit int:               short
        Doxygen:                  no
        xmlto:                    no

        Maintainer mode:          no
        gcc coverage profiling:   no
        Building unit tests:      no
        Building verbose mode:    no
        Building assertions:      no
        Building checks:          yes
        Building SELinux support: no
        Building inotify support: yes
        Building dnotify support: no
        Building kqueue support:  no
        Building X11 code:        no
        Building Doxygen docs:    no
        Building XML docs:        no
        Building cache support:   yes
        Gettext libs (empty OK):
        Using XML parser:         expat
        Init scripts style:       none
        Abstract socket names:    yes
        System bus socket:        /var/run/dbus/system_bus_socket
        System bus address:       unix:path=/var/run/dbus/system_bus_socket
        System bus PID file:      /var/run/dbus.pid
        Session bus socket dir:   /tmp
        Console auth dir:         /var/run/console/
        Console owner file:       no
        Console owner file path:
        System bus user:          messagebus
        Session bus services dir: /usr/share/dbus-1/services
        'make check' socket dir:  /storage/volume_0/portage/trash/portage/sys-apps/dbus-1.2.1/temp

emerge --info:
gate dbus-1 # emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0/server, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8.Sheridan.home.gate i686)
=================================================================
System uname: 2.6.24-gentoo-r8.Sheridan.home.gate i686 Celeron (Coppermine)
Timestamp of tree: Sat, 26 Jul 2008 20:03:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.3.5-r3, 2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/apache2 /etc/apache2/modules.d /etc/bind /etc/conf.d /etc/courier/authlib /etc/php /etc/squid /usr/libexec/munin/plugins /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags"
PKGDIR="/var/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="/storage/volume_0/portage/trash"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/usr/local/portage/local /usr/local/portage/linux-community"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 bash-completion bashlogger berkdb bzip2 clamav cli cracklib crypt dba dri exif firebird fortran gd gdbm gif glibc-omitfp gpm graphviz iconv inifile isdnlog javascript jpeg jpeg2k lm_sensors midi mime mmx mng mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php pic png postgres pppd python readline reflection reiserfs samba sasl session slang snmp spl sse ssl syslog tcpd threads tidy truetype unicode urandom vhosts x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steev Klimaszewski (RETIRED) gentoo-dev 2008-08-07 18:27:46 UTC
Autolaunch requires X11, if you want it without X, then you will need to launch a session bus by yourself - dbus-launch application-that-uses-session-bus or dbus-monitor --system to monitor the system rather than session.  Could you better describe what you are needing and could find a possible work around for why you are having this?
Comment 2 Gorlow Max 2008-08-08 06:07:43 UTC
Thank you, Sorry for concern