[gentoo-user] How to get rid of Python2 (where possible)

2014-03-28 Thread Helmut Jarausch

Hi,

would anybody please explain Portage's technique for selecting Python  
versions for packages

from dev-python and similar.

I'd like to set up things such that Portage installs only the  
Python-3.{3,4} version unless the

packages doesn't support Python-3.x

Currently I have

PYTHON_COMPAT=python2_7 python3_3 python3_4
PYTHON_TARGETS=python2_7 python3_3 python3_4
# PYTHON_SINGLE_TARGET=python2_7
PYTHON_SINGLE_TARGET=python3_3

in my /etc/portage/make.conf and portage itself is Python3-based.
I have to toggle the two PYTHON_SINGLE_TARGET lines depending
on some packages, e.g., dev-util/eric requires
PYTHON_SINGLE_TARGET=python3_3
which causes other packages not to install.

I have tried to remove python2_7 from PYTHON_TARGETS but then
I cannot re-install portage although it is based on Python3.

As you can see I am lost?

Many thanks for shedding some light onto these issues,
Helmut



Re: [gentoo-user] How to get rid of Python2 (where possible)

2014-03-28 Thread Tom Wijsman
On Fri, 28 Mar 2014 09:27:00 +0100
Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote:

 PYTHON_COMPAT=python2_7 python3_3 python3_4

This is a variable meant for packages; and thus, setting it in
make.conf has no effect afaik.

 PYTHON_TARGETS=python2_7 python3_3 python3_4

You'll want to set this to what you want.

 # PYTHON_SINGLE_TARGET=python2_7
 PYTHON_SINGLE_TARGET=python3_3

 in my /etc/portage/make.conf and portage itself is Python3-based.
 I have to toggle the two PYTHON_SINGLE_TARGET lines depending
 on some packages, e.g., dev-util/eric requires
 PYTHON_SINGLE_TARGET=python3_3
 which causes other packages not to install.

Set these in /etc/portage/package.use like so:

dev-util/eric python_single_target_python3_3

(Yes, PYTHON_SINGLE_TARGET expands to USE flags.)

 I have tried to remove python2_7 from PYTHON_TARGETS but then
 I cannot re-install portage although it is based on Python3.

Why is this? Can you share us the log or output of that?

-- 
With kind regards,

Tom Wijsman (TomWij)
Gentoo Developer

E-mail address  : tom...@gentoo.org
GPG Public Key  : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2  ABF0 95B2 1FCD 6D34 E57D



Re: [gentoo-user] How to get rid of Python2 (where possible)

2014-03-28 Thread Helmut Jarausch

On 03/28/2014 10:37:56 AM, Tom Wijsman wrote:

On Fri, 28 Mar 2014 09:27:00 +0100
Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote:

 I have tried to remove python2_7 from PYTHON_TARGETS but then
 I cannot re-install portage although it is based on Python3.

Why is this? Can you share us the log or output of that?



Thanks Tom!

I get the following slot conflicts if I try to emerge portage
when PYTHON_TARGETS doesn't contain python2_7 :

[ebuild   R   *] sys-apps/portage-  USE=doc (ipc) python3 -build  
-epydoc (-pypy2_0) -python2 (-selinux) -xattr LINGUAS=-ru  
PYTHON_TARGETS=python3_3 -pypy2_0 -python2_6 -python2_7* -python3_2  
(-python3_4) 0 kB


Total: 1 package (1 reinstall), Size of downloads: 0 kB

!!! Multiple package instances within a single package slot have been  
pulled

!!! into the dependency graph, resulting in a slot conflict:

sys-apps/portage:0

  (sys-apps/portage-:0/0::gentoo, ebuild scheduled for merge)  
pulled in by

sys-apps/portage (Argument)

  (sys-apps/portage-:0/0::gentoo, installed) pulled in by
 
