Re: [gentoo-portage-dev] [PATCH 3/3] Add CPU model name to output of getportageversion as fifth element

2013-08-15 Thread Alexander Berntsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

(This holds for all patches)

Please surround '+' with spaces[0].
Please ensure <79 width[1].
Please indent continuation lines properly[2].


[0]  
[1]  
[2]  , look at foo =
long_function_name().
- -- 
Alexander
alexan...@plaimi.net
http://plaimi.net/~alexander
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlIMtFAACgkQRtClrXBQc7UFFgD/dhU6OgwtRqF7fZ81QbC6l//V
b+qNKFwGkiv8uyqzzUUBAK9Xc/w4iR40R61YXEySV+ybQ5GbrlvyjgHMzUCyobAs
=nYLt
-END PGP SIGNATURE-



Re: [gentoo-portage-dev] [PATCH 3/3] Add CPU model name to output of getportageversion as fifth element

2013-08-15 Thread Fabian Groffen
On 14-08-2013 22:10:40 +0200, Mark Kubacki wrote:
> From: W-Mark Kubacki 
> 
> It will read like this:
> > Portage 2.1.13.7 (default/linux/amd64/13.0, gcc-4.6.2, glibc-2.18, 
> > 3.9.0-rc8-mark-signed+ x86_64, Intel(R) Core(TM) i7-3770T CPU @ 2.50GHz)
> 
> That new fifth element will be the CPU model name of the host
> running Portage. It is not the target architecture!

FYI:

% python3
Python 3.3.2 (default, Jul 24 2013, 11:14:02) 
[GCC 4.2.1 (Gentoo 4.2.1_p5666-r1, Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.release()
'12.4.0'
>>> platform.machine()
'x86_64'
>>> platform.processor()
'i386'
>>> 

% python
Python 3.2.3 (default, May  6 2013, 21:19:05) 
[GCC 4.7.2] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.release()
'5.11'
>>> platform.machine()
'i86pc'
>>> platform.processor()
'i386'
>>> 

% python
Python 3.3.2 (default, Jul 15 2013, 13:51:24) 
[GCC 4.7.2] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.release()
'5.10'
>>> platform.machine()
'sun4u'
>>> platform.processor()
'sparc'
>>> 

% python
Python 3.2.5 (default, Jul 15 2013, 11:37:08) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.release()
'3.8.13-gentoo'
>>> platform.machine()
'x86_64'
>>> platform.processor()
'AMD Athlon(tm) 64 X2 Dual Core Processor 3800+'
>>> 

e.g. it seems to me only on Linux it gives fancy model output.  Note
that the first and second system were running a 64-bit Python as well as
kernel.

Fabian

-- 
Fabian Groffen
Gentoo on a different level


signature.asc
Description: Digital signature