lib/oe/reproducible: Use git log without gpg signature
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 lib/oe/reproducible: Use git log without gpg signature
Previously, if "showSignature" is present in user gitconfig, parsing of the timestamp will fail.
Ideally we should replace this command with a git plumbing command.
--- meta/lib/oe/reproducible.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/lib/oe/reproducible.py +2 -1
@@ -115,7 +115,8 @@ def get_source_date_epoch_from_git(d, sourcedir): return None bb.debug(1, "git repository: %s" % gitpath) - p = subprocess.run(['git', '--git-dir', gitpath, 'log', '-1', '--pretty=%ct'], check=True, stdout=subprocess.PIPE) + p = subprocess.run(['git', '-c', 'log.showSignature=false', '--git-dir', gitpath, 'log', '-1', '--pretty=%ct'], + check=True, stdout=subprocess.PIPE) return int(p.stdout.decode('utf-8')) def get_source_date_epoch_from_youngest_file(d, sourcedir):
Signature · 1 line
2.39.0
Hello,
please send this to the oe-core mailing list, as changes in poky/meta/ should go there. It's something of a historical baggage :-)
Alex
Quoted 31 lines · Benoît Mauduit via lists.yoctoproject.org
Previously, if "showSignature" is present in user gitconfig, parsing of the timestamp will fail.
Ideally we should replace this command with a git plumbing command.
Signed-off-by Benoît Mauduit <[email protected]>--- meta/lib/oe/reproducible.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta/lib/oe/reproducible.py +2
-2@@ -115,7 +115,8 @@ def get_source_date_epoch_from_git(d, sourcedir): return None bb.debug(1, "git repository: %s" % gitpath) - p = subprocess.run(['git', '--git-dir', gitpath, 'log', '-1', '--pretty=%ct'], check=True, stdout=subprocess.PIPE) + p = subprocess.run(['git', '-c', 'log.showSignature=false', '--git-dir', gitpath, 'log', '-1', '--pretty=%ct'], + check=True, stdout=subprocess.PIPE) return int(p.stdout.decode('utf-8')) def get_source_date_epoch_from_youngest_file(d, sourcedir): --2.39.0
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello,
Any update on my patch ?
Thanks,
BR,
Quoted 35 lines · Benoît Mauduit via lists.openembedded.org
Previously, if "showSignature" is present in user gitconfig, parsing of the timestamp will fail.
Ideally we should replace this command with a git plumbing command.
Signed-off-by Benoît Mauduit <[email protected]>--- meta/lib/oe/reproducible.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta/lib/oe/reproducible.py +2
-2@@ -115,7 +115,8 @@ def get_source_date_epoch_from_git(d, sourcedir): return None bb.debug(1, "git repository: %s" % gitpath) - p = subprocess.run(['git', '--git-dir', gitpath, 'log', '-1', '--pretty=%ct'], check=True, stdout=subprocess.PIPE) + p = subprocess.run(['git', '-c', 'log.showSignature=false', '--git-dir', gitpath, 'log', '-1', '--pretty=%ct'], + check=True, stdout=subprocess.PIPE) return int(p.stdout.decode('utf-8')) def get_source_date_epoch_from_youngest_file(d, sourcedir): -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#175795): https://lists.openembedded.org/g/openembedded-core/message/175795
Mute This Topic: https://lists.openembedded.org/mt/96222114/7398344
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 2 lines
Benoît Mauduit <[email protected]>
Quoted 3 lines · Benoît Mauduit via lists.openembedded.org
Hello,
Any update on my patch ?
It merged a while ago:
https://git.yoctoproject.org/poky/commit/?id=4c8d17088f33cd23c631cb9b76c6ca9bfa5b44ea
Cheers,
Richard