diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-10-18 07:04:23 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-10-18 07:04:23 +0000 |
| commit | ba4c1875f8c9ddf19f301d06ec0b76f59ea23a2a (patch) | |
| tree | bc819537e71e2911443c8f83ef54825b91701fa5 /dev-lang/jerryscript | |
| parent | 6d5d9f9dd5fb1dec0c667d6f2287019e89b81dd1 (diff) | |
| download | baldeagleos-repo-ba4c1875f8c9ddf19f301d06ec0b76f59ea23a2a.tar.gz baldeagleos-repo-ba4c1875f8c9ddf19f301d06ec0b76f59ea23a2a.tar.xz baldeagleos-repo-ba4c1875f8c9ddf19f301d06ec0b76f59ea23a2a.zip | |
Adding metadata
Diffstat (limited to 'dev-lang/jerryscript')
| -rw-r--r-- | dev-lang/jerryscript/files/jerryscript-3.0.0-cmake.patch | 57 | ||||
| -rw-r--r-- | dev-lang/jerryscript/jerryscript-3.0.0.ebuild | 1 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-lang/jerryscript/files/jerryscript-3.0.0-cmake.patch b/dev-lang/jerryscript/files/jerryscript-3.0.0-cmake.patch new file mode 100644 index 000000000000..d61ab0c94dd8 --- /dev/null +++ b/dev-lang/jerryscript/files/jerryscript-3.0.0-cmake.patch @@ -0,0 +1,57 @@ +https://github.com/jerryscript-project/jerryscript/pull/5262 + +From f4fe9ba21590e5ef2eebb51c0713883708c0a7aa Mon Sep 17 00:00:00 2001 +From: Zac Medico <zmedico@gmail.com> +Date: Fri, 17 Oct 2025 20:17:26 -0700 +Subject: [PATCH] chore: allow CMake though to 3.10 + +This is allows the build with cmake-4.0.0 without deprecation warnings. + +use min...max syntax to allow build with newer cmake. +ref: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html + +Fixes: +CMake Error at CMakeLists.txt:1 (cmake_minimum_required): + Compatibility with CMake < 3.5 has been removed from CMake. + + Update the VERSION argument <min> value. Or, use the <min>...<max> syntax + to tell CMake that the project requires at least <min> but has been updated + to work with policies introduced by <max> or earlier. + + Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. + +JerryScript-DCO-1.0-Signed-off-by: Zac Medico <zmedico@gmail.com> +--- + targets/baremetal-sdk/espressif/CMakeLists.txt | 2 +- + targets/baremetal-sdk/espressif/main/CMakeLists.txt | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/targets/baremetal-sdk/espressif/CMakeLists.txt b/targets/baremetal-sdk/espressif/CMakeLists.txt +index 826baf76..17ee60bd 100644 +--- a/targets/baremetal-sdk/espressif/CMakeLists.txt ++++ b/targets/baremetal-sdk/espressif/CMakeLists.txt +@@ -12,7 +12,7 @@ + # See the License for the specific language governing permissions and + # limitations under the License. + +-cmake_minimum_required(VERSION 3.5) ++cmake_minimum_required(VERSION 3.5...3.10) + + set(SDKCONFIG ${CMAKE_BINARY_DIR}/sdkconfig) + # Workaround to generate sdkconfig into the build directory. +diff --git a/targets/baremetal-sdk/espressif/main/CMakeLists.txt b/targets/baremetal-sdk/espressif/main/CMakeLists.txt +index 78fa2b84..3657a25a 100644 +--- a/targets/baremetal-sdk/espressif/main/CMakeLists.txt ++++ b/targets/baremetal-sdk/espressif/main/CMakeLists.txt +@@ -11,7 +11,7 @@ + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. +-cmake_minimum_required(VERSION 3.5) ++cmake_minimum_required(VERSION 3.5...3.10) + + # Set JerryScript variables + set(JERRY_ROOT_DIR ${PROJECT_DIR}/../../..) +-- +2.49.0 + diff --git a/dev-lang/jerryscript/jerryscript-3.0.0.ebuild b/dev-lang/jerryscript/jerryscript-3.0.0.ebuild index 4c5dcc6bea28..c07879e90ca4 100644 --- a/dev-lang/jerryscript/jerryscript-3.0.0.ebuild +++ b/dev-lang/jerryscript/jerryscript-3.0.0.ebuild @@ -21,6 +21,7 @@ RESTRICT="test" PATCHES=( "${FILESDIR}/jerryscript-3.0.0-no-werror.patch" + "${FILESDIR}/jerryscript-3.0.0-cmake.patch" ) src_prepare() { |