sys-apps/portage[python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-)]  
required by (app-portage/gentoolkit-dev-0.2.8.3-r1:0/0::gentoo,  
installed)


 
sys-apps/portage[python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_pypy2_0(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_pypy2_0(-)]  
required by (app-admin/webapp-config-1.53:0/0::gentoo, installed)


 
sys-apps/portage[python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_pypy2_0(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_pypy2_0(-)]  
required by (app-portage/flaggie-0.2.1:0/0::gentoo, installed)


 
sys-apps/portage[python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_pypy2_0(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_pypy2_0(-)]  
required by (app-portage/layman-2.0.0-r3:0/0::gentoo, installed)


=sys-apps/portage-2.1.10.3[python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_pypy2_0(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_pypy2_0(-)]  
required by (app-portage/gentoopm-0.2.9:0/0::gentoo, installed)


=sys-apps/portage-2.1.11.52[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-)]  
required by (app-portage/portpeek-2.1.9:0/0::gentoo, installed)


 
sys-apps/portage[python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_pypy2_0(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_pypy2_0(-)]  
required by (app-portage/gentoolkit-0.3.0.9-r1:0/0::gentoo, installed)







Re: [gentoo-user] Local Mail with Procmail and Thunderbird (or similar)

2014-03-28 Thread Marc Stürmer

Am 28.03.2014 11:40, schrieb wraeth:


My question is: does anyone know how I can configure either Procmail
to deliver messages in a format Thunderbird will understand; or how I
can configure Thunderbird to be a little bit more maildir compliant?


Well, why don't you just install a local instance of Dovecot and point 
your local Thunderbird to that? That would work.






Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)

2014-03-28 Thread Francisco Ares
To auto log-in, I use a feature of agetty:

On /etc/inittab:

# TERMINALS
# c1:12345:respawn:/usr/bin/fbi -a -noverbose --nocomments
/etc/splash/natural_altec/images/silent-1024x768.jpg
c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -a AutoLogInUserName 38400 tty6 linux

And for auto run, after auto log-in accomplished, I use .bash_profile on
the auto logged-in user's home directory.

Hope this helps
Francisco


2014-03-28 11:15 GMT-03:00 Peter Humphrey pe...@prh.myzen.co.uk:

 On Saturday 22 Mar 2014 19:37:35 Neil Bothwick wrote:
  On Sat, 22 Mar 2014 13:57:22 +, Peter Humphrey wrote:
   I've installed that old favourite SysRescCD on a pen drive, following a
   method I found on the Web to include a persistent file-system with all
   the extras I wanted in, e.g., /usr/local/bin.
  
   It works well, except that I haven't found yet where to put all my
   aliases to have them sourced at (auto) log-in.
 
  There is a file that is executed by default at login, I think it
  is .autorun. I remember having to add an option to ignore it on the
  LXFDVDs because we use .autorun on those to launch a browser.

 I had a poke around and didn't get anywhere with .autorun, but eventually I
 found that SysRescCD uses zsh, not bash. It hadn't occurred to me until
 then
 to consider the shell. So that's why the auto-login function wasn't
 behaving
 the way I expected.

 Thanks again Neil.

 --
 Regards
 Peter





Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)

2014-03-28 Thread Nilesh Govindrajan
On 28-Mar-2014 8:55 pm, Francisco Ares fra...@gmail.com wrote:

 Also, as for a bootable flash drive, if you use logical volumes for mount
partitions, it works like a charm. If not, depending on the other physical
drives, during boot, drive letters may change (I believe during the
initramfs part of the boot).

 It was basically like this:

 - install a bare bones Gentoo system on a hard drive in the usual way,
and make it do whatever you'll want when it goes to the pen drive.
 - build the kernel with several modules built in, in special usb storage
(of course) and all related to LVM (Gentoo Wiki is great!), and also, as I
use genkernel, there is a command line argument --lvm
 - create a few partitions on the pen drive (on mine there are two, but
one is enough), create logical volumes for /boot and / - or /root - at
least)
 - using grub2, in the file /etc/default/grub, the kernel command line
should include dolvm scandelay=10 rootdelay=10 (the numerical values are
far from optimized).
 - mount the root partition in another directory (so that other mounts
would not appear), copy it to yet another directory, strip it down (since I
use squashfs and it is read-only, there is no reason to have /usr/src ,
/usr/include , /usr/portage and many others), then copy to the pen drive
root partition; special care should be taken with /etc/fstab .
 - umount your current /boot partition, mount the pen drive boot partition
in /boot (just to make things look familiar), mount the hard drive boot
partition elsewhere, copy its contents to the pen drive boot partition, and
issue a grub-install to the pen drive disk (/dev/sdb, for instance) and
grub-mkconfig -o /boot/grub/grub.cfg

 That's very incomplete, since, for instance and as already mentioned, I
use a squashfs root partition, so I had to figure out some ways, using
unionfs, to have a writable partition mounted on top of the read only one
for /var and for /etc (at least).


 2014-03-28 12:00 GMT-03:00 Francisco Ares fra...@gmail.com:

 To auto log-in, I use a feature of agetty:

 On /etc/inittab:

 # TERMINALS
 # c1:12345:respawn:/usr/bin/fbi -a -noverbose --nocomments
/etc/splash/natural_altec/images/silent-1024x768.jpg
 c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
 c2:2345:respawn:/sbin/agetty 38400 tty2 linux
 c3:2345:respawn:/sbin/agetty 38400 tty3 linux
 c4:2345:respawn:/sbin/agetty 38400 tty4 linux
 c5:2345:respawn:/sbin/agetty 38400 tty5 linux
 c6:2345:respawn:/sbin/agetty -a AutoLogInUserName 38400 tty6 linux

 And for auto run, after auto log-in accomplished, I use .bash_profile
on the auto logged-in user's home directory.

 Hope this helps
 Francisco


 2014-03-28 11:15 GMT-03:00 Peter Humphrey pe...@prh.myzen.co.uk:

 On Saturday 22 Mar 2014 19:37:35 Neil Bothwick wrote:
  On Sat, 22 Mar 2014 13:57:22 +, Peter Humphrey wrote:
   I've installed that old favourite SysRescCD on a pen drive,
following a
   method I found on the Web to include a persistent file-system with
all
   the extras I wanted in, e.g., /usr/local/bin.
  
   It works well, except that I haven't found yet where to put all my
   aliases to have them sourced at (auto) log-in.
 
  There is a file that is executed by default at login, I think it
  is .autorun. I remember having to add an option to ignore it on the
  LXFDVDs because we use .autorun on those to launch a browser.

 I had a poke around and didn't get anywhere with .autorun, but
eventually I
 found that SysRescCD uses zsh, not bash. It hadn't occurred to me until
then
 to consider the shell. So that's why the auto-login function wasn't
behaving
 the way I expected.

 Thanks again Neil.

 --
 Regards
 Peter





You don't really need to use LVM, you just assign filesystem labels and use
root=LABEL=...

Or use UUID


Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)

