Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a91161e7 authored by Adrian Roos's avatar Adrian Roos
Browse files

ProtoLog: ensure services.core.json.gz is built deterministically

The gzip format includes a last modified timestamp, which gzip fills with the current time by default.
To avoid that, we switch to the in-tree minigzip implementation which doesn't.

Bug: 142371189
Test: make droid, verify the services.core.json.gz file is the same for repeated builds
Change-Id: Id31efe3731f922a9c960585dcb9411ffb5a4bff5
parent 33081bc1
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -144,7 +144,8 @@ genrule {
    name: "services.core.json.gz",
    name: "services.core.json.gz",
    srcs: [":checked-protolog.json"],
    srcs: [":checked-protolog.json"],
    out: ["services.core.protolog.json.gz"],
    out: ["services.core.protolog.json.gz"],
    cmd: "gzip < $(in) > $(out)",
    cmd: "$(location minigzip) -c < $(in) > $(out)",
    tools: ["minigzip"],
}
}


prebuilt_etc {
prebuilt_etc {