Your message dated Mon, 27 Apr 2015 22:20:32 +0000
with message-id <[email protected]>
and subject line Bug#779605: fixed in php-apigen 2.8.1+dfsg-2
has caused the Debian Bug report #779605,
regarding php-apigen: please make the output 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.)
--
779605: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779605
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: php-apigen
Version: 2.8.0+dfsg-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: toolchain timestamps
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that php-apigen is generating non-reproducible output.
The attached patch adds a --reproducible option that removes timestamps
and so forth. Once applied, packages that use php-apigen can be built
reproducibly in our reproducible toolchain.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/ApiGen-2.8.0/ApiGen/Config.php b/ApiGen-2.8.0/ApiGen/Config.php
index ea35741..7a9e925 100644
--- a/ApiGen-2.8.0/ApiGen/Config.php
+++ b/ApiGen-2.8.0/ApiGen/Config.php
@@ -73,6 +73,7 @@ class Config
'progressbar' => true,
'colors' => true,
'updateCheck' => true,
+ 'reproducible' => true,
'debug' => false
);
@@ -565,6 +566,7 @@ Options:
@option@--progressbar@c <@value@yes@c|@value@no@c> Display
progressbars, default "@value@yes@c"
@option@--colors@c <@value@yes@c|@value@no@c> Use colors,
default "@value@no@c" on Windows, "@value@yes@c" on other systems
@option@--update-check@c <@value@yes@c|@value@no@c> Check for
update, default "@value@yes@c"
+ @option@--reproducible@c <@value@yes@c|@value@no@c> Try and make
output reproducible, default "@value@yes@c"
@option@--debug@c <@value@yes@c|@value@no@c> Display
additional information in case of an error, default "@value@no@c"
@option@--help@c|@option@-h@c Display this help
diff --git a/ApiGen-2.8.0/ApiGen/Generator.php
b/ApiGen-2.8.0/ApiGen/Generator.php
index 56e8418..e87f8f8 100644
--- a/ApiGen-2.8.0/ApiGen/Generator.php
+++ b/ApiGen-2.8.0/ApiGen/Generator.php
@@ -1393,12 +1393,19 @@ class Generator extends Nette\Object
throw new RuntimeException('Could not open ZIP
archive');
}
- $archive->setArchiveComment(trim(sprintf('%s API documentation
generated by %s %s on %s', $this->config->title, self::NAME, self::VERSION,
date('Y-m-d H:i:s'))));
+ $comment = sprintf('%s API documentation generated by %s %s',
$this->config->title, self::NAME, self::VERSION);
+ if (!$this->config->reproducible) {
+ $comment .= sprintf(' on %s', date('Y-m-d H:i:s'));
+ }
+ $archive->setArchiveComment(trim($comment));
$directory = Nette\Utils\Strings::webalize(trim(sprintf('%s API
documentation', $this->config->title)), null, false);
$destinationLength = strlen($this->config->destination);
foreach ($this->getGeneratedFiles() as $file) {
if (is_file($file)) {
+ if ($this->config->reproducible) {
+ touch($file, 0);
+ }
$archive->addFile($file, $directory .
DIRECTORY_SEPARATOR . substr($file, $destinationLength + 1));
}
}
--- End Message ---
--- Begin Message ---
Source: php-apigen
Source-Version: 2.8.1+dfsg-2
We believe that the bug you reported is fixed in the latest version of
php-apigen, 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.
David Prévot <[email protected]> (supplier of updated php-apigen 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: SHA256
Format: 1.8
Date: Mon, 27 Apr 2015 17:21:09 -0400
Source: php-apigen
Binary: php-apigen
Architecture: source all
Version: 2.8.1+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian PHP PEAR Maintainers <[email protected]>
Changed-By: David Prévot <[email protected]>
Description:
php-apigen - ${phpcomposer:description}
Closes: 779605
Changes:
php-apigen (2.8.1+dfsg-2) unstable; urgency=medium
.
* Upload to unstable, since Jessie has been released
* Keep version 4 in experimental for the time being since new dependencies
have not all been processed yet.
.
[ David Prévot ]
* Track 2.8 branch
.
[ Chris Lamb ]
* Make the output reproducible (Closes: #779605)
Checksums-Sha1:
a50393d971f9324e13c02efdf4a702a94a90c3a3 1706 php-apigen_2.8.1+dfsg-2.dsc
406a19ed60c59befa9d43ef714c59dbcc2f21308 120720
php-apigen_2.8.1+dfsg.orig.tar.gz
72d5581b795b714da348e9412aeee1056c9c45a7 6592
php-apigen_2.8.1+dfsg-2.debian.tar.xz
adb84329efe2ffe3b742c4d4724e9e7aeb91f05f 91174 php-apigen_2.8.1+dfsg-2_all.deb
Checksums-Sha256:
df669e10d9020c1fdf7ebb353953c04b47147a0ed97d37abda7f75a33555a737 1706
php-apigen_2.8.1+dfsg-2.dsc
3aeddabd36a97dc4e616a39650a06bf462522d9d6f4f5b0b33a79d9ee535de23 120720
php-apigen_2.8.1+dfsg.orig.tar.gz
cd3b3637b089cccdaab68816ec9647686ee56cdd6d8fbedc74d174b5d9351f5f 6592
php-apigen_2.8.1+dfsg-2.debian.tar.xz
183f25f2e8d01b9d14edc79c363fcb255fd30c2fae3d209bfa135250e5087690 91174
php-apigen_2.8.1+dfsg-2_all.deb
Files:
3b16de6845507dc3b48684114a5683ec 1706 php optional php-apigen_2.8.1+dfsg-2.dsc
fd0f8406fc4388f0338c25f1a8332e4b 120720 php optional
php-apigen_2.8.1+dfsg.orig.tar.gz
95158341527f7d5ae0a7e811be086bd4 6592 php optional
php-apigen_2.8.1+dfsg-2.debian.tar.xz
e95f5532e3c4e0b7528011b64bd19683 91174 php optional
php-apigen_2.8.1+dfsg-2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBCAAGBQJVPqvoAAoJEAWMHPlE9r08wLQH/0unAmv1PyphokDNE9+vSXTw
oWBZFk8QFm0BjYldruxWAQXK+3upiHSaEDDGX6+wIkN+0quKPwOQWRyUw/rp4DNU
KeVAvgoRvgJQo7hV2IRB/5+Ipxm4SSKHHpLILnWYfwHY9SKawIWniHGV1Kqxv59M
Yss+bheAsXYyDxo53iq4+cBwQ8pJxnoANOgB87+cFzyWuGoFLnc+Obeluy0s/E1N
1sqHWuoIjEgdQB17Ovv/m3nyIclpL3vzh0vSeE5JnVy9PI2sykMWZq9vuOSPYz5j
ABoXCXA6JBfDgpNeTSIKHD6B18mjrdQr7WFcdA4zdcyWNmzBpgkK6tWsD899bQ0=
=RbdV
-----END PGP SIGNATURE-----
--- End Message ---