[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#831065: marked as done (python-kinterbasdb: please make the build reproducible)



Your message dated Fri, 16 Sep 2016 10:59:40 +0000
with message-id <E1bkqrs-0001RA-TW@franck.debian.org>
and subject line Bug#831065: fixed in python-kinterbasdb 3.3.0-4
has caused the Debian Bug report #831065,
regarding python-kinterbasdb: please make the build reproducible
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
831065: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831065
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: python-kinterbasdb
Version: 3.3.0-3
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we
noticed that python-kinterbasdb could not be built reproducibly.

Patch attached.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/03_reproducible_build.patch	1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/03_reproducible_build.patch	2016-07-14 09:45:51.028259634 +0200
@@ -0,0 +1,23 @@
+Author: Chris Lamb <lamby@debian.org>
+Last-Update: 2016-07-14
+
+--- python-kinterbasdb-3.3.0.orig/setup.py
++++ python-kinterbasdb-3.3.0/setup.py
+@@ -1,7 +1,7 @@
+ # This horrible tangle of code will soon be blown away and replaced with
+ # something more respectable.  Yep, RSN.
+ 
+-import re, struct, sys, time
++import re, struct, sys, time, os, datetime
+ from StringIO import StringIO
+ 
+ # Exclude old versions of Python:
+@@ -129,7 +129,7 @@ if not shouldSkipBuild:
+ 
+     reTimestamp = re.compile(r"^(__timestamp__\s+=\s+')(.*?)(')$", re.MULTILINE)
+     initModuleCode = reTimestamp.sub(
+-        r'\g<1>%s\g<3>' % time.strftime('%Y.%m.%d.%H.%M.%S.UTC', time.gmtime()),
++        r'\g<1>%s\g<3>' % datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))).strftime('%Y.%m.%d.%H.%M.%S.UTC'),
+         initModuleCode
+       )
+ 
--- a/debian/patches/series	2016-07-14 09:34:41.760405146 +0200
--- b/debian/patches/series	2016-07-14 09:45:40.540139851 +0200
@@ -1 +1,2 @@
 02_drop_removed_fb_defines.patch
+03_reproducible_build.patch

--- End Message ---
--- Begin Message ---
Source: python-kinterbasdb
Source-Version: 3.3.0-4

We believe that the bug you reported is fixed in the latest version of
python-kinterbasdb, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 831065@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated python-kinterbasdb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 16 Sep 2016 11:03:40 +0100
Source: python-kinterbasdb
Binary: python-kinterbasdb python-kinterbasdb-dbg
Architecture: source
Version: 3.3.0-4
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Santiago Vila <sanvila@debian.org>
Description:
 python-kinterbasdb - Python DB API 2.0 extension for Firebird and Interbase
 python-kinterbasdb-dbg - Python DB API 2.0 extension for Firebird and Interbase (debug ext
Closes: 831065
Changes:
 python-kinterbasdb (3.3.0-4) unstable; urgency=medium
 .
   * QA upload.
   * Apply patch from Chris Lamb to make the build reproducible. Closes: #831065.
Checksums-Sha1:
 6290f52cf5036d3b9f72b68ef84ea6a5eb5a97e9 1779 python-kinterbasdb_3.3.0-4.dsc
 856a25766554e1fe1c7516cf95395c8bddb85c34 7080 python-kinterbasdb_3.3.0-4.debian.tar.xz
Checksums-Sha256:
 aa70028e7f1b32f3d67730f9df3d7c6448e1ae06d7fd1958a3d1ca5e32513170 1779 python-kinterbasdb_3.3.0-4.dsc
 76c9b3e2214580a8d78178fa6633a52f2c9e3971cbf25366451d962bb261210d 7080 python-kinterbasdb_3.3.0-4.debian.tar.xz
Files:
 eef20ae4ca40f7e5ec414cf3b4f65703 1779 python optional python-kinterbasdb_3.3.0-4.dsc
 331fd017dc1aedceb7fd813ce7603e64 7080 python optional python-kinterbasdb_3.3.0-4.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJX28yEAAoJEEHOfwufG4syO0oH/jrPLqTj7S1vGKLyrt0c/pAS
lJ0OGNbokku60I8K9yWmyQ6zZAq0b53V4C2C69XYg9c6IpGZiT1QxsjGzNIDmwaF
4f+XSznuG8bzj0zCMpLpRuwRJYD1HAtpacFxVCj5HVQeKao0Y/NEEYWiMuBkd7ku
ChsPPztLldmzKCmHnAs5Gu9A/neCEseL7RRvRR5fceB6Hyi5byOfso405XAfjxx6
vWgsu3gKWIFCsYwIB80x3ZnJYjlZbW1WsX5H1Zth5Ks3qC9oCfX7+28DJajwYWlD
AAuSw0DytJJpqAedd2upEri/2Ib1ManmZaUFKfo772VQdkfJo7HfsC7VeCYfIhQ=
=6N1t
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: