Processed: Re: Bug#783146: mapserver: please make the build reproducible

2015-04-23 Thread Debian Bug Tracking System
Processing control commands:

 tags -1 pending
Bug #783146 [src:mapserver] mapserver: please make the build reproducible
Added tag(s) pending.

-- 
783146: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783146
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel


Bug#783146: mapserver: please make the build reproducible

2015-04-23 Thread Sebastiaan Couwenberg
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Control: tags -1 pending

Hi Reiner,

Thanks for the patch. Applied in git, and a new upload for
experimental is being prepared.

On 04/22/2015 10:40 PM, Reiner Herrmann wrote:
 The attached patch uses the date from the latest changelog entry 
 inside the manpages.

Since this is the same change as for osgearth (#783026) and
docbook2x-man is used in more GIS packages, I'll apply the change to
all remaining packages too.

Kind Regards,

Bas

- -- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQIcBAEBCgAGBQJVOT20AAoJEGdQ8QrojUrxL3oQAMiO2yyzbl2vyyPwq8M6qPlx
VryY0RZ1zGFnIChQa6UY7BqCttTB6L8JCUbjjKBMTFUYNx1WOBnh5zP4n9V6pl7Y
RkuCyAB+MHvXi7xzuZd8OvlVvFHQNyrlmmGHGOJO41aQpsYA3sZk6klD87AEsQqn
jeJduG2CYs8oA2qwh3++dF7CMfzivCjlZtvej9agJp1+qTi78cXPqupcTN/rmXm2
gJGOHW8qOUM5JfUwAzfLlZB2xfoY2lswaJlUK1NDVa+adbmaWxDUfcKZoJhZQsYA
F43QRpUufBGvZSmOdYQPztT13yC8DNsdouKeyQOsr/Kwv07HVUE1MnjNL+3krWuK
ay+0O21KNWqz8HOnrw427JTJaDL1Ckm0ZbUQA3eopUtt7CHxp+0ZtgHxTKg9bo+P
s9uD9Cwyp4kGHAjDWmDGc/AgFyhjxxSb0HgdYbyJtrBXWSBUaH2E/o7/45VeufTx
+9MUVt3Xj42/I6PrDuOp19Pi5dKBP5Re1CMrR64N9y66eOHy7i4eNPiTL+4X0ojW
oPQJzQ/ntQX9ASViegDMaGbCvdqysxnDLP0AlDbx4kAKjcQTUNKDWn7503IelIwW
Aj3r9xxnXtWC0OOJWf4ufGleBKtZQQ1bzQTEIJ+rYgva6jyiPmXG3nTyvrLocO5s
6weJfS+Aw74c71dfydeR
=/dPg
-END PGP SIGNATURE-

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel


Bug#783146: mapserver: please make the build reproducible

2015-04-23 Thread Reiner Herrmann
On 04/23/2015 08:45 PM, Sebastiaan Couwenberg wrote:
 Since this is the same change as for osgearth (#783026) and
 docbook2x-man is used in more GIS packages, I'll apply the change to
 all remaining packages too.

Cool, thank you! :-)

Regards,
 Reiner



signature.asc
Description: OpenPGP digital signature
___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Bug#783146: mapserver: please make the build reproducible

2015-04-22 Thread Reiner Herrmann
Source: mapserver
Version: 6.4.1-5
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-CC: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on Debian's “reproducible builds” effort [1], we have
noticed that mapserver doesn't build reproducibly.
During build the current date is embedded into the manpages.

The attached patch uses the date from the latest changelog entry
inside the manpages.

Regards,
 Reiner

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


diff --git a/debian/rules b/debian/rules
index 604b749..c30657e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,6 +26,7 @@ PHP5API=$(shell php-config5 --phpapi)
 MANPAGES:=$(wildcard debian/man/*.*.xml)
 
 MS_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
+BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u +%d %B %Y -f -)
 
 CMAKE_OPTS:= \
 		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
@@ -106,7 +107,7 @@ override_dh_auto_configure:
 override_dh_auto_build:
 	# Create man pages from DocBook XML
 	for x in $(MANPAGES) ; do \
-	  docbook2x-man $$x ; \
+	  docbook2x-man --string-param header-3=$(BUILD_DATE) $$x ; \
 	  mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
 	done
 


signature.asc
Description: OpenPGP digital signature
___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel