Re: [gentoo-portage-dev] [PATCH] localized_size: handle UnicodeDecodeError (bug 577862)

2016-03-20 Thread Brian Dolbec
On Sun, 20 Mar 2016 21:11:41 -0700
Zac Medico  wrote:

> Fix localized_size to handle UnicodeDecodeError, which is necessary
> if the locale data is corrupt or has an unexpected encoding.
> 
> X-Gentoo-bug: 577862
> X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=577862
> ---
>  pym/portage/localization.py | 6 +-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/pym/portage/localization.py b/pym/portage/localization.py
> index 2db4b7a..90202fb 100644
> --- a/pym/portage/localization.py
> +++ b/pym/portage/localization.py
> @@ -38,5 +38,9 @@ def localized_size(num_bytes):
>  
>   # always round up, so that small files don't end up as '0
> KiB' num_kib = math.ceil(num_bytes / 1024)
> - formatted_num = locale.format('%d', num_kib, grouping=True)
> + try:
> + formatted_num = locale.format('%d', num_kib,
> grouping=True)
> + except UnicodeDecodeError:
> + # failure to decode locale data
> + formatted_num = str(num_kib)
>   return (_unicode_decode(formatted_num,
> encoding=_encodings['stdio']) + ' KiB')


looks good.  Also if you haven't looked at the forum thread again.

Portage did not fail when he set python 2.7 as the active one.  So it
is 3.4 only that is failing for him (just those 2 installed).

-- 
Brian Dolbec 




[gentoo-dev] Automated Package Removal and Addition Tracker, for the week ending 2016-03-20 23:59 UTC

2016-03-20 Thread Robin H. Johnson
The attached list notes all of the packages that were added or removed
from the tree, for the week ending 2016-03-20 23:59 UTC.

Removals:
dev-perl/mogilefs-server 20160312-16:32 dilfridge  752bbd3
dev-perl/ogg-vorbis-header   20160313-18:55 dilfridge  1e100c6
dev-perl/p5-Palm 20160314-14:33 dilfridge  1b41b56
dev-perl/Period  20160318-08:25 dilfridge  3e79846
dev-perl/perltidy20160319-06:28 dilfridge  2943ef8
dev-perl/perl-tk 20160312-03:29 dilfridge  a307075
dev-util/vdkbuilder  20160320-15:45 kensington 91a1f49
games-emulation/sdlmametools 20160319-22:00 mr_bones_  62e7edb
games-emulation/sdlmess  20160319-22:00 mr_bones_  62e7edb
gnome-extra/connman-gnome20160320-15:45 kensington de6e274
media-tv/wis-go7007  20160320-15:44 kensington 655af97
media-video/stk11xx  20160320-15:43 kensington cbb8874
net-p2p/gift 20160320-16:08 kensington 7ad2bf5
net-p2p/gift-ares20160320-16:08 kensington 7ad2bf5
net-p2p/giftcurs 20160320-16:08 kensington 7ad2bf5
net-p2p/gift-fasttrack   20160320-16:08 kensington 7ad2bf5
net-p2p/gift-gnutella20160320-16:08 kensington 7ad2bf5
net-p2p/gift-openft  20160320-16:08 kensington 7ad2bf5
sec-policy/selinux-gift  20160320-16:11 kensington 6ba27bb

