From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 994921381F3 for ; Tue, 23 Apr 2013 10:26:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4EB92E095E; Tue, 23 Apr 2013 10:25:59 +0000 (UTC) Received: from mail-ea0-f173.google.com (mail-ea0-f173.google.com [209.85.215.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 55AC3E08FA for ; Tue, 23 Apr 2013 10:25:57 +0000 (UTC) Received: by mail-ea0-f173.google.com with SMTP id m14so172942eaj.18 for ; Tue, 23 Apr 2013 03:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=SO+ctRRsDbnt7itY4Xje1TB9NEGNrqAvwYAfwooc+Ks=; b=037/dEjJxpfoFkl3Nu5n7MTx1nsYoLZZdNCLa2tKJ1SrZPYkEHRVpH1lRoyghKrrCo dyUfFSwshZLTzKaoky1wL6NIXm3wFutZ2uGWe3Bx48mQdqGyVhcI1EFXCc7ZwzRFmgIg ezFSQeQbpN7Rh5s3OfRqz2JGXJi4CJt7oh6maeM+56RyF4/krHRa1ibTYtV2Rn6JriVI vU+H05CDJTUwOSlHV/f3xQt1qCo4ImZp7Ex1e+nm+oUoGKgvyte1RWR/3N8CkRMRxWXM jgHPHbMfum1fqonhXtXNLZT6LIsEtrRYdl1eb8me+1PiVRdTll6v+2RlA4vNQ5yGZOrz 7wAQ== X-Received: by 10.15.95.74 with SMTP id bc50mr25014887eeb.36.1366712756682; Tue, 23 Apr 2013 03:25:56 -0700 (PDT) Received: from [192.168.4.18] ([5.157.117.94]) by mx.google.com with ESMTPS id j43sm11405832eep.4.2013.04.23.03.25.54 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Apr 2013 03:25:55 -0700 (PDT) Message-ID: <51766167.9050306@gmail.com> Date: Tue, 23 Apr 2013 12:24:39 +0200 From: "vivo75@gmail.com" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130410 Thunderbird/17.0.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] FYI: libpng16 won't be able to show some broken icons libpng15 was still able to References: <51703A47.4060304@gentoo.org> <20130422110334.GA76925@skade.schwarzvogel.de> In-Reply-To: <20130422110334.GA76925@skade.schwarzvogel.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 8ba19f0c-b918-479a-9b26-e96f15a07a3a X-Archives-Hash: cb7821e9a9c34c10ced9b120546c5066 On 04/22/13 13:03, Tobias Klausmann wrote: > Hi! > > Since we probably will have to fix the files coming out of > tarballs until the various upstreams have fixed them, I propose > running a PNG fixer during or after the install phase. Since > having pngcrush as dep for everything is not exactly lightweight, > I hacked together a PNG file fixer in pure(ish, see below) > Python: No please, this real should stay really far from any package manager. There are only two sane options: 1) fix libpng to be backward compatible 2) fix the package, and re-package / add a package for broken images But please don't push on all our user systems something like this. > > http://git.schwarzvogel.de/?p=pngfixer;a=summary > > Feel free to send patches > > Note that all I wrote is the mind-numbingly simple pngfixer.py > script. The rest of the Python code is excised from PIL > (http://www.pythonware.com/products/pil/index.htm). I didn't have > to change anything there. > > Also note that it is not _strictly_ pure Python I'm using: the > PIL components use Python's zlib.so and therefore are subject to > bugs in _that_ code. Thanks for taking the time to write this it could be useful for developers, but hopefully not as initially intended ;-) > > Still needed: > > - How do we ship this? > - How do we run it for every ebuild? (probably something like > find /var/tmp/portage/.../image/ -iname \*.png -exec {...}\;) > > Regards, > Tobias Regards, Francesco