2014-03-28 Thread Francisco Ares
Everyday learning something that's why I like Linux and, in special,
Gentoo.

Thanks
Francisco


2014-03-28 12:26 GMT-03:00 Nilesh Govindrajan m...@nileshgr.com:

 On 28-Mar-2014 8:55 pm, Francisco Ares fra...@gmail.com wrote:
 
  Also, as for a bootable flash drive, if you use logical volumes for
 mount partitions, it works like a charm. If not, depending on the other
 physical drives, during boot, drive letters may change (I believe during
 the initramfs part of the boot).
 
  It was basically like this:
 
  - install a bare bones Gentoo system on a hard drive in the usual way,
 and make it do whatever you'll want when it goes to the pen drive.
  - build the kernel with several modules built in, in special usb storage
 (of course) and all related to LVM (Gentoo Wiki is great!), and also, as I
 use genkernel, there is a command line argument --lvm
  - create a few partitions on the pen drive (on mine there are two, but
 one is enough), create logical volumes for /boot and / - or /root - at
 least)
  - using grub2, in the file /etc/default/grub, the kernel command line
 should include dolvm scandelay=10 rootdelay=10 (the numerical values are
 far from optimized).
  - mount the root partition in another directory (so that other mounts
 would not appear), copy it to yet another directory, strip it down (since I
 use squashfs and it is read-only, there is no reason to have /usr/src ,
 /usr/include , /usr/portage and many others), then copy to the pen drive
 root partition; special care should be taken with /etc/fstab .
  - umount your current /boot partition, mount the pen drive boot
 partition in /boot (just to make things look familiar), mount the hard
 drive boot partition elsewhere, copy its contents to the pen drive boot
 partition, and issue a grub-install to the pen drive disk (/dev/sdb, for
 instance) and grub-mkconfig -o /boot/grub/grub.cfg
 
  That's very incomplete, since, for instance and as already mentioned, I
 use a squashfs root partition, so I had to figure out some ways, using
 unionfs, to have a writable partition mounted on top of the read only one
 for /var and for /etc (at least).
 
 
  2014-03-28 12:00 GMT-03:00 Francisco Ares fra...@gmail.com:
 
  To auto log-in, I use a feature of agetty:
 
  On /etc/inittab:
 
  # TERMINALS
  # c1:12345:respawn:/usr/bin/fbi -a -noverbose --nocomments
 /etc/splash/natural_altec/images/silent-1024x768.jpg
  c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
  c2:2345:respawn:/sbin/agetty 38400 tty2 linux
  c3:2345:respawn:/sbin/agetty 38400 tty3 linux
  c4:2345:respawn:/sbin/agetty 38400 tty4 linux
  c5:2345:respawn:/sbin/agetty 38400 tty5 linux
  c6:2345:respawn:/sbin/agetty -a AutoLogInUserName 38400 tty6 linux
 
  And for auto run, after auto log-in accomplished, I use .bash_profile
 on the auto logged-in user's home directory.
 
  Hope this helps
  Francisco
 
 
  2014-03-28 11:15 GMT-03:00 Peter Humphrey pe...@prh.myzen.co.uk:
 
  On Saturday 22 Mar 2014 19:37:35 Neil Bothwick wrote:
   On Sat, 22 Mar 2014 13:57:22 +, Peter Humphrey wrote:
I've installed that old favourite SysRescCD on a pen drive,
 following a
method I found on the Web to include a persistent file-system with
 all
the extras I wanted in, e.g., /usr/local/bin.
   
It works well, except that I haven't found yet where to put all my
aliases to have them sourced at (auto) log-in.
  
   There is a file that is executed by default at login, I think it
   is .autorun. I remember having to add an option to ignore it on the
   LXFDVDs because we use .autorun on those to launch a browser.
 
  I had a poke around and didn't get anywhere with .autorun, but
 eventually I
  found that SysRescCD uses zsh, not bash. It hadn't occurred to me
 until then
  to consider the shell. So that's why the auto-login function wasn't
 behaving
  the way I expected.
 
  Thanks again Neil.
 
  --
  Regards
  Peter
 
 
 
 

 You don't really need to use LVM, you just assign filesystem labels and
 use root=LABEL=...

 Or use UUID



Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)

2014-03-28 Thread Francisco Ares
Also, as for a bootable flash drive, if you use logical volumes for mount
partitions, it works like a charm. If not, depending on the other physical
drives, during boot, drive letters may change (I believe during the
initramfs part of the boot).

It was basically like this:

- install a bare bones Gentoo system on a hard drive in the usual way, and
make it do whatever you'll want when it goes to the pen drive.
- build the kernel with several modules built in, in special usb storage
(of course) and all related to LVM (Gentoo Wiki is great!), and also, as I
use genkernel, there is a command line argument --lvm
- create a few partitions on the pen drive (on mine there are two, but one
is enough), create logical volumes for /boot and / - or /root - at least)
- using grub2, in the file /etc/default/grub, the kernel command line
should include dolvm scandelay=10 rootdelay=10 (the numerical values are
far from optimized).
- mount the root partition in another directory (so that other mounts would
not appear), copy it to yet another directory, strip it down (since I use
squashfs and it is read-only, there is no reason to have /usr/src ,
/usr/include , /usr/portage and many others), then copy to the pen drive
root partition; special care should be taken with /etc/fstab .
- umount your current /boot partition, mount the pen drive boot partition
in /boot (just to make things look familiar), mount the hard drive boot
partition elsewhere, copy its contents to the pen drive boot partition, and
issue a grub-install to the pen drive disk (/dev/sdb, for instance) and
grub-mkconfig -o /boot/grub/grub.cfg

