Source: librpc-xml-perl
Version: 0.78-2
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 librpc-xml-perl doesn't build reproducibly.
The tool make_method adds timestamps into the comment of generated
XML files.

It would be nice, if they would not be included.
The attached patch removes them.

Regards,
 Reiner

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


diff --git a/debian/patches/0002-Remove-timestamps-from-generated-xml-files.patch b/debian/patches/0002-Remove-timestamps-from-generated-xml-files.patch
new file mode 100644
index 0000000..b797b1e
--- /dev/null
+++ b/debian/patches/0002-Remove-timestamps-from-generated-xml-files.patch
@@ -0,0 +1,21 @@
+Index: librpc-xml-perl-0.78/etc/make_method
+===================================================================
+--- librpc-xml-perl-0.78.orig/etc/make_method
++++ librpc-xml-perl-0.78/etc/make_method
+@@ -363,7 +363,6 @@ sub write_file
+         }
+     }
+ 
+-    my $date = scalar localtime;
+     my %typemap = (
+         'm' => 'method',
+         p   => 'procedure',
+@@ -399,7 +398,7 @@ sub write_file
+ <?xml version="1.0" encoding="iso-8859-1"?>
+ <!DOCTYPE $tag SYSTEM "rpc-method.dtd">
+ <!--
+-    Generated automatically by $cmd $VERSION on $date
++    Generated automatically by $cmd $VERSION
+ 
+     Any changes made here will be lost.
+ -->
diff --git a/debian/patches/series b/debian/patches/series
index 71af6f7..42d2f3e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Explicitly-use-an-IPv4-socket-in-the-Net-Server-test.patch
+0002-Remove-timestamps-from-generated-xml-files.patch

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to