Additions:
app-backup/borgbackup20160320-21:50 blueness   02ba85d
app-backup/kfoldersync   20160318-20:00 johu   4829068
app-misc/icdiff  20160314-18:53 chutzpah   943afa3
app-vim/tlib 20160316-06:32 radhermit  8a213e4
app-vim/vim-addon-mw-utils   20160316-06:31 radhermit  b8cd50d
dev-cpp/picojson 20160315-19:24 aballier   fce2620
dev-db/sqlitestudio  20160319-18:41 monsieurp  803b02d
dev-libs/actor-framework 20160226-01:05 idella4638c975
dev-libs/leatherman  20160319-19:25 prometheanfire 4c18bbc
dev-libs/libfastjson 20160314-19:11 monsieurp  91b00fa
dev-libs/librdkafka  20160314-20:06 idella493dbc90
dev-libs/mimetic 20160314-12:58 kensington f33b8f6
dev-libs/univalue20160319-22:25 blueness   b8c46b0
dev-libs/zookeeper-c 20160315-19:03 aballier   b541b36
dev-ml/ocaml-hashcons20160314-12:10 aballier   4dca7b9
dev-perl/DBIx-Simple 20160316-22:57 dilfridge  fc7ef36
dev-perl/Mail-DMARC  20160316-23:39 dilfridge  b8062ba
dev-perl/MogileFS-Server 20160312-16:27 dilfridge  0499e08
dev-perl/Ogg-Vorbis-Header   20160313-19:05 dilfridge  8fff8cb
dev-perl/Palm20160314-14:30 dilfridge  1b9ce3e
dev-perl/Palm-PDB20160314-16:00 dilfridge  ea46cb6
dev-perl/Passwd-Unix 20160319-05:25 dilfridge  7024d27
dev-perl/Perl-Tidy   20160319-06:24 dilfridge  cbcadb8
dev-perl/Signal-Mask 20160315-22:03 dilfridge  d3908e9
dev-perl/Struct-Compare  20160319-05:22 dilfridge  3724b09
dev-perl/Test-MockRandom 20160316-02:49 dilfridge  5acf715
dev-perl/Thread-SigMask  20160315-21:56 dilfridge  d0c2df2
dev-perl/Time-Period 20160318-08:14 dilfridge  ecaab10
dev-perl/Tk  20160312-03:09 dilfridge  1493d22
dev-python/astroscrappy  20160309-23:17 bicatali   32a6eba
dev-python/ccdproc   20160309-21:42 bicatali   b828050
dev-python/dask  20160318-18:25 bicatali   ac737bb
dev-python/flower20160319-04:19 zmedico82577e6
dev-python/future20160316-23:05 mrueg  d62de24
dev-python/gammapy   20160317-18:33 bicatali   a18c5fc
dev-python/locket20160317-22:30 bicatali   ca160d8
dev-python/partd 20160318-00:15 bicatali   974a669
dev-python/photutils 20160318-19:42 bicatali   7e50911
dev-python/redlock-py20160314-19:57 zmedico8e34b81
dev-python/reproject 20160317-00:13 bicatali   8cdcf99
dev-python/specutils 20160317-21:06 bicatali   cb509e6
kde-plasma/kactivities-workspace 20160320-16:26 kensington e25405f
kde-plasma/kactivitymanagerd 20160320-16:27 kensington bbe7e2d
media-libs/kodi-platform 20160314-11:01 fordfrog   6433e49
media-libs/libopenshot   20160310-11:01 idella4fe27420
media-libs/libopenshot-audio 20160310-10:50 idella46c38b43
media-plugins/kodi-pvr-hts   20160314-11:29 fordfrog   ebbb58a
net-analyzer/bro 20160311-14:14 idella4b802dd6
net-analyzer/ipsumdump   20160311-21:24 idella42970ef0
net-im/qtox

Re: [gentoo-dev] Last rites: dev-libs/matrixssl

2016-03-20 Thread Aaron Bauman
On Sunday, March 20, 2016 4:35:37 PM JST Doug Goldstein wrote:
> On 3/19/16 1:39 AM, Aaron Bauman wrote:
> > # Aaron Bauman  (19 Mar 2016)
> > # Multiple unpatched security vulnerabilities
> > # per bug #523040. Masked for removal in 30 days.
> > dev-libs/matrixssl
> 
> bug #532040

Ah, thank you for catching that!

-- 
Cheers,
Aaron Bauman
Gentoo Linux Developer
GnuPG FP: 1536 F4B3 72EB 9C54 11F5  5C43 246D 23A2 10FB 0F3E

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-dev] Last rites: dev-libs/matrixssl

2016-03-20 Thread Doug Goldstein
On 3/19/16 1:39 AM, Aaron Bauman wrote:
> # Aaron Bauman  (19 Mar 2016)
> # Multiple unpatched security vulnerabilities
> # per bug #523040. Masked for removal in 30 days.
> dev-libs/matrixssl
> 

bug #532040

-- 
Doug Goldstein



signature.asc
Description: OpenPGP digital signature


[gentoo-portage-dev] [PATCH] Colorize packages in user sets (bug 577720)

2016-03-20 Thread Adam Mills
Three new settings were added to /etc/portage/color.map:
PKG_MERGE_USER_SET, PKG_BINARY_MERGE_USER_SET, and
PKG_NOMERGE_USER_SET. These colors are applied when the package is
selected from a set in /etc/portage/sets/