That's very incomplete, since, for instance and as already mentioned, I use
a squashfs root partition, so I had to figure out some ways, using unionfs,
to have a writable partition mounted on top of the read only one for /var
and for /etc (at least).


2014-03-28 12:00 GMT-03:00 Francisco Ares fra...@gmail.com:

 To auto log-in, I use a feature of agetty:

 On /etc/inittab:

 # TERMINALS
 # c1:12345:respawn:/usr/bin/fbi -a -noverbose --nocomments
 /etc/splash/natural_altec/images/silent-1024x768.jpg
 c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
 c2:2345:respawn:/sbin/agetty 38400 tty2 linux
 c3:2345:respawn:/sbin/agetty 38400 tty3 linux
 c4:2345:respawn:/sbin/agetty 38400 tty4 linux
 c5:2345:respawn:/sbin/agetty 38400 tty5 linux
 c6:2345:respawn:/sbin/agetty -a AutoLogInUserName 38400 tty6 linux

 And for auto run, after auto log-in accomplished, I use .bash_profile on
 the auto logged-in user's home directory.

 Hope this helps
 Francisco


 2014-03-28 11:15 GMT-03:00 Peter Humphrey pe...@prh.myzen.co.uk:

 On Saturday 22 Mar 2014 19:37:35 Neil Bothwick wrote:
  On Sat, 22 Mar 2014 13:57:22 +, Peter Humphrey wrote:
   I've installed that old favourite SysRescCD on a pen drive, following
 a
   method I found on the Web to include a persistent file-system with all
   the extras I wanted in, e.g., /usr/local/bin.
  
   It works well, except that I haven't found yet where to put all my
   aliases to have them sourced at (auto) log-in.
 
  There is a file that is executed by default at login, I think it
  is .autorun. I remember having to add an option to ignore it on the
  LXFDVDs because we use .autorun on those to launch a browser.

 I had a poke around and didn't get anywhere with .autorun, but eventually
 I
 found that SysRescCD uses zsh, not bash. It hadn't occurred to me until
 then
 to consider the shell. So that's why the auto-login function wasn't
 behaving
 the way I expected.

 Thanks again Neil.

 --
 Regards
 Peter






Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)

2014-03-28 Thread Peter Humphrey
On Saturday 22 Mar 2014 19:37:35 Neil Bothwick wrote:
 On Sat, 22 Mar 2014 13:57:22 +, Peter Humphrey wrote:
  I've installed that old favourite SysRescCD on a pen drive, following a
  method I found on the Web to include a persistent file-system with all
  the extras I wanted in, e.g., /usr/local/bin.
  
  It works well, except that I haven't found yet where to put all my
  aliases to have them sourced at (auto) log-in.
 
 There is a file that is executed by default at login, I think it
 is .autorun. I remember having to add an option to ignore it on the
 LXFDVDs because we use .autorun on those to launch a browser.

I had a poke around and didn't get anywhere with .autorun, but eventually I 
found that SysRescCD uses zsh, not bash. It hadn't occurred to me until then 
to consider the shell. So that's why the auto-login function wasn't behaving 
the way I expected.

Thanks again Neil.

-- 
Regards
Peter




Re: [gentoo-user] How to get rid of Python2 (where possible)

2014-03-28 Thread Tom Wijsman
On Fri, 28 Mar 2014 11:42:59 +0100
Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote:

 sys-apps/portage:0
 
(sys-apps/portage-:0/0::gentoo, ebuild scheduled for merge)  
 pulled in by
  sys-apps/portage (Argument)
 
(sys-apps/portage-:0/0::gentoo, installed) pulled in by
   
 sys-apps/portage[**SNIP**] required by
 (app-portage/gentoolkit-dev-0.2.8.3-r1:0/0::gentoo, installed)
   
 sys-apps/portage[**SNIP**] required by
 (app-admin/webapp-config-1.53:0/0::gentoo, installed)
   
 sys-apps/portage[**SNIP**] required by
 (app-portage/flaggie-0.2.1:0/0::gentoo, installed)

The thing with Python is that it wants 'packages that support Python'
depend on 'Python packages that have the same versions supported'.

Iotw, from the above example; let's say the reverse dependencies
gentoolkit-dev, webapp-config, flaggie, ... were build with 2.x and
with 3.x, they would want both 2.x and 3.x set on sys-apps/portage.

If you drop 2.x you can't just rebuild Portage, you'll need to rebuild
the reverse deps as well; such that they no longer want 2.x on Portage.

So, when changing PYTHON_TARGET in make.conf; you will want to do
something along the lines of `emerge -auvDN @world --backtrack=9001`,
this to ensure that the reverse dependencies of Portage no longer
depend on Portage having the previously set Python versions.

Portage will then go ahead and rebuild both Portage and its reverse
dependencies; that way, it doesn't create the conflict you saw.

(Backtracking 9001 so it is sufficiently high to not cause conflicts)

-- 
With kind regards,

Tom Wijsman (TomWij)
Gentoo Developer

E-mail address  : tom...@gentoo.org
GPG Public Key  : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2  ABF0 95B2 1FCD 6D34 E57D



