Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Packaging/Compliance: bundled third-party license surface (CTRE, enchantum, yyjson) in include/rfl/thirdparty #144

Backlog

Description

@clockblocker

Part of #138
Popularity: 2/7 corpus consumers (cuda-quantum, holoscan-sdk)

Problem

reflect-cpp (v0.25.0) bundles third-party libraries directly under include/rfl/thirdparty (CTRE under Apache-2.0 WITH LLVM-exception, enchantum under MIT, and yyjson under MIT) without shipping a consolidated, machine-readable license/SBOM manifest or standalone license files for each bundled component. Commercial/enterprise redistributors must manually audit include/rfl/thirdparty, extract embedded license text from headers (such as ctre.hpp), document which bundled code is actually compiled into binaries (e.g. explaining why yyjson is omitted when REFLECTCPP_JSON=OFF), and scrape FetchDependencies.cmake for source-archive provenance.

Observed Downstream Workarounds

NVIDIA/cuda-quantum (90e4aa08)

  • LICENSES/README.md#L15-L18 and #L43-L52: maintains separate LICENSE.reflect-cpp, LICENSE.ctre, and LICENSE.enchantum files, manually reproduces the Apache-2.0 WITH LLVM-exception text embedded in include/rfl/thirdparty/ctre.hpp, and adds an explicit disclaimer explaining that bundled yyjson is not compiled when REFLECTCPP_JSON=OFF:

    reflect-cpp bundles the header-only CTRE and enchantum libraries under include/rfl/thirdparty; LICENSE.ctre reproduces the Apache License 2.0 text with LLVM Exceptions embedded in the bundled ctre.hpp header. reflect-cpp also bundles the yyjson header, but that code is not compiled into CUDA-Q binaries because reflect-cpp's JSON support is disabled; it is therefore not listed above.

  • NOTICE#L275-L321: manually lists separate reflect-cpp, CTRE, and enchantum attribution blocks.
  • scripts/generate_image_sources_lock.py#L86-L95: regex-parses FetchDependencies.cmake to generate container source-archive lock entries for reflect-cpp.

nvidia-holoscan/holoscan-sdk (358c772f)

  • NOTICE.txt#L323-L326: manually enumerates the composite license expression and bundled components:
    reflect-cpp (https://github.com/getml/reflect-cpp)
    Copyright (c) 2023-2025 Code17 GmbH
    Licensed under MIT AND Apache-2.0 WITH LLVM-exception (https://github.com/getml/reflect-cpp/blob/v0.25.0/README.md#license)
    Bundled components: YYJSON, compile-time-regular-expressions, enchantum
    

Potential Improvements

  • Ship standalone license files (or a THIRD_PARTY_NOTICES / SPDX manifest) for every vendored component in include/rfl/thirdparty so downstream compliance tooling does not need to scrape headers.
  • Document clearly which third-party headers are required per feature flag (e.g. REFLECTCPP_JSON=OFF does not compile yyjson).

Activity

  1. added
    documentation
    needs-triage
    known-downstream-workarounds
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationknown-downstream-workaroundsneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions