Bug 299333 - www/firefox: build fails in file_generate.py for extensions/newtab/build-newtab-bundles.py
Summary: www/firefox: build fails in file_generate.py for extensions/newtab/build-newt...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-10-12 15:09 UTC by Curtis Villamizar
Modified: 2026-10-13 01:04 UTC (History)
1 user (show)

See Also:
linimon: maintainer-feedback? (gecko)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Villamizar 2026-10-12 15:09:27 UTC
at /usr/releng/r15-20261009/ports/www/firefox/work/firefox-158.0/third_party
/node/node_modules/webpack/lib/DefinePlugin.js:683:22
Traceback (most recent call last):
  File "<frozen runpy>", line 203, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/releng/r15-20261009/ports/www/firefox/work/firefox-158.0/python/moz
build/mozbuild/action/file_generate.py", line 156, in <module>
    sys.exit(main(sys.argv[1:]))
             ~~~~^^^^^^^^^^^^^^
  File "/usr/releng/r15-20261009/ports/www/firefox/work/firefox-158.0/python/moz
build/mozbuild/action/file_generate.py", line 100, in main
    ret = module.__dict__[method](
        output, *args.additional_arguments, **kwargs
    )
  File "/usr/releng/r15-20261009/ports/www/firefox/work/firefox-158.0/browser/ex
tensions/newtab/build-newtab-bundles.py", line 128, in generate_js
    _run(
    ~~~~^
        [
        ^
    ...<9 lines>...
        extra_env={"MOZ_WEBPACK_DEPS": deps_file},
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/releng/r15-20261009/ports/www/firefox/work/firefox-158.0/browser/ex
tensions/newtab/build-newtab-bundles.py", line 114, in _run
    raise Exception(f"{argv[1]} failed with exit code {result.returncode}")
Exception: /usr/releng/r15-20261009/ports/www/firefox/work/firefox-158.0/third_p
arty/node/node_modules/webpack/bin/webpack.js failed with exit code 2
/usr/releng/r15-20261009/ports/www/firefox/work/.mozbuild/srcdirs/firefox-158.0-
7bfb690aae4f/_virtualenvs/build/bin/python -m mozbuild.action.install_objdir_fil
e injections/generated/bug1899930-africanews.com-hide_browser_notice.css ../../.
./../dist/xpi-stage/webcompat/injections/generated/bug1899930-africanews.com-hid
e_browser_notice.css
gmake[2]: *** [backend.mk:5859: browser/extensions/newtab/data/content/.deps/ven
dor.bundle.js.stub] Error 1
gmake[2]: *** Waiting for unfinished jobs....

Content of the file work/.build/dist/xpi-stage/webcompat/injections/generated/bug1899930-africanews.com-hide_browser_notice.css is:

/* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. */            
                                                                                
#platform-detection-info { display: none !important; }

I'm not sure what generates this file and if that is relevant.

I haven't found a workaround yet.