X-Gentoo-bug: 577720
X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=577720
---
 man/color.map.5| 11 ++
 pym/_emerge/resolver/output.py | 39 ++
 pym/_emerge/resolver/output_helpers.py |  8 ---
 pym/portage/_sets/base.py  |  3 +++
 pym/portage/_sets/files.py |  3 +++
 pym/portage/output.py  | 39 ++
 6 files changed, 68 insertions(+), 35 deletions(-)

diff --git a/man/color.map.5 b/man/color.map.5
index 5543628..39f23f7 100644
--- a/man/color.map.5
+++ b/man/color.map.5
@@ -46,6 +46,9 @@ Defines color used for satisfied blockers.
 \fBPKG_MERGE\fR = \fI"darkgreen"\fR
 Defines color used for packages planned to be merged.
 .TP
+\fBPKG_MERGE_USER_SET\fR = \fI"darkgreen"\fR
+Defines color used for packages planned to be merged from a user defined set.
+.TP
 \fBPKG_MERGE_SYSTEM\fR = \fI"darkgreen"\fR
 Defines color used for system packages planned to be merged.
 .TP
@@ -55,6 +58,10 @@ Defines color used for world packages planned to be merged.
 \fBPKG_BINARY_MERGE\fR = \fI"purple"\fR
 Defines color used for packages planned to be merged using a binary package.
 .TP
+\fBPKG_BINARY_MERGE_USER_SET\fR = \fI"purple"\fR
+Defines color used for packages planned to be merged using a binary package
+from a user defined set.
+.TP
 \fBPKG_BINARY_MERGE_SYSTEM\fR = \fI"purple"\fR
 Defines color used for system packages planned to be merged using a binary
 package.
@@ -66,6 +73,10 @@ package.
 \fBPKG_NOMERGE\fR = \fI"darkblue"\fR
 Defines color used for packages not planned to be merged.
 .TP
+\fBPKG_NOMERGE_USER_SET\fR = \fI"darkblue"\fR
+Defines color used for packages not planned to be merged from a user defined
+set.
+.TP
 \fBPKG_NOMERGE_SYSTEM\fR = \fI"darkblue"\fR
 Defines color used for system packages not planned to be merged.
 .TP
diff --git a/pym/_emerge/resolver/output.py b/pym/_emerge/resolver/output.py
index 400617d..4cb8393 100644
--- a/pym/_emerge/resolver/output.py
+++ b/pym/_emerge/resolver/output.py
@@ -271,6 +271,8 @@ class Display(object):
return 
colorize("PKG_BINARY_MERGE_SYSTEM", pkg_str)
elif pkg_info.world:
return 
colorize("PKG_BINARY_MERGE_WORLD", pkg_str)
+   elif pkg_info.user_set:
+   return 
colorize("PKG_BINARY_MERGE_USER_SET", pkg_str)
else:
return colorize("PKG_BINARY_MERGE", 
pkg_str)
else:
@@ -278,6 +280,8 @@ class Display(object):
return colorize("PKG_MERGE_SYSTEM", 
pkg_str)
elif pkg_info.world:
return colorize("PKG_MERGE_WORLD", 
pkg_str)
+   elif pkg_info.user_set:
+   return colorize("PKG_MERGE_USER_SET", 
pkg_str)
else:
return colorize("PKG_MERGE", pkg_str)
elif pkg_info.operation == "uninstall":
@@ -287,6 +291,8 @@ class Display(object):
return colorize("PKG_NOMERGE_SYSTEM", pkg_str)
elif pkg_info.world:
return colorize("PKG_NOMERGE_WORLD", pkg_str)
+   elif pkg_info.user_set:
+   return colorize("PKG_NOMERGE_USER_SET", pkg_str)
else:
return colorize("PKG_NOMERGE", pkg_str)
 
@@ -699,22 +705,27 @@ class Display(object):
return
 
 
-   def check_system_world(self, pkg):
-   """Checks for any occurances of the package in the system or 
world sets
+   def check_sets(self, pkg):
+   """Checks for any occurances of the package in the portage sets
 
