Bug 237521

Summary: makeprop.pl breaks reproducible builds
Product: WebKit Reporter: Alberto Garcia <berto>
Component: CSSAssignee: Alberto Garcia <berto>
Status: RESOLVED FIXED    
Severity: Normal CC: aperez, berto, cgarcia, emw, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, macpherson, menard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=242457
Attachments:
Description Flags
Patch ews-feeder: commit-queue-

Description Alberto Garcia 2022-03-07 03:33:11 PST
I'm trying to make the WebKit build reproducible, and one problem that I've found is that the CSSPropertyNames.cpp file generated by makeprop.pl is different in each build.

The reason is the way makeprop.pl iterates over the contents of hashes, which by definition are not guaranteed to have a stable order in Perl.

Fortunately this is easy to solve, I'm uploading a patch.
Comment 1 Alberto Garcia 2022-03-07 03:41:42 PST
Created attachment 453959 [details]
Patch
Comment 2 EWS 2022-03-07 04:44:44 PST
Committed r290883 (248114@main): <https://commits.webkit.org/248114@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 453959 [details].
Comment 3 Radar WebKit Bug Importer 2022-03-07 04:45:16 PST
<rdar://problem/89899805>