Note that this could have been fixed by escaping properly, but using REFERENCE_DATETIME directly is simpler.
Future note: REFERENCE_{DATE{,DATETIME},TIME} is a bit ridiculous. At the very least gitian should use epoch, as it is the most parse-able, and preferably set SOURCE_DATE_EPOCH.
scripted-diff: gitian: Use REFERENCE_DATETIME directly.
Fixes regression introduced by #16141
-BEGIN VERIFY SCRIPT-
sed -i 's#\$REFERENCE_DATE\\\\\\ \$REFERENCE_TIME#\$REFERENCE_DATETIME#g' contrib/gitian-descriptors/*
-END VERIFY SCRIPT-
993aa414d3
dongcarl requested review from fanquake
on Jun 10, 2019
dongcarl added the label
Build system
on Jun 10, 2019
dongcarl added the label
Needs gitian build
on Jun 10, 2019
MarcoFalke
commented at 7:44 pm on June 10, 2019:
member
Can you explain how the regression was introduced?
MarcoFalke
commented at 7:44 pm on June 10, 2019:
member
Concept ACK
fanquake
commented at 7:48 pm on June 10, 2019:
member
Concept ACK. Thanks.
@MarcoFalke It was my poor copy-paste, followed by some over-the-shoulder review.
Also a little related discussion in the #bitcoin-builds IRC channel.
edit: closing obviously accidental.
fanquake closed this
on Jun 10, 2019
fanquake reopened this
on Jun 10, 2019
MarcoFalke
commented at 7:52 pm on June 10, 2019:
member
Oh, let me rephrase: Why did REFERENCE_TIME && REFERENCE_DATE work previously, but does no longer?
dongcarl
commented at 8:07 pm on June 10, 2019:
member
MarcoFalke
commented at 8:28 pm on June 10, 2019:
member
Ah, so the issue could be fixed by escaping properly, but you decided to use _DATETIME directly. Sounds fair. Maybe mention that in the OP?
dongcarl
commented at 8:42 pm on June 10, 2019:
member
Ah, so the issue could be fixed by escaping properly, but you decided to use _DATETIME directly. Sounds fair. Maybe mention that in the OP?
Done.
sidhujag
commented at 9:06 pm on June 10, 2019:
none
Oh, let me rephrase: Why did REFERENCE_TIME && REFERENCE_DATE work previously, but does no longer?
I don’t think it was actually being used, it was in a variable and then copied and pasted into the sed by #16141 which broke the build, but should have been escaped
dongcarl
commented at 9:34 pm on June 10, 2019:
member
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2024-11-17 18:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me