Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322027 - ~net-misc/networkmanager-0.8 has incorrect postinst message
Summary: ~net-misc/networkmanager-0.8 has incorrect postinst message
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-29 20:24 UTC by P Purkayastha
Modified: 2010-07-07 20:51 UTC (History)
2 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 P Purkayastha 2010-05-29 20:24:24 UTC
networkmanager-0.8 fails to enabled "Available to all users" whereas networkmanager-0.7.2 works just fine.

Reproducible: Always

Steps to Reproduce:
1. emerge "=nm-applet-0.8" and run the following at the end of the emerge (replacing USERNAME with login id):
polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"
2. /etc/init.d/NetworkManager start
3.Start nm-applet, connect to the wireless Access Point and start nm-connection-editor
4. Edit the wireless AP and enable "Available to all users" and click Apply.
5. Close the nm-connection-editor and reopen it

Actual Results:  
The "Available to all users" is deselected. 

Expected Results:  
It should be selected and a corresponding file should be present in /etc/NetworkManager/system-connections

I tried a lot of things to get this to work:
1. Tried the set of instructions in http://en.gentoo-wiki.com/wiki/NetworkManager
2.  Tried the additional set of instructions present in http://wiki.archlinux.org/index.php/NetworkManager
3. Modified /usr/share/config/kdm/Xsession to replace
    eval exec "$session"
with 
    eval exec ck-launch-session "$session"

None of them worked. Since this was a fresh installation of networkmanager, I wasn't sure what configuration I was missing. 

However, reverting to stable net-misc/networkmanager-0.7.2 and nm-applet-0.7.2 fixed the problem immediately. None of the configuration stated in gentoo-wiki or Arch wiki were required. Only requirement was that  polkit-auth should be run to grant the user the privilege. This is clearly a regression of networkmanager. If not, the configuration instruction and documentation, and emerge log info needs to be updated. 

My emerge --info:
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.10.1-r1, 2.6.33-zen2 x86_64)
=================================================================
System uname: Linux-2.6.33-zen2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 27 May 2010 17:30:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -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/X11/xkb /usr/share/config /usr/share/xsessions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.umoss.org/gentoo http://gentoo.oregonstate.edu ftp://gentoo.mirrors.pair.com http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j3"
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="/usr/local/portage/layman/enlightenment-niifaq /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi akonadi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl curlwrappers cxx dbus djvu dri dts dvd dvdr encode exif fam fbcon ffmpeg flac fontconfig fuse gdbm gif gnutls gphoto2 gpm gtk hal iconv ieee1394 jpeg kde lame lcms ldap mad mmap mmx mmx2 mng modules mp3 mp4 mpeg mudflap multilib musepack musicbrainz ncurses nls nptl nptlonly ogg opengl openmp oss pam pango pch pcmcia pcre pdf perl plasma png ppds pppd python qt3support qt4 readline reflection savedconfig sdl semantic-desktop session smp speex spell spl sqlite srt sse sse2 ssl ssse3 startup-notification svg sysfs taglib tcpd theora threads tiff truetype unicode usb vdpau vim-syntax vorbis wicd wmf x264 xattr xcb xcf xcomposite xft xine xinerama xml xorg xosd xpm xulrunner xv xvid xvmc yv12 zeroconf zlib zsh-completion" 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" CAMERAS="*" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" 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, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2010-05-29 21:13:00 UTC
What package provides polkit-auth, cause it doesn't look
like it's sys-auth/polkit ?
Comment 2 P Purkayastha 2010-05-29 21:19:50 UTC
(In reply to comment #1)
> What package provides polkit-auth, cause it doesn't look
> like it's sys-auth/polkit ?
> 

It is provided by sys-auth/policykit
Comment 3 Rafał Mużyło 2010-05-30 03:58:26 UTC
Well, recent (>=0.4.0) consolekit uses polkit, not the older, 
incompatible releases.
Comment 4 P Purkayastha 2010-05-30 05:05:49 UTC
(In reply to comment #3)
> Well, recent (>=0.4.0) consolekit uses polkit, not the older, 
> incompatible releases.
> 

I don't understand what you want to imply. The latest consolekit in portage is 0.4.1 and it is stable. Similarly, the latest polkit is 0.96-r1 which is also stable. The latest policykit-0.9-r1 is stable too. 

These same versions of the packages are installed in both the cases when networkmanager-0.8-r1 and networkmanager-0.7.2 are installed. In the former case, I am unable to make my connection available to everyone (system connection) while in the latter case I am able to do so. 

I don't see what is incompatible here. Only thing I can infer is that this is a regression in networkmanager.
Comment 5 Rafał Mużyło 2010-05-30 14:27:31 UTC
Well, duh.

NetworkManager 0.7.2 uses policykit.
NetworkManager 0.8 uses polkit.
granting anything in policykit has no effect on polkit.
Comment 6 P Purkayastha 2010-05-30 15:00:48 UTC
(In reply to comment #5)
> Well, duh.
> 
> NetworkManager 0.7.2 uses policykit.
> NetworkManager 0.8 uses polkit.
> granting anything in policykit has no effect on polkit.
> 

Well, thank you for that piece of information. This means that the documentation and emerge log is incomplete (and incorrect).  I will try to remove [regression] from the Summary.
Comment 7 Rafał Mużyło 2010-05-30 18:21:22 UTC
OK, I don't use NetworkManager and only now I've took
a look at the ebuilds.
Comment 8 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-07-07 20:51:30 UTC
The inaccurate polkit-auth message was removed by dagger a while back. No user-side configuration is required to get networkmanager to work. As long as you have consolekit sessions configured and working correctly, nm-applet should work with system-wide configurations.

Since the message was fixed by dagger, closing as FIXED. Thanks for reporting.