Re: [gentoo-user] How to get rid of Python2 (where possible)

2014-03-28 Thread Helmut Jarausch

Hi Tom,

that was really helpful.
MANY THANKS,
Helmut

On 03/28/2014 08:29:27 PM, Tom Wijsman wrote:

On Fri, 28 Mar 2014 11:42:59 +0100
Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote:

 sys-apps/portage:0

(sys-apps/portage-:0/0::gentoo, ebuild scheduled for merge)
 pulled in by
  sys-apps/portage (Argument)

(sys-apps/portage-:0/0::gentoo, installed) pulled in by

 sys-apps/portage[**SNIP**] required by
 (app-portage/gentoolkit-dev-0.2.8.3-r1:0/0::gentoo, installed)

 sys-apps/portage[**SNIP**] required by
 (app-admin/webapp-config-1.53:0/0::gentoo, installed)

 sys-apps/portage[**SNIP**] required by
 (app-portage/flaggie-0.2.1:0/0::gentoo, installed)

The thing with Python is that it wants 'packages that support Python'
depend on 'Python packages that have the same versions supported'.

Iotw, from the above example; let's say the reverse dependencies
gentoolkit-dev, webapp-config, flaggie, ... were build with 2.x and
with 3.x, they would want both 2.x and 3.x set on sys-apps/portage.

If you drop 2.x you can't just rebuild Portage, you'll need to rebuild
the reverse deps as well; such that they no longer want 2.x on  
Portage.


So, when changing PYTHON_TARGET in make.conf; you will want to do
something along the lines of `emerge -auvDN @world --backtrack=9001`,
this to ensure that the reverse dependencies of Portage no longer
depend on Portage having the previously set Python versions.

Portage will then go ahead and rebuild both Portage and its reverse
dependencies; that way, it doesn't create the conflict you saw.

(Backtracking 9001 so it is sufficiently high to not cause conflicts)

--
With kind regards,

Tom Wijsman (TomWij)
Gentoo Developer

E-mail address  : tom...@gentoo.org
GPG Public Key  : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2  ABF0 95B2 1FCD 6D34 E57D








Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)

2014-03-28 Thread Neil Bothwick
On Fri, 28 Mar 2014 14:15:56 +, Peter Humphrey wrote:

  There is a file that is executed by default at login, I think it
  is .autorun. I remember having to add an option to ignore it on the
  LXFDVDs because we use .autorun on those to launch a browser.  
 
 I had a poke around and didn't get anywhere with .autorun, but
 eventually I found that SysRescCD uses zsh, not bash. It hadn't
 occurred to me until then to consider the shell. So that's why the
 auto-login function wasn't behaving the way I expected.

I don't think it's down to the shell, sysresccd includes bash too AFAIR.
It's more likely due to me giving your duff information, the file is
autorun not .autorun. If you press the help keys at the boot menu, you
will eventually find an explanation of how it works, around F5 I think.

Aha, just found the proper documentation for it
http://www.sysresccd.org/Sysresccd-manual-en_Run_your_own_scripts_with_autorun


-- 
Neil Bothwick

Dream as if you'll live forever. Live as if you'll die today.


signature.asc
Description: PGP signature


[gentoo-user] Why is portage insisting that I upgrade media-libs/opencv?

2014-03-28 Thread Chris Stankevitz
Hello,

Can anyone tell me why portage is insisting on upgrading me from
opencv-2.4.5 to opencv-2.4.8?

I would not expect portage to want to do this because:

1. opencv-2.4.8 is unstable (and I run a stable system)

2. opencv-2.4.5 is masked

Thank you,

Chris

=

jane ~ # grep opencv /etc/portage/package.mask
# 2014-03-13: Hold off on opencv upgrade
media-libs/opencv-2.4.5

=

jane ~ # emerge -Dauvt world

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

Calculating dependencies... done!

The following packages are causing rebuilds:

  (x11-base/xorg-server-1.15.0::gentoo, ebuild scheduled for merge)
