gjs 1.65.90: build error against mozjs78: fatal error: js/experimental/CodeCoverage.h: No such file or directory
While building gjs against mozjs78 for Mageia I got an build error. Seems gjs 1.65.90 depends on a file which does not exist in Mozilla-esr78.
The build error shows:
../gjs/coverage.cpp:41:10: fatal error: js/experimental/CodeCoverage.h: No such file or directory 41 | #include <js/experimental/CodeCoverage.h> // for EnableCodeCoverage | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
For reference (should not be needed), the spec files are at:
- gjs: http://svnweb.mageia.org/packages/cauldron/gjs/current/SPECS/
- mozjs78: http://svnweb.mageia.org/packages/cauldron/mozjs78/current/SPECS/ (this spec is mostly aligned with the Fedora one)
I found a commit which adds the file, however it does not apply against 78 esr. Initially I thought it did. That patch is at: http://svnweb.mageia.org/packages/cauldron/mozjs78/current/SOURCES/1283143e3d557b54a6262253d6003af733203a14?revision=1613787&view=markup I found it by Googling, currently cannot figure out exactly where I got it from.
Looking at the likely branch for 78esr upstream(Mozilla), I don't see the file: https://hg.mozilla.org/releases/mozilla-esr78/file/tip/js/public/experimental
How is gjs supposed to be built against 78esr?