[Git][debian-gis-team/mapproxy][master] Add patch by Chris Lamb to make the build reproducible. (closes: #1012836)
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Wed Jun 15 08:43:35 BST 2022
Bas Couwenberg pushed to branch master at Debian GIS Project / mapproxy
Commits:
205b9be4 by Bas Couwenberg at 2022-06-15T09:43:27+02:00
Add patch by Chris Lamb to make the build reproducible. (closes: #1012836)
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/reproducible-build.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+mapproxy (1.15.1-2) UNRELEASED; urgency=medium
+
+ * Add patch by Chris Lamb to make the build reproducible.
+ (closes: #1012836)
+
+ -- Bas Couwenberg <sebastic at debian.org> Wed, 15 Jun 2022 09:34:48 +0200
+
mapproxy (1.15.1-1) unstable; urgency=medium
* New upstream release.
=====================================
debian/patches/reproducible-build.patch
=====================================
@@ -0,0 +1,49 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Bug-Debian: https://bugs.debian.org/1012836
+Forwarded: https://github.com/mapproxy/mapproxy/pull/585
+
+--- a/mapproxy/cache/geopackage.py
++++ b/mapproxy/cache/geopackage.py
+@@ -14,12 +14,14 @@
+ # limitations under the License.
+
+
++import datetime
+ import hashlib
+ import logging
+ import os
+ import re
+ import sqlite3
+ import threading
++import time
+
+ from mapproxy.cache.base import TileCacheBase, tile_buffer, REMOVE_ON_UNLOCK
+ from mapproxy.compat import BytesIO, PY2, itertools
+@@ -305,6 +307,10 @@ AUTHORITY["EPSG","9122"]],AUTHORITY["EPS
+ log.info("srs_id already exists.".format(wkt_entry[0]))
+ db.commit()
+
++ last_change = datetime.datetime.utcfromtimestamp(
++ int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
++ )
++
+ # Ensure that tile table exists here, don't overwrite a valid entry.
+ try:
+ db.execute("""
+@@ -313,6 +319,7 @@ AUTHORITY["EPSG","9122"]],AUTHORITY["EPS
+ data_type,
+ identifier,
+ description,
++ last_change,
+ min_x,
+ max_x,
+ min_y,
+@@ -323,6 +330,7 @@ AUTHORITY["EPSG","9122"]],AUTHORITY["EPS
+ "tiles",
+ self.table_name,
+ "Created with Mapproxy.",
++ last_change,
+ self.tile_grid.bbox[0],
+ self.tile_grid.bbox[2],
+ self.tile_grid.bbox[1],
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
disable-tag_date.patch
+reproducible-build.patch
View it on GitLab: https://salsa.debian.org/debian-gis-team/mapproxy/-/commit/205b9be4395b4bedb4518834bcd13d27c0eac700
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/mapproxy/-/commit/205b9be4395b4bedb4518834bcd13d27c0eac700
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20220615/b3897810/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list