Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Systemd upower
Date: Mon, 09 Jun 2014 16:18:23
Message-Id: 5395DF01.5000903@gmail.com
In Reply to: Re: [gentoo-user] Systemd upower by Alan Mackenzie
1 On 06/09/2014 06:34 PM, Alan Mackenzie wrote:
2 > On Tue, Jun 03, 2014 at 05:11:32PM +0200, Silvio Siefke wrote:
3 >> On Tue, 3 Jun 2014 09:29:35 -0500 Canek Peláez Valdés
4 >> <caneko@×××××.com> wrote:
5 >>> If I understood correctly, you need to:
6 >>> emerge -C sys-power/upower
7 >>> emerge -1v sys-power/upower-pm-utils
8 >>> and then update world as usual.
9 >> Yes is correct, i has find out after read ebuilds from the packages which
10 >> need upower.
11 > I do this:
12 >
13 > emerge --unmerge upower
14 > emerge -1vp sys-power/upower-pm-utils
15 >
16 > , and I still get portage threatening to merge that other init system:
17 >
18 > These are the packages that would be merged, in order:
19 >
20 > Calculating dependencies... done!
21 > [ebuild N ] dev-python/lxml-3.3.5 USE="threads -beautifulsoup3 -doc -examples" PYTHON_TARGETS="python2_7 python3_3 -python3_2 (-python3_4)" 3,387 kB
22 > [ebuild N ] sys-apps/systemd-212-r5:0/2 USE="acl filecaps firmware-loader gudev introspection kmod pam policykit python seccomp -audit -cryptsetup -doc -gcrypt -http (-kdbus) -lzma -qrcode (-selinux) (-ssl) {-test} -vanilla -xattr" ABI_X86="(64) (-32) (-x32)" PYTHON_SINGLE_TARGET="python2_7 -python3_2 -python3_3" PYTHON_TARGETS="python2_7 python3_3 -python3_2" 2,659 kB
23 > [ebuild N ] sys-apps/gentoo-systemd-integration-4 52 kB
24 > [ebuild N ] virtual/libgudev-208 USE="introspection -static-libs" ABI_X86="(64) (-32) (-x32)" 0 kB
25 > [ebuild N ] sys-power/upower-pm-utils-0.9.23 USE="introspection -doc -ios" 416 kB
26 > [blocks B ] sys-fs/udev ("sys-fs/udev" is blocking sys-apps/systemd-212-r5, sys-apps/gentoo-systemd-integration-4)
27 > [blocks B ] sys-apps/systemd ("sys-apps/systemd" is blocking sys-fs/udev-208)
28 >
29 > Total: 5 packages (5 new), Size of downloads: 6,513 kB
30 > Conflict: 2 blocks (2 unsatisfied)
31 >
32 > Would somebody please help me sort this out. What am I doing wrong?
33 > Where is systemd coming from? I look in upower-pm-utils-0.9.23.ebuild,
34 > and the only reference to systemd seems to be right at the beginning:
35 >
36 > EAPI=5
37 > inherit eutils systemd
38 >
39 > (, plus a couple of inconsequential references near the end.) I'm not
40 > quite sure exactly what "inherit" means here, but the FM (man (5) ebuild)
41 > says:
42 >
43 > Inherit is portage's maintenance of extra classes of functions that
44 > are external to ebuilds and provided as inheritable capabilities and
45 > data. They define functions and set data types as drop-in replacements,
46 > expanded, and simplified routines for extremely common tasks to
47 > streamline the build process. Call to inherit cannot depend on conditions
48 > which can vary in given ebuild. Specification of the eclasses contains
49 > only their name and not the .eclass extension. Also note that the
50 > inherit statement must come before other variable declarations unless
51 > these variables are used in global scope of eclasses.
52 >
53 > , which, being vague, leaves me still unsure what "inherit" means. ;-(
54 > Is there any documentation anywhere of what "inherit" actually DOES?
55 >
56 > What am I doing wrong?
57 >
58 >> Thanks for help & Nice Day
59 >> Silvio
60 Can you please verify that:
61 (1). sys-power/upower is gone by running this:
62 equery l (that's a lower case 'l') sys-power/upower
63 (2). sys-power/upower-pm-utils has been installed:
64 equery l sys-power/upower-pm-utils
65 (3). the 'p' flag does not actually install anything:
66 emerge(1)
67 --pretend (-p)
68 Instead of actually performing the merge, simply
69 display what
70 *would* have been installed if --pretend weren't used.
71 So if step 2 results in the negative, you may want to run the command
72 line without the 'p' flag, like so:
73 emerge -av1 sys-power/upower-pm-utils