mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
rpc: reproducible genprotocol output
If the same source gets built twice ('build same source on different hosts at different times') the resulting files may differ. Fix this by sorting the hash keys before usage. Signed-off-by: Olaf Hering <olaf@aepfle.de>
This commit is contained in:
parent
86a6cb13e9
commit
297ed93ae0
@ -104,7 +104,7 @@ while (<RPCGEN>) {
|
|||||||
if (keys %uses >= 1) {
|
if (keys %uses >= 1) {
|
||||||
my $i = 1;
|
my $i = 1;
|
||||||
|
|
||||||
foreach (keys %uses) {
|
foreach (sort(keys %uses)) {
|
||||||
$i = $uses{$_};
|
$i = $uses{$_};
|
||||||
unshift @function,
|
unshift @function,
|
||||||
(" char **objp_cpp$i = (char **) (void *) &$_;\n");
|
(" char **objp_cpp$i = (char **) (void *) &$_;\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user