@param pkg: _emerge.Package.Package instance
-   @rtype system and world booleans
+   @rtype user_set, system, and world booleans
"""
root_config = self.conf.roots[pkg.root]
-   system_set = root_config.sets["system"]
-   world_set  = root_config.sets["selected"]
-   system = False
-   world = False
+   user_set = None
+   system = None
+   world = None
try:
-   system = system_set.findAtomForPackage(
-   pkg, 
modified_use=self.conf.pkg_use_enabled(pkg))
-   world = 

Re: [gentoo-portage-dev] [PATCH 2/2] runtests: fix output for skipped pythons

2016-03-20 Thread Alexander Berntsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Replying to this email segfaulted my Thunderbird... I'll try this again:

Nice! This LGMT too, and I'll commit and push it Monday with the other
one unless there are any objections.

However, Sergei, when you're sending related patches, please send them
to the same thread. git send-email should do this by default. Bt
these patches *aren't* related, so there shouldn't be a counter there
in the first place. ;)

Thanks for the patches!
- -- 
Alexander
berna...@gentoo.org
https://secure.plaimi.net/~alexander
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBCgAGBQJW7qs9AAoJENQqWdRUGk8BDoMQAIhrlsY14r/B8Otbhgzbhh9T
Jol7FqInCZ/BPKmBJPhlSQiFB9SESSavxUYAVGYS/8xOjWnwU4aiiwHfmszrOD+Y
9ZgMly6mqefNsxSfBiurd8BuSFMm8l9bSkXmZyPTwAi2qsGt+j0QFlQg/6A4uLQ9
bem9tZzxvxmSLADhmdT9h2ONV9sjJq3gzzJ9+Ri5hcDByiwBXcqWNvh/IuayVE5y
cC5CwnwZ/axuiOJQJwLMKCgTC3kLlZm+8x7D1mBS8J0RErVFj8ieoJtqHsLlR35d
RuW1dwWfTiXkL/Mh0j6VVqXnqlTGRMMWexk7C4JQo2ecN065jv6xs3ZBtmhdPKAQ
cP5QMEyjr2talIMRxkPGp1msFuQu5CnR540iC5Ic0ePk9KJt0RNmna9+Zc/r//vr
OoFCFmDtvU5Kf43EW/DlHy4yLpe8wyh7UHEm2h+sVedf/jh6gEb8XUVsSohiUveJ
u4X8xhMzQnuOa1FIuuLbxecYUxReEcAJgdD/2ahYnQDPrwo+1GOH+zjSCv9UeNW2
dVCV5d774YcRJ1sVtqBugx4OV7dveTXbknBjp/cXkTq04Na7HWjpIve+8tA37B04
aqRlnlXi8G1OM8sLUjYRt9ogQ/eR6hldEq50iW8ROW8QSU58h6Qjk5JCEVuXb0m6
5ahuJEGflOU9fCrpgVdX
=s0Zw
-END PGP SIGNATURE-



Re: [gentoo-dev] metadata.xml GLEP for review

2016-03-20 Thread Michał Górny
On Wed, 16 Mar 2016 20:37:30 +0100
Dirkjan Ochtman  wrote:

> On Wed, Mar 16, 2016 at 7:43 PM, Michał Górny  wrote:
> > Therefore, I've been slowly writing a proper GLEP that would describe
> > all of metadata.xml in detail. Here's the current draft for review:  
> 
> Sounds like a good idea!
> 
> > https://wiki.gentoo.org/wiki/User:MGorny/GLEP:68  
> 
> I reviewed your spec based on my experience from trying to create a
> RELAX NG schema for all metadata.xml files that were in the tree at
> the time. I assume you've also validated your spec against what's
> actually being used? I have a few questions:

Small update here:

> - I had the upstream maintainer's email element pegged as mandatory.
> Don't you think that makes sense? A name-only maintainer element seems
> relatively low-value to me.

I've re-read the spec today and confirmed this with one of the authors.
For upstream, name is mandatory, e-mail is not.

> - You list a number of the upstream child elements (changelog, doc,
> bug-to) as "zero or more". Doesn't it make sense to make (some of)
> these zero or one?

dev-zero explained this to me. The original intent was that each of
those elements could be used at most once, however DTD limitations
prevented this from happening.

After thinking some, I've figured out how to force 'at most one' with
XML Schema without losing readability, and I'll update the spec to
conform to the original meaning.

-- 
Best regards,
Michał Górny



pgpmz9HyhSGPE.pgp
Description: OpenPGP digital signature