causes rebuilds for:
(x11-drivers/xf86-video-vesa-2.3.3::gentoo, ebuild scheduled for merge)
(x11-drivers/xf86-video-fbdev-0.4.4::gentoo, ebuild scheduled for merge)
[nomerge   ] net-wireless/gnuradio-3.7.3:0/3.7.3  USE=alsa analog
digital examples filter grc qt4 sdl uhd utils wxwidgets -doc -fcd
-jack -oss -pager -performance-counters -portaudio -wavelet
PYTHON_SINGLE_TARGET=python2_7 PYTHON_TARGETS=python2_7
[nomerge   ]  dev-python/wxpython-2.8.12.1-r2:2.8  USE=cairo
opengl -doc -examples PYTHON_TARGETS=python2_7 -python2_6
[nomerge   ]   dev-python/pycairo-1.10.0-r4  USE=svg xcb -doc
-examples {-test} PYTHON_TARGETS=python2_7 python3_3 -python2_6
-python3_2
[ebuild U  ]x11-libs/xpyb-1.3.1-r3 [1.3.1-r2] USE=(-selinux)
-static-libs PYTHON_TARGETS=python2_7 -python2_6 0 kB
[ebuild U #] media-libs/opencv-2.4.8:0/2.4 [2.4.5:0/0] USE=cuda
eigen* gtk jpeg opencl opengl openmp%* png python%* qt4 threads tiff
-doc -examples -ffmpeg -gstreamer -ieee1394 (-ipp) -java -jpeg2k
-openexr -pch -testprograms -v4l -xine
PYTHON_SINGLE_TARGET=python2_7%* -python2_6%
PYTHON_TARGETS=python2_7%* -python2_6% 89,163 kB
[ebuild U  ] dev-util/nvidia-cuda-sdk-5.5.22 [5.0.35-r1] USE=cuda
doc examples -debug -opencl 829,510 kB
[nomerge   ] x11-base/xorg-server-1.15.0:0/1.15.0
[1.14.3-r2:0/1.14.3] USE=ipv6 kdrive nptl suid udev xorg -dmx -doc
-minimal (-selinux) -static-libs -tslib -unwind% -xnest -xvfb
[nomerge   ]  x11-base/xorg-drivers-1.15 [1.14]
INPUT_DEVICES=evdev synaptics -acecad -aiptek -elographics -fpit
-hyperpen -joystick -keyboard -mouse -mutouch -penmount -tslib
-vmmouse -void -wacom VIDEO_CARDS=fbdev nvidia vesa -apm -ast -chips
-cirrus -dummy -epson -fglrx (-freedreno) (-geode) -glint -i128
(-i740) -intel -mach64 -mga -modesetting -neomagic -nouveau -nv
(-omap) (-omapfb) -qxl -r128 -radeon -radeonsi -rendition -s3virge
-savage -siliconmotion -sisusb (-sunbw2) (-suncg14) (-suncg3)
(-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng
-v4l -via -virtualbox -vmware (-voodoo)
[ebuild U  ]   x11-drivers/xf86-input-evdev-2.8.2 [2.8.1] 362 kB
[ebuild U  ]   x11-drivers/xf86-input-synaptics-1.7.4 [1.7.1] 442 kB
[ebuild  rR]   x11-drivers/xf86-video-vesa-2.3.3  0 kB
[ebuild  rR]   x11-drivers/xf86-video-fbdev-0.4.4  0 kB
[nomerge   ] media-video/vlc-2.0.7  USE=X a52 aac alsa avcodec
avformat cdda dbus dts dvbpsi dvd encode ffmpeg flac gcrypt gnome
libnotify mmx mp3 mpeg ncurses ogg opengl png postproc pulseaudio qt4
sdl sse svg swscale theora truetype udev vorbis x264 xcb xml xv -aalib
(-altivec) -atmo (-audioqueue) -avahi -bidi -bluray -cddb -dc1394
-debug -dirac (-direct2d) -directfb (-directx) (-dshow) -dvb (-dxva2)
-egl -fbosd -fluidsynth -fontconfig -gme (-gnutls) -growl -httpd
-ieee1394 (-ios-vout) -jack -kate -kde -libass -libcaca -libproxy
-libsamplerate -libtar -libtiger -linsys -lirc -live -lua (-macosx)
(-macosx-audio) (-macosx-dialog-provider) (-macosx-eyetv)
(-macosx-qtkit) (-macosx-quartztext) (-macosx-vout) -matroska
(-media-library) -modplug -mtp -musepack (-neon) -omxil
-optimisememory (-opus) -oss -portaudio -projectm -pvr -rtsp
-run-as-root -samba -schroedinger -sdl-image -shine -shout -sid -skins
-speex -sqlite -switcher -taglib -twolame -upnp -v4l -vaapi -vcdx -vlm
(-waveout) (-wingdi) -wma-fixed -xosd -zvbi
[nomerge   ]  x11-libs/xcb-util-0.3.9  USE=-doc -static-libs {-test}
[ebuild U  ]   x11-libs/xcb-util-wm-0.4.1 [0.3.9] USE=-doc
-static-libs {-test} 315 kB
[nomerge   ] media-libs/opencv-2.4.8:0/2.4 [2.4.5:0/0] USE=cuda
eigen* gtk jpeg opencl opengl openmp%* png python%* qt4 threads tiff
-doc -examples -ffmpeg -gstreamer -ieee1394 (-ipp) -java -jpeg2k
-openexr -pch -testprograms -v4l -xine
PYTHON_SINGLE_TARGET=python2_7%* -python2_6%
PYTHON_TARGETS=python2_7%* -python2_6%
[ebuild U  ]  virtual/opencl-0-r4 [0-r2] ABI_X86=(64%*) -32%
(-x32) VIDEO_CARDS=nvidia -fglrx 0 kB
[ebuild U  ]  dev-util/nvidia-cuda-toolkit-5.5.22:0/5.5.22
[5.0.35-r4:0/5.0.35] USE=-debugger -doc -eclipse -profiler 0 kB
[ebuild   R]   x11-drivers/nvidia-drivers-334.21  USE=X acpi
multilib tools uvm* -pax_kernel 0 kB
[nomerge   ] dev-util/nvidia-cuda-sdk-5.5.22 [5.0.35-r1] USE=cuda
doc examples -debug -opencl
[ebuild U  ]  media-libs/freeglut-2.8.1-r1 [2.8.1] USE=-debug
-static-libs ABI_X86=(64%*) (-32) 

Re: [gentoo-user] Why is portage insisting that I upgrade media-libs/opencv?

2014-03-28 Thread Alan McKinnon
On 29/03/2014 01:05, Chris Stankevitz wrote:
 Hello,
 
 Can anyone tell me why portage is insisting on upgrading me from
 opencv-2.4.5 to opencv-2.4.8?

It's not doing that.

You need opencv as it's a dep for something, and portage wants you to
have a version that's in the tree. The only stable version is 2.4.5 but
you have masked that in package.mask

So you have left portage no choice but to ask you to upgrade to a higher
version, all of which are marked ~arch. Therefore portage is giving you
the package.unmask entries to accomplish that and thereby asking you
pretty please to make everything consistent again on your machine.

Or you could remove that entry from package.mask and deal with what happens.


 
 I would not expect portage to want to do this because:
 
 1. opencv-2.4.8 is unstable (and I run a stable system)
 
 2. opencv-2.4.5 is masked
 
 Thank you,
 
 Chris
 
 =
 
 jane ~ # grep opencv /etc/portage/package.mask
 # 2014-03-13: Hold off on opencv upgrade
 media-libs/opencv-2.4.5
 
 =
 
 jane ~ # emerge -Dauvt world
 
 These are the packages that would be merged, in reverse order:
 
 Calculating dependencies... done!
 
 The following packages are causing rebuilds:
 
   (x11-base/xorg-server-1.15.0::gentoo, ebuild scheduled for merge)
 causes rebuilds for:
 (x11-drivers/xf86-video-vesa-2.3.3::gentoo, ebuild scheduled for merge)
 (x11-drivers/xf86-video-fbdev-0.4.4::gentoo, ebuild scheduled for merge)
 [nomerge   ] net-wireless/gnuradio-3.7.3:0/3.7.3  USE=alsa analog
 digital examples filter grc qt4 sdl uhd utils wxwidgets -doc -fcd
 -jack -oss -pager -performance-counters -portaudio -wavelet
 PYTHON_SINGLE_TARGET=python2_7 PYTHON_TARGETS=python2_7
 [nomerge   ]  dev-python/wxpython-2.8.12.1-r2:2.8  USE=cairo
 opengl -doc -examples PYTHON_TARGETS=python2_7 -python2_6
 [nomerge   ]   dev-python/pycairo-1.10.0-r4  USE=svg xcb -doc
 -examples {-test} PYTHON_TARGETS=python2_7 python3_3 -python2_6
 -python3_2
 [ebuild U  ]x11-libs/xpyb-1.3.1-r3 [1.3.1-r2] USE=(-selinux)
 -static-libs PYTHON_TARGETS=python2_7 -python2_6 0 kB
 [ebuild U #] media-libs/opencv-2.4.8:0/2.4 [2.4.5:0/0] USE=cuda
 eigen* gtk jpeg opencl opengl openmp%* png python%* qt4 threads tiff
 -doc -examples -ffmpeg -gstreamer -ieee1394 (-ipp) -java -jpeg2k
 -openexr -pch -testprograms -v4l -xine
 PYTHON_SINGLE_TARGET=python2_7%* -python2_6%
 PYTHON_TARGETS=python2_7%* -python2_6% 89,163 kB
 [ebuild U  ] dev-util/nvidia-cuda-sdk-5.5.22 [5.0.35-r1] USE=cuda
 doc examples -debug -opencl 829,510 kB
 [nomerge   ] x11-base/xorg-server-1.15.0:0/1.15.0
 [1.14.3-r2:0/1.14.3] USE=ipv6 kdrive nptl suid udev xorg -dmx -doc
 -minimal (-selinux) -static-libs -tslib -unwind% -xnest -xvfb
 [nomerge   ]  x11-base/xorg-drivers-1.15 [1.14]
 INPUT_DEVICES=evdev synaptics -acecad -aiptek -elographics -fpit
 -hyperpen -joystick -keyboard -mouse -mutouch -penmount -tslib
 -vmmouse -void -wacom VIDEO_CARDS=fbdev nvidia vesa -apm -ast -chips
 -cirrus -dummy -epson -fglrx (-freedreno) (-geode) -glint -i128
 (-i740) -intel -mach64 -mga -modesetting -neomagic -nouveau -nv
 (-omap) (-omapfb) -qxl -r128 -radeon -radeonsi -rendition -s3virge
 -savage -siliconmotion -sisusb (-sunbw2) (-suncg14) (-suncg3)
 (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng
 -v4l -via -virtualbox -vmware (-voodoo)
 [ebuild U  ]   x11-drivers/xf86-input-evdev-2.8.2 [2.8.1] 362 kB
 [ebuild U  ]   x11-drivers/xf86-input-synaptics-1.7.4 [1.7.1] 442 kB
 [ebuild  rR]   x11-drivers/xf86-video-vesa-2.3.3  0 kB
 [ebuild  rR]   x11-drivers/xf86-video-fbdev-0.4.4  0 kB
 [nomerge   ] media-video/vlc-2.0.7  USE=X a52 aac alsa avcodec
 avformat cdda dbus dts dvbpsi dvd encode ffmpeg flac gcrypt gnome
 libnotify mmx mp3 mpeg ncurses ogg opengl png postproc pulseaudio qt4
 sdl sse svg swscale theora truetype udev vorbis x264 xcb xml xv -aalib
 (-altivec) -atmo (-audioqueue) -avahi -bidi -bluray -cddb -dc1394
 -debug -dirac (-direct2d) -directfb (-directx) (-dshow) -dvb (-dxva2)
 -egl -fbosd -fluidsynth -fontconfig -gme (-gnutls) -growl -httpd
 -ieee1394 (-ios-vout) -jack -kate -kde -libass -libcaca -libproxy
 -libsamplerate -libtar -libtiger -linsys -lirc -live -lua (-macosx)
 (-macosx-audio) (-macosx-dialog-provider) (-macosx-eyetv)
 (-macosx-qtkit) (-macosx-quartztext) (-macosx-vout) -matroska
 (-media-library) -modplug -mtp -musepack (-neon) -omxil
 -optimisememory (-opus) -oss -portaudio -projectm -pvr -rtsp
 -run-as-root -samba -schroedinger -sdl-image -shine -shout -sid -skins
 -speex -sqlite -switcher -taglib -twolame -upnp -v4l -vaapi -vcdx -vlm
 (-waveout) (-wingdi) -wma-fixed -xosd -zvbi
 [nomerge   ]  x11-libs/xcb-util-0.3.9  USE=-doc -static-libs {-test}
 [ebuild U  ]   x11-libs/xcb-util-wm-0.4.1 [0.3.9] USE=-doc
 -static-libs {-test} 315 kB
 [nomerge   ] media-libs/opencv-2.4.8:0/2.4 [2.4.5:0/0] USE=cuda
 eigen* gtk jpeg opencl opengl openmp%* png python%* qt4 threads tiff
 -doc -examples 

Re: [gentoo-user] Why is portage insisting that I upgrade media-libs/opencv?

2014-03-28 Thread Chris Stankevitz
On Fri, Mar 28, 2014 at 4:19 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 You need opencv as it's a dep for something, and portage wants you to
 have a version that's in the tree. The only stable version is 2.4.5 but
 you have masked that in package.mask

Hi Alan,

I attempted to mask only opencv greater than 2.4.5 (i.e. 2.4.6, 2.4.7,
2.4.8).  I wonder if my greater than symbol was interpreted as a
reply quote:

*** jane ~ # grep opencv /etc/portage/package.mask
*** # 2014-03-13: Hold off on opencv upgrade
*** media-libs/opencv-2.4.5

Chris



Re: [gentoo-user] Why is portage insisting that I upgrade media-libs/opencv?

2014-03-28 Thread Alan McKinnon
On 29/03/2014 01:48, Chris Stankevitz wrote:
 On Fri, Mar 28, 2014 at 4:19 PM, Alan McKinnon alan.mckin...@gmail.com 
 wrote:
 You need opencv as it's a dep for something, and portage wants you to
 have a version that's in the tree. The only stable version is 2.4.5 but
 you have masked that in package.mask
 
 Hi Alan,
 
 I attempted to mask only opencv greater than 2.4.5 (i.e. 2.4.6, 2.4.7,
 2.4.8).  I wonder if my greater than symbol was interpreted as a
 reply quote:
 
 *** jane ~ # grep opencv /etc/portage/package.mask
 *** # 2014-03-13: Hold off on opencv upgrade
 *** media-libs/opencv-2.4.5

Hi Chris,

Yes, that's exactly what happened. It's quite funny actually :-)

You did post emerge output using -t and it shows up at the top level
which is a bit odd, it implies portage wants to update opencv anyway,
not as a result of it being a dep. Are you sure you didn't keyword
opencv and forget about it?

grep -r opencv /etc/portage

and to be complete, what are the deps for the package:

equery depends opencv


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Why is portage insisting that I upgrade media-libs/opencv?

2014-03-28 Thread Chris Stankevitz
On Fri, Mar 28, 2014 at 10:24 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 You did post emerge output using -t and it shows up at the top level
 which is a bit odd, it implies portage wants to update opencv anyway,
 not as a result of it being a dep.

I agree it's odd and I agree it appears that portage isn't updating
opencv because it's a dep.  FWIW, an emerge -pv opencv wants to
reinstall opencv-2.4.5 while an emerge -Dauv world wants to upgrade
me to 2.4.8.

 grep -r opencv /etc/portage

Yes, I was looking at that too.  Nothing interesting there:

jane ~ # grep -r opencv /etc/portage/
/etc/portage/package.use:media-libs/opencv cuda opencl
/etc/portage/package.mask:# 2014-03-13: Hold off on opencv upgrade
/etc/portage/package.mask:media-libs/opencv-2.4.5

 equery depends opencv

Also uninteresting:

jane ~ # equery depends opencv
 * These packages depend on opencv:
jane ~ #

Chris



[gentoo-user] Re: Why is portage insisting that I upgrade media-libs/opencv?

2014-03-28 Thread Chris Stankevitz
On Fri, Mar 28, 2014 at 4:05 PM, Chris Stankevitz
chrisstankev...@gmail.com wrote:
 Can anyone tell me why portage is insisting on upgrading me from
 opencv-2.4.5 to opencv-2.4.8?

This is solved:

1. opencv has USE=cuda.  I have opencv-2.4.5 installed.

2. I had these mask rules:
# 2013-12-24 Hold off on CUDA update
=dev-util/nvidia-cuda-toolkit-5.1
=dev-util/nvidia-cuda-sdk-5.1
dev-util/nvidia-cuda-toolkit-5.0
dev-util/nvidia-cuda-sdk-5.0

3. opencv-2.4.5 has RDEPEND cuda? ( dev-util/nvidia-cuda-toolkit-5.5 )

4. I removed the cuda masks to allow cuda-5.5

5. (4) required an opencv upgrade to 2.4.8

Thank you for your help Alan,

Chris