From 2a9700fcd7f1de8de5ba9cb83cc2ce1bdccd86a8 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Wed, 10 Sep 2025 14:46:39 -0500 Subject: [PATCH] [ROCProfiler-Register/Systems/Compute] Fixing License file name usage (#927) ROCProfiler-Register/Systems/Compute: The license file name in the CMake install module and other locations was originally LICENSE, but it was recently changed to LICENSE.md, requiring an update to the CMake install module and all other relevant locations. --- .github/workflows/rocprofiler-compute-tarball.yml | 2 +- .../rocprofiler-compute/.azuredevops/rocm-ci-mainline.yml | 2 -- projects/rocprofiler-compute/.azuredevops/rocm-ci.yml | 2 -- projects/rocprofiler-compute/CMakeLists.txt | 6 +++--- projects/rocprofiler-compute/README.md | 2 +- projects/rocprofiler-compute/docs/license.rst | 2 +- .../cmake/rocprofiler_register_config_install.cmake | 2 +- projects/rocprofiler-systems/.azuredevops/rocm-ci.yml | 2 -- projects/rocprofiler-systems/CMakeLists.txt | 7 ++++--- projects/rocprofiler-systems/CONTRIBUTING.md | 2 +- projects/rocprofiler-systems/docs/license.rst | 2 +- projects/rocprofiler-systems/scripts/check-copyright.sh | 2 +- 12 files changed, 14 insertions(+), 19 deletions(-) diff --git a/.github/workflows/rocprofiler-compute-tarball.yml b/.github/workflows/rocprofiler-compute-tarball.yml index e7fa84090a..fddd556531 100644 --- a/.github/workflows/rocprofiler-compute-tarball.yml +++ b/.github/workflows/rocprofiler-compute-tarball.yml @@ -104,7 +104,7 @@ jobs: test -d $INSTALL_DIR/rocprofiler-compute/libexec/rocprofiler-compute/utils test -s $INSTALL_DIR/rocprofiler-compute/share/rocprofiler-compute/sample/vcopy.cpp test -d $INSTALL_DIR/rocprofiler-compute/share/rocprofiler-compute/modulefiles - test -s $INSTALL_DIR/rocprofiler-compute/share/doc/rocprofiler-compute/LICENSE + test -s $INSTALL_DIR/rocprofiler-compute/share/doc/rocprofiler-compute/LICENSE.md - name: Query version (setting PYTHONPATH by hand) run: | export PYTHONPATH=${INSTALL_DIR}/python-libs:$PYTHONPATH diff --git a/projects/rocprofiler-compute/.azuredevops/rocm-ci-mainline.yml b/projects/rocprofiler-compute/.azuredevops/rocm-ci-mainline.yml index 042e985b8a..7bb4f43a23 100644 --- a/projects/rocprofiler-compute/.azuredevops/rocm-ci-mainline.yml +++ b/projects/rocprofiler-compute/.azuredevops/rocm-ci-mainline.yml @@ -21,7 +21,6 @@ trigger: - '.*.y*ml' - '*.md' - AUTHORS - - LICENSE - VERSION pr: @@ -36,7 +35,6 @@ pr: - '.*.y*ml' - '*.md' - AUTHORS - - LICENSE - VERSION drafts: false diff --git a/projects/rocprofiler-compute/.azuredevops/rocm-ci.yml b/projects/rocprofiler-compute/.azuredevops/rocm-ci.yml index 26e4d6095a..def1673021 100644 --- a/projects/rocprofiler-compute/.azuredevops/rocm-ci.yml +++ b/projects/rocprofiler-compute/.azuredevops/rocm-ci.yml @@ -22,7 +22,6 @@ trigger: - '.*.y*ml' - '*.md' - AUTHORS - - LICENSE - VERSION pr: @@ -38,7 +37,6 @@ pr: - '.*.y*ml' - '*.md' - AUTHORS - - LICENSE - VERSION drafts: false diff --git a/projects/rocprofiler-compute/CMakeLists.txt b/projects/rocprofiler-compute/CMakeLists.txt index 9525ed5ee8..bf7a0065f8 100644 --- a/projects/rocprofiler-compute/CMakeLists.txt +++ b/projects/rocprofiler-compute/CMakeLists.txt @@ -484,10 +484,10 @@ add_custom_target( license COMMAND ${PROJECT_SOURCE_DIR}/utils/update_license.py --source ${PROJECT_SOURCE_DIR}/src - --license ${PROJECT_SOURCE_DIR}/LICENSE --extension '.py' + --license ${PROJECT_SOURCE_DIR}/LICENSE.md --extension '.py' COMMAND ${PROJECT_SOURCE_DIR}/utils/update_license.py --source ${PROJECT_SOURCE_DIR} - --license ${PROJECT_SOURCE_DIR}/LICENSE --file + --license ${PROJECT_SOURCE_DIR}/LICENSE.md --file "src/${PACKAGE_NAME},cmake/Dockerfile,cmake/rocm_install.sh,docker/docker-entrypoint.sh,src/rocprof_compute_analyze/convertor/mongodb/convert" ) @@ -524,7 +524,7 @@ add_custom_target( COMMAND mv rocprof-compute.bin ${CMAKE_BINARY_DIR}) install( - FILES ${PROJECT_SOURCE_DIR}/LICENSE + FILES ${PROJECT_SOURCE_DIR}/LICENSE.md DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT main) diff --git a/projects/rocprofiler-compute/README.md b/projects/rocprofiler-compute/README.md index e58b3fca97..2ae20b7675 100644 --- a/projects/rocprofiler-compute/README.md +++ b/projects/rocprofiler-compute/README.md @@ -16,7 +16,7 @@ feedback from the community. Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file for additional details on our contribution process. -* Licensing information can be found in the [LICENSE](LICENSE) file. +* Licensing information can be found in the [LICENSE](LICENSE.md) file. ## Development diff --git a/projects/rocprofiler-compute/docs/license.rst b/projects/rocprofiler-compute/docs/license.rst index b64c897290..5d07d8abef 100644 --- a/projects/rocprofiler-compute/docs/license.rst +++ b/projects/rocprofiler-compute/docs/license.rst @@ -7,4 +7,4 @@ License ******* -.. include:: ../LICENSE +.. include:: ../LICENSE.md diff --git a/projects/rocprofiler-register/cmake/rocprofiler_register_config_install.cmake b/projects/rocprofiler-register/cmake/rocprofiler_register_config_install.cmake index 1a5e69156a..e6e9d12a82 100644 --- a/projects/rocprofiler-register/cmake/rocprofiler_register_config_install.cmake +++ b/projects/rocprofiler-register/cmake/rocprofiler_register_config_install.cmake @@ -4,7 +4,7 @@ include_guard(GLOBAL) include(CMakePackageConfigHelpers) install( - FILES ${PROJECT_SOURCE_DIR}/LICENSE + FILES ${PROJECT_SOURCE_DIR}/LICENSE.md DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT core) diff --git a/projects/rocprofiler-systems/.azuredevops/rocm-ci.yml b/projects/rocprofiler-systems/.azuredevops/rocm-ci.yml index 046cd556f4..fadc69c4aa 100644 --- a/projects/rocprofiler-systems/.azuredevops/rocm-ci.yml +++ b/projects/rocprofiler-systems/.azuredevops/rocm-ci.yml @@ -21,7 +21,6 @@ trigger: - docs - '.*.y*ml' - '*.md' - - LICENSE - VERSION - .wordlist.txt @@ -37,7 +36,6 @@ pr: - docs - '.*.y*ml' - '*.md' - - LICENSE - VERSION - .wordlist.txt drafts: false diff --git a/projects/rocprofiler-systems/CMakeLists.txt b/projects/rocprofiler-systems/CMakeLists.txt index c4e1d80486..07e99458ea 100644 --- a/projects/rocprofiler-systems/CMakeLists.txt +++ b/projects/rocprofiler-systems/CMakeLists.txt @@ -385,8 +385,8 @@ endif() # ------------------------------------------------------------------------------# configure_file( - ${PROJECT_SOURCE_DIR}/LICENSE - ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/LICENSE + ${PROJECT_SOURCE_DIR}/LICENSE.md + ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/LICENSE.md COPYONLY ) @@ -430,7 +430,8 @@ install( ) install( - FILES ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/LICENSE + FILES + ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/LICENSE.md DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME} COMPONENT setup ) diff --git a/projects/rocprofiler-systems/CONTRIBUTING.md b/projects/rocprofiler-systems/CONTRIBUTING.md index d295ca9cf6..a228db04a8 100644 --- a/projects/rocprofiler-systems/CONTRIBUTING.md +++ b/projects/rocprofiler-systems/CONTRIBUTING.md @@ -99,7 +99,7 @@ Please see the [pre-commit documentation](https://pre-commit.com/#quick-start) f ## Code License ## -All code contributed to this project will be licensed under the license identified in the [License](LICENSE). Your contribution will be accepted under the same license. +All code contributed to this project will be licensed under the license identified in the [License](LICENSE.md). Your contribution will be accepted under the same license. ## References ## diff --git a/projects/rocprofiler-systems/docs/license.rst b/projects/rocprofiler-systems/docs/license.rst index a65784da98..b2a658dca0 100644 --- a/projects/rocprofiler-systems/docs/license.rst +++ b/projects/rocprofiler-systems/docs/license.rst @@ -5,4 +5,4 @@ License ******* -.. include:: ../LICENSE +.. include:: ../LICENSE.md diff --git a/projects/rocprofiler-systems/scripts/check-copyright.sh b/projects/rocprofiler-systems/scripts/check-copyright.sh index f4b547424c..a614966a36 100755 --- a/projects/rocprofiler-systems/scripts/check-copyright.sh +++ b/projects/rocprofiler-systems/scripts/check-copyright.sh @@ -63,7 +63,7 @@ if [ ${#files_with_missing_copyright[@]} -ne 0 ]; then else copyright_notice+="$comS"$'\n' fi - done < LICENSE + done < LICENSE.md # Add the notice to the beginning of the file temp_file=$(mktemp)