Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255249 - sys-power/powermgmt-base-1.22 and sys-power/pm-utils-1.1.1 need not block each other
Summary: sys-power/powermgmt-base-1.22 and sys-power/pm-utils-1.1.1 need not block eac...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
: 223745 245202 256008 279593 302595 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-17 10:57 UTC by Holger Ackermann
Modified: 2014-12-27 18:32 UTC (History)
18 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
my `emerge --info` (info,4.18 KB, text/plain)
2009-01-17 18:50 UTC, Maciej Józiewicz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Ackermann 2009-01-17 10:57:54 UTC
sys-power/powermgmt-base is blocking sys-power/pm-utils.

powermgmt-base is pulled in by laptop-mode-tools via apmd
pm-utils is pulled in by hal 


I resolved this by inserting "app-laptop/laptop-mode-tools -apm" in package.use, but there should not be the block in the first place.


# emerge -auDNvt world
[ebuild   R   ] app-laptop/laptop-mode-tools-1.34  USE="acpi apm*" 0 kB
[nomerge      ]  sys-apps/apmd-3.2.2_p5  USE="X nls"
[ebuild  N    ]   sys-power/powermgmt-base-1.22  11 kB
[blocks B     ] sys-power/powermgmt-base ("sys-power/powermgmt-base" is blocking sys-power/pm-utils-1.1.1)

# equery list -i pm-utils
[ Searching for package 'pm-utils' in all categories among: ]
 * installed packages
[I--] [  ] sys-power/pm-utils-1.1.1 (0)

# equery list -i hal
[ Searching for package 'hal' in all categories among: ]
 * installed packages
[I--] [  ] app-misc/hal-info-20080508 (0)
[I--] [  ] sys-apps/hal-0.5.11-r1 (0) 

Reproducible: Always

Steps to Reproduce:
1. USE="laptop apm" 
2. emerge -pD hal laptop-mode-tools




Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.7-r2, 2.6.28-gentoo x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-glibc2.2.5
Timestamp of tree: Fri, 16 Jan 2009 18:45:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.7-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -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/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe "
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ "
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/gcc-porting /usr/portage/local/layman/java-overlay /usr/portage/local/layman/yarik-overlay /usr/local/portage"
SYNC="rsync://rsync.B15.lan/gentoo-portage/ "
USE="X a52 aac acl acpi alsa amd64 apache2 apm bash-completion berkdb bzip2 cairo caps cddb cdr cjk cli cracklib crypt ctype cups dbus dri dts dvb dvd dvdnac dvdr dvdread encode fam fat ffmpeg flac fortran ftp fuse gd gdbm gif gnutls gpm hal http iconv id3tag ieee1394 imap innodb ipv6 ipw3945 isdnlog java javascript jpeg jpeg2k kde laptop ldap libffi live loop-aes mad midi mikmod mime mmx mp3 mp4 mpeg mplayer mudflap multilib musicbrainz mysql ncurses nls nptl nptlonly nsplugin ntfs ntpl ntplonly ogg opengl openmp pam pcre pdf perl png postgres postgresql pppd python qt3 qt3support qt4 quicktime rar readline reflection samba session sndfile sockets sound spl sse sse2 sse3 ssl ssse3 startup-notification stream subversion svg sysfs tcl tcpd tetex theora tiff tk truetype twolame unicode v4l v4l2 vcd vim-with-x vorbis xine xinerama xml xorg xulrunner xvid xvmc zip zlib" 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 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="keyboard mouse synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Maciej Józiewicz 2009-01-17 18:49:25 UTC
I have the same problem. In my case powermgmt-base is pulled in by ampd which is pulled in by gnome-applets-2.22.3 with "apm" USE set. I checked that at this point all 2.24 gnome-applets ebuilds also need apmd if use flag apm is set.

I will now check what do I loose if I get rid of the "apm" USE.
Comment 2 Maciej Józiewicz 2009-01-17 18:50:03 UTC
Created attachment 178807 [details]
my `emerge --info`
Comment 3 Maciej Józiewicz 2009-01-17 22:33:24 UTC
I got rid of pm-utils (hal with -laptop) in favour of uswsusp (hibernate-script and sys-power/suspend) so I don't have the problem any more.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-01-19 05:00:42 UTC
(In reply to comment #0)

> package.use, but there should not be the block in the first place.

Why not? It had to be put there for a reason, probably a file collision.
Comment 5 Henrique Dias 2009-01-19 14:18:28 UTC
Is possible solve this problem without use -laptop in hal package?

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] sys-power/powermgmt-base-1.22 
[blocks B     ] sys-power/powermgmt-base ("sys-power/powermgmt-base" is blocking sys-power/pm-utils-1.2.3-r1)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
Comment 6 Philippe Chaintreuil 2009-01-19 14:43:28 UTC
Note, this was caused by bug #187568.
Comment 7 Philippe Chaintreuil 2009-01-19 14:48:38 UTC
From bug #187568: both powermgmt-base and pm-utils supply on_ac_power + it's man page.
Comment 8 Philippe Chaintreuil 2009-01-19 15:16:07 UTC
It seems like they both offer a different way of detecting if your system is running on AC.  pm-util's checks with HAL, powermgmt-base checks more directly via apci executables.

