• Bug#1108794: mozjs140: autopkgtest fails to compile a sample against js

    From Simon McVittie@21:1/5 to All on Sat Jul 5 10:50:01 2025
    Source: mozjs140
    Version: 140.0-2
    Severity: serious
    Justification: rc_policy.txt �6a
    User: [email protected]
    Usertags: fails-always

    The new mozjs140 source package builds successfully (on release
    architectures other than armel), but is failing its superficial
    autopkgtest, which links a trivial test program against it.

    This log snippet is from aarch64, but the same thing happens on other architectures:

    59s + pkgconf --cflags --libs mozjs-140
    59s + g++ test.cpp -o test -isystem /usr/include/aarch64-linux-gnu/mozjs-140 -L/usr/lib/aarch64-linux-gnu/ -lmozjs-140
    59s In file included from /usr/include/aarch64-linux-gnu/mozjs-140/mozilla/BaseProfileJSONWriter.h:17,
    59s from /usr/include/aarch64-linux-gnu/mozjs-140/mozilla/BaseProfilerMarkersPrerequisites.h:27,
    59s from /usr/include/aarch64-linux-gnu/mozjs-140/js/ProfilingStack.h:11,
    59s from /usr/include/aarch64-linux-gnu/mozjs-140/js/RootingAPI.h:29,
    59s from /usr/include/aarch64-linux-gnu/mozjs-140/js/CallAndConstruct.h:15,
    59s from /usr/include/aarch64-linux-gnu/mozjs-140/jsapi.h:30,
    59s from test.cpp:7:
    59s /usr/include/aarch64-linux-gnu/mozjs-140/mozilla/UniquePtrExtensions.h:104:6: error: #error "Unsupported OS?"
    59s 104 | # error "Unsupported OS?"
    59s | ^~~~~
    59s In file included from /usr/include/aarch64-linux-gnu/mozjs-140/mozilla/BaseProfilerMarkersPrerequisites.h:28:
    59s /usr/include/aarch64-linux-gnu/mozjs-140/BaseProfilingCategory.h:15:10: fatal error: ProfilingCategoryList.h: No such file or directory
    59s 15 | #include "ProfilingCategoryList.h"
    59s | ^~~~~~~~~~~~~~~~~~~~~~~~~

    Perhaps the test program needs updating for some sort of API change, or
    perhaps this will break gjs too.

    smcv

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)