Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391865 - sys-auth/polkit logs debug information with debug USE flag disabled
Summary: sys-auth/polkit logs debug information with debug USE flag disabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nirbheek Chauhan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-25 12:48 UTC by Maksim 'max_posedon' Melnikau
Modified: 2012-07-07 08:24 UTC (History)
1 user (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 Maksim 'max_posedon' Melnikau 2011-11-25 12:48:59 UTC
Looks like with USE="-debug" polkit compiles in some "debug" mode, in which GLIB's g_debug still prints a lot of information.

[ebuild   R    ] sys-auth/polkit-0.102  USE="introspection kde nls pam -debug -doc -examples -gtk" 0 kB


[367447.355200] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of caller is unix-user:max_posedon
[367447.355212] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of subject is unix-user:max_posedon
[367447.355222] dbus-daemon[2163]: ** (polkitd:2186): DEBUG: checking whether unix-process:7895:32204878 is authorized for org.kde.powerdevil.backlighthelper.brightness
[367447.356523] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:   0x6632a0
[367447.356621] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  subject is in session /org/freedesktop/ConsoleKit/Session5 (local=1 active=1)
[367447.356805] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  is authorized (has implicit authorization local=1 active=1)
[367447.356814] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:
[367447.358222] dbus-daemon[2163]: ** (polkitd:2186): DEBUG: system-bus-name::1.861 is inquiring whether unix-process:7895:32204878 is authorized for org.kde.powerdevil.backlighthelper.setbrightness
[367447.358704] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of caller is unix-user:max_posedon
[367447.358779] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of subject is unix-user:max_posedon
[367447.358788] dbus-daemon[2163]: ** (polkitd:2186): DEBUG: checking whether unix-process:7895:32204878 is authorized for org.kde.powerdevil.backlighthelper.setbrightness
[367447.360096] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:   0x65c790
[367447.360149] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  subject is in session /org/freedesktop/ConsoleKit/Session5 (local=1 active=1)
[367447.360293] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  is authorized (has implicit authorization local=1 active=1)
[367447.360341] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:
[367447.361483] dbus-daemon[2163]: ** (polkitd:2186): DEBUG: system-bus-name::1.861 is inquiring whether unix-process:7895:32204878 is authorized for org.kde.powerdevil.backlighthelper.setbrightness
[367447.361965] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of caller is unix-user:max_posedon
[367447.362021] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of subject is unix-user:max_posedon
[367447.362064] dbus-daemon[2163]: ** (polkitd:2186): DEBUG: checking whether unix-process:7895:32204878 is authorized for org.kde.powerdevil.backlighthelper.setbrightness
[367447.363289] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:   0x712b80
[367447.363338] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  subject is in session /org/freedesktop/ConsoleKit/Session5 (local=1 active=1)
[367447.363482] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  is authorized (has implicit authorization local=1 active=1)
[367447.363523] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:
[367448.372377] dbus-daemon[2163]: ** (polkitd:2186): DEBUG: system-bus-name::1.3 is inquiring whether system-bus-name::1.860 is authorized for org.freedesktop.NetworkManager.use-user-connections
[367448.373012] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of caller is unix-user:root
[367448.373506] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of subject is unix-user:max_posedon
[367448.373516] dbus-daemon[2163]: ** (polkitd:2186): DEBUG: checking whether system-bus-name::1.860 is authorized for org.freedesktop.NetworkManager.use-user-connections
[367448.376117] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:   0x7012d0
[367448.376181] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  subject is in session /org/freedesktop/ConsoleKit/Session5 (local=1 active=1)
[367448.376332] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  is authorized (has implicit authorization local=1 active=1)
[367448.376340] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:
[367448.376618] dbus-daemon[2163]: ** (polkitd:2186): DEBUG: system-bus-name::1.3 is inquiring whether system-bus-name::1.860 is authorized for org.freedesktop.NetworkManager.network-control
[367448.377180] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of caller is unix-user:root
[367448.377644] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of subject is unix-user:max_posedon
[367448.377656] dbus-daemon[2163]: ** (polkitd:2186): DEBUG: checking whether system-bus-name::1.860 is authorized for org.freedesktop.NetworkManager.network-control
[367448.379345] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:   0x7f06a809cc10
[367448.379355] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  subject is in session /org/freedesktop/ConsoleKit/Session5 (local=1 active=1)
[367448.379507] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  is authorized (has implicit authorization local=1 active=1)


Reproducible: Always

Steps to Reproduce:
1. USE="-debug" emerge polkit
2. run it
3. look at some logs (I use systemd and looking at dmesg)
Actual Results:  
[367448.377180] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of caller is unix-user:root
[367448.377644] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  user of subject is unix-user:max_posedon
[367448.377656] dbus-daemon[2163]: ** (polkitd:2186): DEBUG: checking whether system-bus-name::1.860 is authorized for org.freedesktop.NetworkManager.network-control
[367448.379345] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:   0x7f06a809cc10
[367448.379355] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  subject is in session /org/freedesktop/ConsoleKit/Session5 (local=1 active=1)
[367448.379507] dbus-daemon[2163]: ** (polkitd:2186): DEBUG:  is authorized (has implicit authorization local=1 active=1)


Expected Results:  
DEBUG information shouldn't be printed

m_melnikau-vaio polkit-0.102 # emerge --info
Portage 2.1.10.36 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.1, glibc-2.13-r4, 3.1.1-gentoo x86_64)
=================================================================
System uname: Linux-3.1.1-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_M_430_@_2.27GHz-with-gentoo-2.1
Timestamp of tree: Wed, 23 Nov 2011 07:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.4-r2, 4.5.3-r1, 4.6.1-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo sunrise systemd qting-edge local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0"
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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/sunrise /var/lib/layman/systemd /var/lib/layman/qting-edge /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl cxx dbus declarative djvu dri dts dv dvd dvdr emboss encode exif fam ffmpeg firefox flac ftp gdbm gdu gif gnome-keyring gnutls gpm gps gsm gstreamer iconv icu imagemagick ios ipod ipv6 jingle jpeg jpeg2k kde kipi lame latex lcms ldap libcaca libnotify lm_sensors lzma lzo mad mmx mng modules mp3 mp4 mpeg mplayer mtp mudflap multilib musicbrainz ncurses netboot networkmanager nls nptl nptlonly ogg openal opengl openmp oscar pam pango pcre pdf phonon plasma png policykit portaudio postgres ppds pppd pulseaudio qt3support qt4 rdesktop readline ruby samba sdl semantic-desktop session smp speex spell sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs taglib tcpd theora tiff truetype udev unicode usb v4l v4l2 vaapi vim-syntax vnc vorbis wifi x264 xcb xcomposite xine xinerama xml xorg xscreensaver xulrunner xv xvid zeroconf zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon dummy fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-06-27 10:34:57 UTC
Maybe we should remove entire USE="debug" and the switch since it doesn't appear to do much of anything...

Reported here:

https://bugs.freedesktop.org/show_bug.cgi?id=51470
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-07-07 08:24:44 UTC
The flag was removed by upstream:

http://cgit.freedesktop.org/polkit/commit/?id=d45564a8b3b90c9dd990746ed082f4302fc017c1

So I've removed the USE flag from our ebuild accordingly:

+  07 Jul 2012; Samuli Suominen <ssuominen@gentoo.org> polkit-0.106-r7.ebuild:
+  Remove USE="debug" because --enable/--disable-verbose-mode is no-op wrt
+  #391865 by Maksim Melnikau

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/polkit-0.106-r7.ebuild?r1=1.1&r2=1.2