Your message dated Tue, 14 May 2024 13:19:14 +0000
with message-id <[email protected]>
and subject line Bug#983852: fixed in python-scrapy 2.11.2-1
has caused the Debian Bug report #983852,
regarding python-scrapy: 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 [email protected]
immediately.)
--
983852: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983852
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-scrapy
Version: 2.4.1-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed that
python-scrapy could not be built reproducibly.
This is because it uses the current build year when building the
documentation which, of course, changes depending which year you
build the software.
Patch attached that uses SOURCE_DATE_EPOCH [1] instead.
[0] https://reproducible-builds.org/
[1] https://reproducible-builds.org/specs/source-date-epoch/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/patches/00002-Reproducible-build.patch 1970-01-01
01:00:00.000000000 +0100
--- b/debian/patches/00002-Reproducible-build.patch 2021-03-02
09:06:06.826207329 +0000
@@ -0,0 +1,28 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2021-03-02
+
+--- python-scrapy-2.4.1.orig/docs/conf.py
++++ python-scrapy-2.4.1/docs/conf.py
+@@ -9,7 +9,9 @@
+ # All configuration values have a default; values that are commented out
+ # serve to show the default.
+
++import os
+ import sys
++import time
+ from datetime import datetime
+ from os import path
+
+@@ -49,7 +51,10 @@ master_doc = 'index'
+
+ # General information about the project.
+ project = 'Scrapy'
+-copyright = f'2008\u2013{datetime.now().year}, Scrapy developers'
++build_date = datetime.utcfromtimestamp(
++ int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
++)
++copyright = f'2008\u2013{build_date.year}, Scrapy developers'
+
+ # The version info for the project you're documenting, acts as replacement for
+ # |version| and |release|, also used in various other places throughout the
--- a/debian/patches/00002-Reproducible-build.patch~ 1970-01-01
01:00:00.000000000 +0100
--- b/debian/patches/00002-Reproducible-build.patch~ 2021-03-02
09:05:49.602003318 +0000
@@ -0,0 +1,28 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2021-03-02
+
+--- python-scrapy-2.4.1.orig/docs/conf.py
++++ python-scrapy-2.4.1/docs/conf.py
+@@ -9,7 +9,9 @@
+ # All configuration values have a default; values that are commented out
+ # serve to show the default.
+
++import os
+ import sys
++import time
+ from datetime import datetime
+ from os import path
+
+@@ -49,7 +51,10 @@ master_doc = 'index'
+
+ # General information about the project.
+ project = 'Scrapy'
+-copyright = f'2008\u2013{datetime.now().year}, Scrapy developers'
++year = datetime.utcfromtimestamp(
++ int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
++).year
++copyright = f'2008\u2013{year}, Scrapy developers'
+
+ # The version info for the project you're documenting, acts as replacement for
+ # |version| and |release|, also used in various other places throughout the
--- a/debian/patches/series 2021-03-02 08:55:59.355009205 +0000
--- b/debian/patches/series 2021-03-02 09:05:31.529789277 +0000
@@ -1 +1,2 @@
0001-Disable-hoverxref-and-notfound-Sphinx-extensions.patch
+00002-Reproducible-build.patch
--- a/docs/conf.py 2021-03-02 08:55:59.355009205 +0000
--- b/docs/conf.py 2021-03-02 09:06:05.762194727 +0000
@@ -9,7 +9,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
+import os
import sys
+import time
from datetime import datetime
from os import path
@@ -49,7 +51,10 @@
# General information about the project.
project = 'Scrapy'
-copyright = f'2008\u2013{datetime.now().year}, Scrapy developers'
+build_date = datetime.utcfromtimestamp(
+ int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
+)
+copyright = f'2008\u2013{build_date.year}, Scrapy developers'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
--- End Message ---
--- Begin Message ---
Source: python-scrapy
Source-Version: 2.11.2-1
Done: Andrey Rakhmatullin <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-scrapy, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andrey Rakhmatullin <[email protected]> (supplier of updated python-scrapy
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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 14 May 2024 17:45:25 +0500
Source: python-scrapy
Architecture: source
Version: 2.11.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Andrey Rakhmatullin <[email protected]>
Closes: 983852
Changes:
python-scrapy (2.11.2-1) unstable; urgency=medium
.
* New upstream version.
+ Makes the docs build reproducible (Closes: #983852).
+ Add B-D: python3-defusedxml.
Checksums-Sha1:
e7b2e0eb57a31e5a2ede57104272611b89d2a232 3471 python-scrapy_2.11.2-1.dsc
ba955e40635e918a828f206d966df0c3cc67eb2e 1388099
python-scrapy_2.11.2.orig.tar.gz
976c44532c64f2e8311eae7959942c40cca5e09a 10536
python-scrapy_2.11.2-1.debian.tar.xz
02f5401b5db119a4b3480553e7c000ef4b299138 11349
python-scrapy_2.11.2-1_amd64.buildinfo
Checksums-Sha256:
d985a79a066aa35855de56de34b99e989a1177e769089e73a0d5bd003027b306 3471
python-scrapy_2.11.2-1.dsc
8f81919548133aa7fc3bb11990126654d8d2f676413b365f3d63a003fdcd27d6 1388099
python-scrapy_2.11.2.orig.tar.gz
6d8eec8e0c4146dcff0a7930ee43d946117fb1965a25458e50e5bb96ea2940ba 10536
python-scrapy_2.11.2-1.debian.tar.xz
9ba7f012676af04c91279fd2deff3a9c81f24c648db32ef9d608f216c0130eb3 11349
python-scrapy_2.11.2-1_amd64.buildinfo
Files:
f216a0fd012c1de9118c44d397dc2cca 3471 python optional
python-scrapy_2.11.2-1.dsc
dacd73048bde17770615134673d3a844 1388099 python optional
python-scrapy_2.11.2.orig.tar.gz
2daeca7aee16d8463380696a08712548 10536 python optional
python-scrapy_2.11.2-1.debian.tar.xz
bf446712c2b1aa1aa9f032a058bf0304 11349 python optional
python-scrapy_2.11.2-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmZDYnAACgkQM2L3AxpJ
kuFjag/+O2f7KRE42d9hJyLyBGxHWSz7ohtJWVRjJ5DfOZNPQE/cx63DFF3Fh9pR
ZSCTPW8CcnbMcjAru5zw80+aIKLPdvts05YNi6q+Tuic/y2VUmRRZ2ofZHL1GWUV
JuTVyIHVbimBODWzwXBMtBCFnOW+fQ0hW6S+xdOdZapaGK93w7aIJMWHkn+To72Q
WrYMgchogDo4vZ6rbtVfLffX4FaAOU3ehA6MA+LQleK5BwrmGV1X1WTiVOeGauVh
3cBFyqIESAwuLN+525TNzUr4L+VwI3TgRc9fhHcJmTwm/kmUs208GAunMQ1mFdc4
0v+gZb8rRlql6CI2THsX5HenvRujKC/sVxtTTREFznDS9X4g+BDRIm/v/9ghhtbn
WLXTjvKhnk8V1wxdUmmZzXqd5+fsvpRtlZno4BSCXWYrCcRbQJqcn0X8NOgeLJHe
glxcTIoOUuVB7j+3x6HC0HHGeBVCRLDsqUKyMMG+37WlFTpQs08qNZE6+GW1hPkq
XFczdD/XWUxMuNpL/WL6KBIujuBHPf3ckgDnCe38BTpRYjWzCHkZ8kjjnRQmyduF
yVg6muYKXT/fGJJ+ZBXpp0A5UhRhWlgBd36UXYoXS9i2zvnCkbkXmTDJLKoZMZoV
y1g3sT89m1xrx5+4XvPp/8VHCZmZ5siqAGPbXQWYXUb0blcMI84=
=XbAB
-----END PGP SIGNATURE-----
pgp4qEXgsOxVk.pgp
Description: PGP signature
--- End Message ---