public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Networkmanager and gnome-3.6 (negating a default USE)
@ 2013-07-16 13:49 gottlieb
  2013-07-16 13:56 ` Wang Xuerui
  2013-07-16 14:28 ` Neil Bothwick
  0 siblings, 2 replies; 8+ messages in thread
From: gottlieb @ 2013-07-16 13:49 UTC (permalink / raw
  To: gentoo-user

(This is not a msg about networkmanager's quality.)

My main system is ~amd64 and runs gnome-3.6.

I wanted to experiment with removing networkmanager.
I do not have networkmanager in world and did not have it in make.conf.
However gnome-3.6 by default pulls it in.  For example
gnome-control-center-3.6.3-r1.ebuild contains

  IUSE="+bluetooth +colord +cups +gnome-online-accounts +i18n
  input_devices_wacom kerberos +networkmanager +socialweb systemd v4l"

and

  COMMON_DEPEND="
    ...
    networkmanager? (
    >=gnome-extra/nm-applet-0.9.1.90
    >=net-misc/networkmanager-0.8.997 )

I believe the first says that "if the networkmanager use flag is neither
set nor unset, treat it as set" and the second says
"if the use flag is set (or treated as set), require
net-misc/networkmanager".

I don't see how to have the flag "unset" since its default is "set".  
For example, editing make.conf to add

  USE="-networkmanager"

(I had no USE in make.conf previously) has no effect
since networkmanager was not in USE before.

How do I specify that the networkmanager USE flag is explicitly unset
(rather than just "not explicitly set").

thanks,
allan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Networkmanager and gnome-3.6 (negating a default USE)
  2013-07-16 13:49 [gentoo-user] Networkmanager and gnome-3.6 (negating a default USE) gottlieb
@ 2013-07-16 13:56 ` Wang Xuerui
  2013-07-17  0:47   ` gottlieb
  2013-07-16 14:28 ` Neil Bothwick
  1 sibling, 1 reply; 8+ messages in thread
From: Wang Xuerui @ 2013-07-16 13:56 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1368 bytes --]

在 2013-7-16 下午9:50, <gottlieb@nyu.edu>写道:
>
> (This is not a msg about networkmanager's quality.)
>
> My main system is ~amd64 and runs gnome-3.6.
>
> I wanted to experiment with removing networkmanager.
> I do not have networkmanager in world and did not have it in make.conf.
> However gnome-3.6 by default pulls it in.  For example
> gnome-control-center-3.6.3-r1.ebuild contains
>
>   IUSE="+bluetooth +colord +cups +gnome-online-accounts +i18n
>   input_devices_wacom kerberos +networkmanager +socialweb systemd v4l"
>
> and
>
>   COMMON_DEPEND="
>     ...
>     networkmanager? (
>     >=gnome-extra/nm-applet-0.9.1.90
>     >=net-misc/networkmanager-0.8.997 )
>
> I believe the first says that "if the networkmanager use flag is neither
> set nor unset, treat it as set" and the second says
> "if the use flag is set (or treated as set), require
> net-misc/networkmanager".
>
> I don't see how to have the flag "unset" since its default is "set".
> For example, editing make.conf to add
>
>   USE="-networkmanager"
>
> (I had no USE in make.conf previously) has no effect
> since networkmanager was not in USE before.
>
> How do I specify that the networkmanager USE flag is explicitly unset
> (rather than just "not explicitly set").
>
> thanks,
> allan
>

Just write a package.use file to handle that.

[-- Attachment #2: Type: text/html, Size: 1826 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Networkmanager and gnome-3.6 (negating a default USE)
  2013-07-16 13:49 [gentoo-user] Networkmanager and gnome-3.6 (negating a default USE) gottlieb
  2013-07-16 13:56 ` Wang Xuerui
@ 2013-07-16 14:28 ` Neil Bothwick
  2013-07-17  0:44   ` gottlieb
  1 sibling, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2013-07-16 14:28 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]

On Tue, 16 Jul 2013 09:49:42 -0400, gottlieb@nyu.edu wrote:

> nome-control-center-3.6.3-r1.ebuild contains
> 
>   IUSE="+bluetooth +colord +cups +gnome-online-accounts +i18n
>   input_devices_wacom kerberos +networkmanager +socialweb systemd v4l"
> 
> and
> 
>   COMMON_DEPEND="
>     ...
>     networkmanager? (
>     >=gnome-extra/nm-applet-0.9.1.90
>     >=net-misc/networkmanager-0.8.997 )  
> 
> I believe the first says that "if the networkmanager use flag is neither
> set nor unset, treat it as set" and the second says
> "if the use flag is set (or treated as set), require
> net-misc/networkmanager".

That's correct. The + just means it defaults to on, instead of the usual
off default for USE flags.

> I don't see how to have the flag "unset" since its default is "set".  
> For example, editing make.conf to add
> 
>   USE="-networkmanager"
> 
> (I had no USE in make.conf previously) has no effect

That should do exactly what you want, although you can do it
in /etc/portage/package.use too (although that makes no sense in this
case as the decision on which network manager to use must be global).

Are you sure that you have spelled the USE flag correctly, that one has
wasted significant chunks of my life before now 9and will probably do so
again in the future).

> since networkmanager was not in USE before.

This is irrelevant. No USE flags are in make.conf until you put them
there.


-- 
Neil Bothwick

In the begining, there was nothing.
And God said "Let there be light" and there was light.
There was still nothing, but you could see it better.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Networkmanager and gnome-3.6 (negating a default USE)
  2013-07-16 14:28 ` Neil Bothwick
@ 2013-07-17  0:44   ` gottlieb
  2013-07-17  1:20     ` gottlieb
  2013-07-17  9:33     ` Neil Bothwick
  0 siblings, 2 replies; 8+ messages in thread
From: gottlieb @ 2013-07-17  0:44 UTC (permalink / raw
  To: gentoo-user

On Tue, Jul 16 2013, Neil Bothwick wrote:

> On Tue, 16 Jul 2013 09:49:42 -0400, gottlieb@nyu.edu wrote:
>
>> gnome-control-center-3.6.3-r1.ebuild contains
>> 
>>   IUSE="+bluetooth +colord +cups +gnome-online-accounts +i18n
>>   input_devices_wacom kerberos +networkmanager +socialweb systemd v4l"
>> 
>> and
>> 
>>   COMMON_DEPEND="
>>     ...
>>     networkmanager? (
>>     >=gnome-extra/nm-applet-0.9.1.90
>>     >=net-misc/networkmanager-0.8.997 )  
>> 
>> I believe the first says that "if the networkmanager use flag is neither
>> set nor unset, treat it as set" and the second says
>> "if the use flag is set (or treated as set), require
>> net-misc/networkmanager".
>
> That's correct. The + just means it defaults to on, instead of the usual
> off default for USE flags.
>
>> I don't see how to have the flag "unset" since its default is "set".  
>> For example, editing make.conf to add
>> 
>>   USE="-networkmanager"
>> 
>> (I had no USE in make.conf previously) has no effect
>
> That should do exactly what you want, although you can do it
> in /etc/portage/package.use too (although that makes no sense in this
> case as the decision on which network manager to use must be global).
>
> Are you sure that you have spelled the USE flag correctly, that one has
> wasted significant chunks of my life before now 9and will probably do so
> again in the future).

I just did it again with cut and paste from above.
Now the end of make.conf is (from cut and paste)

  FEATURES=" buildsyspkg"

  USE="-networkmanager"

and I still get

  newlap gottlieb # emerge --depclean networkmanager
  
  Calculating dependencies... done!
    net-misc/networkmanager-0.9.8.2 pulled in by:
      gnome-base/gnome-control-center-3.6.3-r1 requires
      >=net-misc/networkmanager-0.8.997
      gnome-base/gnome-shell-3.6.3.1 requires
      >=net-misc/networkmanager-0.8.999[introspection]
      gnome-extra/nm-applet-0.9.6.4-r1 requires >=net-misc/networkmanager-0.9.6
      net-libs/libsocialweb-0.25.21 requires net-misc/networkmanager

To be sure that make.conf was being consulted, I tried it with a
fictitious flag joeee, which "worked" and then with -joeee which "didn't
work".  That is, putting -joeee in make.conf results in *neither* joeee
or -joeee in the USE printed by emerge --info

>> since networkmanager was not in USE before.
>
> This is irrelevant. No USE flags are in make.conf until you put them
> there.

My wording here was bad.  I meant that networkmanager was not in the USE
shown by emerge --sync and apparently (to my surprise) specifying
-foo in make.conf only removes USEs from the emerge --sync listing
and does not insert -foo into the emerge --sync USE, assuming
that neither foo nor -foo was originally in emerge --sync USE.

I am sure I am doing something wrong since I agree that
   USE="-networkmanager"
in make.conf should be just what is needed, but I don't think it is just
my misspelling networkmanager.

allan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Networkmanager and gnome-3.6 (negating a default USE)
  2013-07-16 13:56 ` Wang Xuerui
@ 2013-07-17  0:47   ` gottlieb
  0 siblings, 0 replies; 8+ messages in thread
