Accepting request 368646 from home:bmwiedemann:branches:X11:Utilities

Add reproducible.patch to fix build-compare

OBS-URL: https://build.opensuse.org/request/show/368646
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/putty?expand=0&rev=29
This commit is contained in:
Jan Engelhardt 2016-03-08 18:41:07 +00:00 committed by Git OBS Bridge
parent 66125575b6
commit d4e18187e4
3 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 8 18:35:39 UTC 2016 - bwiedemann@suse.com
- Add reproducible.patch to fix build-compare
-------------------------------------------------------------------
Tue Mar 8 16:43:24 UTC 2016 - jengelh@inai.de

View File

@ -30,6 +30,8 @@ Source: http://the.earth.li/~sgtatham/putty/latest/%name-%version.tar.gz
Source2: http://the.earth.li/~sgtatham/putty/latest/%name-%version.tar.gz.gpg
Source4: %name.keyring
Patch1: putty-03-config.diff
# PATCH-FIX-TO-UPSTREAM: bmwiedemann -- drop build timestamps from png
Patch2: reproducible.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ImageMagick
BuildRequires: gtk2-devel
@ -45,6 +47,7 @@ serial console client.
%prep
%setup -q
%patch -P 1 -p1
%patch2 -p1
%build
%configure

11
reproducible.patch Normal file
View File

@ -0,0 +1,11 @@
--- putty-0.66/icons/mkicon.py.orig 2015-11-07 10:16:40.000000000 +0000
+++ putty-0.66/icons/mkicon.py 2016-03-08 18:34:34.600917451 +0000
@@ -912,7 +912,7 @@
assert minx >= 0 and miny >= 0 and maxx <= width and maxy <= width
block = render(canvas, 0, 0, width, width)
- p = os.popen("convert -depth 8 -size %dx%d rgba:- %s" % (width,width,fname), "w")
+ p = os.popen("convert -strip -depth 8 -size %dx%d rgba:- %s" % (width,width,fname), "w")
assert len(block) == width
for line in block:
assert len(line) == width