Hi all This is a fresh ~x86 install in a chroot of a running system. I noticed the problem when emerging gnome and kde-meta:4.2, that packages requiring gst-plugins-* wouldn't compile, reporting that gst-plugin-so-and-so is not installed, while in reality it was. The error message from gst-inspect-0.10 gst-pluginname then revealed: # gst-inspect-0.10 gconfaudiosink process 6663: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory # man dbus-uuidgen then showed that the uuid could be created with dbus-uuidgen --ensure After that, no more compile errors. I'm opening this bug because I suppose that dbus-uuidgen should be called somewhere earlier in the process, eg. when dbus is installed. The way it is now, it seems that fresh installs will break because the uuid is not yet set. kind regards /markus Reproducible: Always Steps to Reproduce: 1. Install gentoo ~x86 with any dependency on existing dbus-uuid 2. Compilation aborts with terribly misleading errors 3. # emerge --info Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.27-11-generic i686) ================================================================= System uname: Linux-2.6.27-11-generic-i686-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-glibc2.0 Timestamp of tree: Mon, 09 Feb 2009 21:45:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.4.4-r13, 2.5.4-r2 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.63 sys-devel/automake: 1.5, 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.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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=pentium-m -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dfx X a52 aac acl alsa arts avahi bash-completion berkdb bluetooth bzip2 caps cddb cdparanoia cdr cli cracklib crypt css cups dbus dri dv dvd dvdr dvdread encode esd ffmpeg firefox flac fortran ftp gdbm ggi gif gimp gmp gnome gnutls gphoto2 gpm gstreamer gtk gtkhtml gzip hal iconv ieee1394 imagemagick imap imlib ipv6 isdnlog jpeg jpeg2k kde kdeprefix kontact lame ldap mad matroskamdnsresponder-compat midi mime mmap mmx modplug mozilla mp3 mpeg mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcmcia pcre pda pdf perl php plasma png pppd python qt3 qt4 raw rdesktop readline reflection rss scanner sdl session smartcard smp sockets spl sse sse2 ssl svg sysfs tcpd theora threads tiff timidity truetype unicode usb vcd vnc vorbis wavpack webkit wifi win32codecs wmf x86 xattr xcomposite xine xinerama xml xorg xpm xscreensaver xv xvid zeroconf 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 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="keyboard mouse evdev synaptics vmmouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia intel vesa vga fbdev vmware" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Same here with sys-apps/dbus-1.1.20 (and has been in that state for quite a long time). The problem pops up whenever I run a Qt4 application remotely via SSH, while it won't happen when launching it from a local KDE3 session.
dbus-uuidgen is currently ran by the init script.
The problem with running it during install is that it would be run even when creating a package for cross compilation. That is why it was chosen to be run from the init script.
OK, this is a problem. But it would seem to me that the cases where people just want to install gentoo are more numerous than the ones cross-compiling. I suppose that this should at least be noted in the messages after dbus was installed. Something like "Please run dbus-uuidgen --ensure now if you are installing gentoo locally on this host." could help. An other option could be a new USE flag "buildlocal" or so.
Is it a problem to generate it with --ensure=${D}/var/... in pkg_postinst ? This would make it work for regular, prefix and binary install.
Should be fixed in 1.3.0-r1. Feel free to reopen if it's still causing you problems.