[Bug 286840] devel/emscripten missing media

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 16 May 2025 22:12:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286840

            Bug ID: 286840
           Summary: devel/emscripten missing media
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: jsm@FreeBSD.org
             Flags: maintainer-feedback?(yuri@freebsd.org)
          Assignee: yuri@freebsd.org

Created attachment 260458
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=260458&action=edit
includes the upstream media dir as is.

I do not know if I am missing some documentation. But without attached patch,
which includes the upstream media to the installation

emcc test.c -o test.html
gives the following:

Traceback (most recent call last):
  File "/usr/local/lib/emscripten/emcc.py", line 1596, in <module>
    sys.exit(main(sys.argv))
             ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/emscripten/emcc.py", line 1589, in main
    ret = run(args)
          ^^^^^^^^^
  File "/usr/local/lib/emscripten/emcc.py", line 673, in run
    return link.run(options, linker_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/emscripten/tools/link.py", line 3187, in run
    phase_post_link(options, wasm_target, wasm_target, target, js_syms,
base_metadata)
  File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/emscripten/tools/link.py", line 1922, in phase_post_link
    phase_final_emitting(options, target, js_target, wasm_target)
  File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/emscripten/tools/link.py", line 2159, in
phase_final_emitting
    generate_html(target, options, js_target, target_basename,
  File "/usr/local/lib/emscripten/tools/link.py", line 2669, in generate_html
    generate_traditional_runtime_html(target, options, js_target,
target_basename, wasm_target)
  File "/usr/local/lib/emscripten/tools/link.py", line 2609, in
generate_traditional_runtime_html
    logo_b64 = base64_encode(logo_filename)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/emscripten/tools/link.py", line 147, in base64_encode
    data = utils.read_binary(filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/emscripten/tools/utils.py", line 58, in read_binary
    with open(file_path, 'rb') as fh:
         ^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory:
'/usr/local/lib/emscripten/media/powered_by_logo_shell.png'

-- 
You are receiving this mail because:
You are the assignee for the bug.