It seems like there should be an on_ac_power virtual added.
Comment 9 Holger Ackermann 2009-01-19 17:06:37 UTC
pm-utils-0.99.4 and powermgmt-base-1.22 coexisted for a long time peacefully on my laptop. Now with pm-utils-1.1.1 suddenly a block occurs. That's something I find annoying in the stable tree.

My questions:
- What is the preferred way to resolve this block manually?
- Can this block be prevented with some ebuild hacking?
(- If HAL provides power management functionality through pm-utils, can I safely drop laptop-mode-tools which pull in powermgmt-base)
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-20 15:26:45 UTC
I guess this could be resolved differently by either having only the one package installing that man page or by making the USE flags more intuitive.
Comment 11 Philippe Chaintreuil 2009-01-20 16:43:04 UTC
Well both packages install an on_ac_power executable (script) in addition to a manpage, but they ask different sources.  Right now I gather they answer the same question but determine it different ways.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-22 19:15:42 UTC
*** Bug 256008 has been marked as a duplicate of this bug. ***
Comment 13 Marcin D. Mikielewicz 2009-01-27 00:18:25 UTC
Try to put "-apm" in USE and remove all packages which needed for dependency apmd

Try first this:
emerge -C sys-power/powermgmt-base apmd wmbattery

and maybe reemerge(or remove): laptop-mode-tools gnome-applets

This works for me.
Comment 14 Li Ruibin 2009-02-01 01:34:09 UTC
I am with the same problem.
Which way is the best to remove this block?
Comment 15 Matt Moyles 2009-04-15 05:54:27 UTC
(In reply to comment #14)
> I am with the same problem.
> Which way is the best to remove this block?
> 

hey all, i dont know if this is the best way to resolve the bug but here is what I did:
I unasked the latest version of pm-utils (not sure if this is actually required)
I then unmerged powermgmt-base using :emerge -avC sys-power/powermgmt-base
I then emerged pm-utils and there were no blocks.

I think powermgmt-base might have got pulled in from an earlier package i installed.  (hibernate-script possibly?)



Comment 16 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-10 09:20:35 UTC
*** Bug 245202 has been marked as a duplicate of this bug. ***
Comment 17 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-10 09:20:57 UTC
*** Bug 223745 has been marked as a duplicate of this bug. ***
Comment 18 Andrey 2009-07-06 18:03:57 UTC
Same trouble. I tried to control the backlight of laptop and wrote apm USE flag. emerge -uDN world showed this block. Are any ways to resolve this bug without unmerge or removing apm flag?
Comment 19 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-30 07:20:55 UTC
*** Bug 279593 has been marked as a duplicate of this bug. ***
Comment 20 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-28 11:26:03 UTC
*** Bug 302595 has been marked as a duplicate of this bug. ***
Comment 21 Samuli Suominen (RETIRED) gentoo-dev 2010-07-08 01:41:26 UTC
pm-utils-1.4.0 now blocks laptop-mode-tools:

commit a4e4b0ce456c66d01d9c5f09a73242d2db6c65e9
Author: Victor Lowther <victor.lowther@gmail.com>
Date:   Sat Jun 12 13:07:51 2010 -0500

    Update git tree packaging to conflict with laptop-mode-tools
    
    The new powermanagement scripts conflict with laptop-mode-tools.
    Make sure both are not installed at the same time.
Comment 22 Samuli Suominen (RETIRED) gentoo-dev 2010-07-08 07:11:15 UTC
Sorry, wasn't the purpose to close this.
Comment 23 Samuli Suominen (RETIRED) gentoo-dev 2010-07-08 07:43:11 UTC
This bug is now solved with pm-utils-1.4.1 and powermgmt-base-1.31 with the following commits,

  08 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> pm-utils-1.4.1.ebuild:
  Don't block sys-power/powermgmt-base anymore if USE="pm-utils" is enabled
  wrt #255249.

*powermgmt-base-1.31 (08 Jul 2010)

  08 Jul 2010; Samuli Suominen <ssuominen@gentoo.org>
  +powermgmt-base-1.31.ebuild, metadata.xml:
  Version bump. Use on_ac_power from sys-power/pm-utils with USE="pm-utils"
  wrt #255249.

(The problem is Comment #21 is different issue, not about on_ac_power... Not sure if it's a problem at all yet. Either way, new bug for that if any.)