Bug 209571 - sys-apps/dbus-1.1.4 doesn't compile - automagic sys-process/audit dependency
Bug#: 209571 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: TEST-REQUEST Assigned To: gentopia@gentoo.org Reported By: jamatik@wheep.de
Component: Core system
URL: 
Summary: sys-apps/dbus-1.1.4 doesn't compile - automagic sys-process/audit dependency
Keywords:  InCVS
Status Whiteboard: 
Opened: 2008-02-10 18:50 0000
Description:   Opened: 2008-02-10 18:50 0000
new dbus doesn't compile, but is not hardmasked or seems to get fixed! why? Has
noone else this problem?

--------------------------------------------------------------------------------

 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -fPIC
-DDBUS_COMPILATION -DDBUS_MACHINE_UUID_FILE=\"/var/lib/dbus/machine-id\"
-DDBUS_SYSTEM_CONFIG_FILE=\"/etc/dbus-1/system.conf\"
-DDBUS_SESSION_CONFIG_FILE=\"/etc/dbus-1/session.conf\" -O2 -march=pentium-m
-msse -mmmx -msse2 -pipe -rdynamic -Wall -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -MT
dbus-sysdeps-util-unix.lo -MD -MP -MF .deps/dbus-sysdeps-util-unix.Tpo -c
dbus-sysdeps-util-unix.c  -fPIC -DPIC -o .libs/dbus-sysdeps-util-unix.o
mv -f .deps/dbus-sysdeps-util.Tpo .deps/dbus-sysdeps-util.Plo
/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I.. -I.. -I..  -fPIC -DDBUS_COMPILATION
-DDBUS_MACHINE_UUID_FILE=\""/var/lib/dbus/machine-id"\"
-DDBUS_SYSTEM_CONFIG_FILE=\""/etc/dbus-1/system.conf"\"
-DDBUS_SESSION_CONFIG_FILE=\""/etc/dbus-1/session.conf"\"    -O2
-march=pentium-m -msse -mmmx -msse2 -pipe -rdynamic -Wall -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -MT
dbus-test.lo -MD -MP -MF .deps/dbus-test.Tpo -c -o dbus-test.lo dbus-test.c
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -fPIC
-DDBUS_COMPILATION -DDBUS_MACHINE_UUID_FILE=\"/var/lib/dbus/machine-id\"
-DDBUS_SYSTEM_CONFIG_FILE=\"/etc/dbus-1/system.conf\"
-DDBUS_SESSION_CONFIG_FILE=\"/etc/dbus-1/session.conf\" -O2 -march=pentium-m
-msse -mmmx -msse2 -pipe -rdynamic -Wall -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -MT
dbus-test.lo -MD -MP -MF .deps/dbus-test.Tpo -c dbus-test.c  -fPIC -DPIC -o
.libs/dbus-test.o
dbus-sysdeps-util-unix.c: In function '_dbus_change_to_daemon_user':
dbus-sysdeps-util-unix.c:343: error: 'CAP_AUDIT_WRITE' undeclared (first use in
this function)
dbus-sysdeps-util-unix.c:343: error: (Each undeclared identifier is reported
only once
dbus-sysdeps-util-unix.c:343: error: for each function it appears in.)
dbus-sysdeps-util-unix.c:344: warning: initialization makes integer from
pointer without a cast
make[3]: *** [dbus-sysdeps-util-unix.lo] Fehler 1
make[3]: *** Warte auf noch nicht beendete Prozesse...
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -fPIC
-DDBUS_COMPILATION -DDBUS_MACHINE_UUID_FILE=\"/var/lib/dbus/machine-id\"
-DDBUS_SYSTEM_CONFIG_FILE=\"/etc/dbus-1/system.conf\"
-DDBUS_SESSION_CONFIG_FILE=\"/etc/dbus-1/session.conf\" -O2 -march=pentium-m
-msse -mmmx -msse2 -pipe -rdynamic -Wall -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -MT
dbus-test.lo -MD -MP -MF .deps/dbus-test.Tpo -c dbus-test.c -o dbus-test.o
>/dev/null 2>&1
mv -f .deps/dbus-test.Tpo .deps/dbus-test.Plo
make[3]: Leaving directory
`/var/tmp/portage/sys-apps/dbus-1.1.4/work/dbus-1.1.4/dbus'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory
`/var/tmp/portage/sys-apps/dbus-1.1.4/work/dbus-1.1.4/dbus'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory
`/var/tmp/portage/sys-apps/dbus-1.1.4/work/dbus-1.1.4'
make: *** [all] Fehler 2
 * 
 * ERROR: sys-apps/dbus-1.1.4 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_compile
 *             environment, line 2802:  Called die
 * The specific snippet of code:
 *       emake || die "make failed"
 *  The die message:
 *   make failed
 * 
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/sys-apps/dbus-1.1.4/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/sys-apps/dbus-1.1.4/temp/environment'.
 * 
-------------------------------------------------------------------------------
ask for mor info

Reproducible: Always

------- Comment #1 From Jakub Moc (RETIRED) 2008-02-10 19:41:12 0000 -------
Maybe you could post your emerge --info.

------- Comment #2 From jamatik 2008-02-10 22:43:18 0000 -------
Portage 2.1.4.1 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1,
2.6.23-gentoo-r6 i686)
=================================================================
System uname: 2.6.23-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1.60GHz
Timestamp of tree: Sun, 10 Feb 2008 01:46:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 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.24
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -msse -mmmx -msse2 -pipe"
CHOST="i686-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/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/splash /etc/terminfo
/etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -msse -mmmx -msse2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms
strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
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://silverchair/gentoo-portage"
USE="7zip X a52 aac aalib accessibility acl acpi additions aim alsa ao apache2
applet ares artworkextra async audacious audiofile audit avahi berkdb bidi
bitmap-fonts bittorrent blender-game bluetooth bogofilter branding bzip2 cairo
caps cdda cddb cdio cdparanoia cdr chardet cli console corba cpudetection
cracklib crypt css cups cursors dbus dedicated devhelp devil directfb
disk-partition divx dri dts dvb dvd dvdnav dvdr dvdread eds emboss emerald
emovix encode epiphany esd evo exif expat fam fat fbcon fbcondecor fbsplash
ffmpeg firefox flac foomaticdb fortran ftp fuse gajim gd gdbm gdm gedit gif
gimp gimpprint glade glib glitz glut gmedia gmp gnokii gnome gnomecanvas gnutls
gphoto2 gpm graphviz gs gsl gstreamer gtk gtkhtml guile hal hdri hub ical
icecast icons iconv icq id3tag idle idn ieee1394 imagemagick imap inherit-graph
ipv6 irc irda isdnlog jabber jack java jce jfs jingle joystick jpeg jpeg2k
kerberos keyring kqemu lame laptop lcms ldap libgcrypt libnotify libsamplerate
libwww live logitech-mouse logrotate lzo mad maildir matroska md5sum
mdnsresponder-compat metalink midi mikmod mjpeg mmap mmx mng modplug mono
mozdevelop mozdom mozilla mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer msn mtp
mudflap musepack musicbrainz mysql nautilus ncurses network network-cron
networking nfs nls nntp nptl nptlonly nsplugin ntfs nxclient offensive ogg
openal openexr opengl openmp oss otr pam pango parport pascal pcmcia pcre pdf
perl php pic player plib png posix postscript povray ppds pppd pulseaudio
python qt3support quicktime rar rdesktop readline real realmedia reflection
regex reiser4 reiserfs restrict-javascript rrdtool rss rtc rtsp ruby samba sasl
scanner screen sdl server session shout sid skins slang smime sms sndfile
soundtouch sourceview speex spell spl sqlite sqlite3 srt srv sse sse2 ssl
startup-notification stream subtitles subversion svg svga sysfs taglib tcl tcpd
tetex tga theora threads threadsafe tidy tiff timidity tk totem trayicon
truetype truetype-fonts twolame type1-fonts unicode usb userlocales utils v4l
v4l2 valgrind vamp vcd vidix vnc vorbis vorbis-psy wavpack wifi win32codecs wma
wmp wxwindows x264 x86 xattr xcb xchatdccserver xcomposite xerces-c xforms xfs
xhtml xine xinerama xiph xml xmlreader xmlwriter xorg xosd xpm xsl xv xvid xvmc
yahoo yv12 zip zlib" ALSA_CARDS="intel8x0 intel8x0m" 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" ELIBC="glibc"
INPUT_DEVICES="mouse keyboard synaptics joystick evdev" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon ati vga fbdev vesa v4l
fglrx"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #3 From Jakub Moc (RETIRED) 2008-02-10 22:55:35 0000 -------
Your sys-libs/libcap sucks; either use ~arch version of it or use stable dbus.
On that note, dbus has automagic sys-process/audit dependency which is causing
this.

------- Comment #4 From jamatik 2008-02-11 22:06:27 0000 -------
(In reply to comment #3)
> Your sys-libs/libcap sucks; either use ~arch version of it or use stable dbus.
> On that note, dbus has automagic sys-process/audit dependency which is causing
> this.
> 
sys-libs/libcap correct ~arch version should be a dependency of the ebuild,
shouldn't it?

------- Comment #5 From Steev Klimaszewski 2008-02-12 10:30:58 0000 -------
No, it should not - in the case of DBus, libaudit is *only* used when in
context with SELinux.  What should be happening is we pass --disable-libaudit
if you aren't using a SELinux profile.  Should be getting to this soon.  Don't
have a checkout handy.  If you would like to test this, add the dbus 1.1.4
ebuild to an overlay, and underneath the line 

$(use_enable selinux) \

add

$(use_enable selinux libaudit) \

Please let me know if this helps at all.

------- Comment #6 From Steev Klimaszewski 2008-02-12 13:02:38 0000 -------
Actually, I went ahead and did a checkout on my 2.4ghz, this should fix your
issue - I am not about to install audit on my system (I don't really understand
the use of it without acls and I am not about to set them up just for that) so
please let me know if this resolves the issue for you.