From: gottlieb @ 2013-07-17  0:47 UTC (permalink / raw
  To: gentoo-user

On Tue, Jul 16 2013, Wang Xuerui wrote:

> 在 2013-7-16 下午9:50, <gottlieb@nyu.edu>写道:
>>
>> How do I specify that the networkmanager USE flag is explicitly unset
>> (rather than just "not explicitly set").
>>
>> thanks,
>> allan
>>
>
> Just write a package.use file to handle that.

Thanks, but I would need many entries since the flag is relevant to many
packages and I would need to be sure to add entries as packages change
(I don't think it would be wise to have some, but not all, packages
merged with that USE flag).  That is why I want to do it in make.conf.

allan

PS. I actually have a package.use directory; with a number of files
turning USEs on.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Networkmanager and gnome-3.6 (negating a default USE)
  2013-07-17  0:44   ` gottlieb
@ 2013-07-17  1:20     ` gottlieb
  2013-07-17  9:33     ` Neil Bothwick
  1 sibling, 0 replies; 8+ messages in thread
From: gottlieb @ 2013-07-17  1:20 UTC (permalink / raw
  To: gentoo-user

On Tue, Jul 16 2013, gottlieb@nyu.edu wrote:

> I am sure I am doing something wrong since I agree that
>    USE="-networkmanager"
> in make.conf should be just what is needed, but I don't think it is just
> my misspelling networkmanager.

Mystery solved.  The line above does indeed work in that an update world
with --newuse does reinstall apps without the networkmanager USE flag.

I was testing the line above with

  emerge --depclean networkmanager

and that is the wrong test.  It is only after I do the update world so
that the -networkmanager USE takes affect, that I can hope to for the
--depclean to take affect.

thanks to all.
allan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Networkmanager and gnome-3.6 (negating a default USE)
  2013-07-17  0:44   ` gottlieb
  2013-07-17  1:20     ` gottlieb
@ 2013-07-17  9:33     ` Neil Bothwick
  2013-07-17 17:23       ` gottlieb
  1 sibling, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2013-07-17  9:33 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

On Tue, 16 Jul 2013 20:44:18 -0400, gottlieb@nyu.edu wrote:

> I just did it again with cut and paste from above.
> Now the end of make.conf is (from cut and paste)
> 
>   FEATURES=" buildsyspkg"
> 
>   USE="-networkmanager"
> 
> and I still get
> 
>   newlap gottlieb # emerge --depclean networkmanager
>   
>   Calculating dependencies... done!
>     net-misc/networkmanager-0.9.8.2 pulled in by:
>       gnome-base/gnome-control-center-3.6.3-r1 requires
>       >=net-misc/networkmanager-0.8.997  
>       gnome-base/gnome-shell-3.6.3.1 requires
>       >=net-misc/networkmanager-0.8.999[introspection]  
>       gnome-extra/nm-applet-0.9.6.4-r1 requires
> >=net-misc/networkmanager-0.9.6 net-libs/libsocialweb-0.25.21 requires
> >net-misc/networkmanager

Did you do "emerge --update --deep --changed-use --ask @world" after
changing make.conf? Changing the USE flag there doesn't change the flags
that those packages were built with. They will need to be rebuilt without
NM support before portage allows you to depclean it.


-- 
Neil Bothwick

WinErr 00F: Unexplained error - Please tell us how this happened

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Networkmanager and gnome-3.6 (negating a default USE)
  2013-07-17  9:33     ` Neil Bothwick
@ 2013-07-17 17:23       ` gottlieb
  0 siblings, 0 replies; 8+ messages in thread
From: gottlieb @ 2013-07-17 17:23 UTC (permalink / raw
  To: gentoo-user

On Wed, Jul 17 2013, Neil Bothwick wrote:

> On Tue, 16 Jul 2013 20:44:18 -0400, gottlieb@nyu.edu wrote:
>
>> I just did it again with cut and paste from above.
>> Now the end of make.conf is (from cut and paste)
>> 
>>   FEATURES=" buildsyspkg"
>> 
>>   USE="-networkmanager"
>> 
>> and I still get
>> 
>>   newlap gottlieb # emerge --depclean networkmanager
>>   
>>   Calculating dependencies... done!
>>     net-misc/networkmanager-0.9.8.2 pulled in by:
>>       gnome-base/gnome-control-center-3.6.3-r1 requires
>>       >=net-misc/networkmanager-0.8.997  
>>       gnome-base/gnome-shell-3.6.3.1 requires
>>       >=net-misc/networkmanager-0.8.999[introspection]  
>>       gnome-extra/nm-applet-0.9.6.4-r1 requires
>> >=net-misc/networkmanager-0.9.6 net-libs/libsocialweb-0.25.21 requires
>> >net-misc/networkmanager
>
> Did you do "emerge --update --deep --changed-use --ask @world" after
> changing make.conf? Changing the USE flag there doesn't change the flags
> that those packages were built with. They will need to be rebuilt without
> NM support before portage allows you to depclean it.

Right.  Our msgs outlining the problem and its soln crossed in the mail.
The above was indeed the problem and the required fix.

thanks as always,
allan


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-07-17 17:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-16 13:49 [gentoo-user] Networkmanager and gnome-3.6 (negating a default USE) gottlieb
2013-07-16 13:56 ` Wang Xuerui
2013-07-17  0:47   ` gottlieb
2013-07-16 14:28 ` Neil Bothwick
2013-07-17  0:44   ` gottlieb
2013-07-17  1:20     ` gottlieb
2013-07-17  9:33     ` Neil Bothwick
2013-07-17 17:23       ` gottlieb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox