Bug#1039741: libapache-poi-java: reproducible builds: timezone-specific timestamp in poi.jar

Vagrant Cascadian vagrant at reproducible-builds.org
Wed Jun 28 23:51:09 BST 2023


On 2023-06-29, Jan-Benedict Glaw wrote:
> On Wed, 2023-06-28 13:34:31 -0700, Vagrant Cascadian <vagrant at reproducible-builds.org> wrote:
>> diff --git a/debian/rules b/debian/rules
>> index c94adb7..9ddad46 100755
>> --- a/debian/rules
>> +++ b/debian/rules
>> @@ -10,7 +10,7 @@ VERSION := $(shell echo $(DEB_VERSION_UPSTREAM) | sed 's/+dfsg//')
>>  	dh $@ --with maven-repo-helper --with javahelper
>>  
>>  override_dh_auto_build:
>> -	dh_auto_build -- -Dversion.id=$(VERSION) -DDSTAMP=$(shell date '--date=@$(SOURCE_DATE_EPOCH)' +%Y%m%d) jar maven-poms javadocs
>> +	dh_auto_build -- -Dversion.id=$(VERSION) -DDSTAMP=$(shell date '--utc --date=@$(SOURCE_DATE_EPOCH)' +%Y%m%d) jar maven-poms javadocs
>>  
>>  override_dh_auto_test:
>>  ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
>
> IMHO the `--utc` is misplaced within the `--date` quoting.

Ah, sure ... although not sure that the '' are even necessary, as
SOURCE_DATE_EPOCH is an integer...

Regardless, the patch consistently works for me! :)

live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20230628/8d4d6f2d/attachment-0003.sig>


More information about the pkg-java-maintainers mailing list