diff options
author | Alexander Kanavin <alex@linutronix.de> | 2025-01-08 09:42:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-10 11:26:29 +0000 |
commit | 46e1195b6af942a569255c94c8e16084962dae34 (patch) | |
tree | 108648c037e74d62d58a5957d5bf6d3c23be451b | |
parent | d26c72b7dccaf4802914dafcc95911f4d166086d (diff) | |
download | poky-46e1195b6af942a569255c94c8e16084962dae34.tar.gz |
libgit2: update 1.8.4 -> 1.9.0
Make the cmake files reproducible and rather than hardcode-installed into /usr/lib.
[RP: Tweak commit message]
(From OE-Core rev: 5d16b99ad74fe4acadfb1752b975e6eebacf9d1c)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/libgit2/libgit2/0001-src-libgit2-CMakeLists.txt-install-cmake-files-into-.patch | 32 | ||||
-rw-r--r-- | meta/recipes-support/libgit2/libgit2_1.9.0.bb (renamed from meta/recipes-support/libgit2/libgit2_1.8.4.bb) | 10 |
2 files changed, 40 insertions, 2 deletions
diff --git a/meta/recipes-support/libgit2/libgit2/0001-src-libgit2-CMakeLists.txt-install-cmake-files-into-.patch b/meta/recipes-support/libgit2/libgit2/0001-src-libgit2-CMakeLists.txt-install-cmake-files-into-.patch new file mode 100644 index 0000000000..ae48524e0d --- /dev/null +++ b/meta/recipes-support/libgit2/libgit2/0001-src-libgit2-CMakeLists.txt-install-cmake-files-into-.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 8ca35649c33d0d2fcdcd573ce6a9edd91c77e4da Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Tue, 7 Jan 2025 18:56:19 +0100 | ||
4 | Subject: [PATCH] src/libgit2/CMakeLists.txt: install cmake files into | ||
5 | configured libdir | ||
6 | |||
7 | libdir can be something else than /usr/lib, e.g. /usr/lib64 or similar. | ||
8 | |||
9 | Upstream-Status: Submitted [https://github.com/libgit2/libgit2/pull/7004] | ||
10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
11 | --- | ||
12 | src/libgit2/CMakeLists.txt | 4 ++-- | ||
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/src/libgit2/CMakeLists.txt b/src/libgit2/CMakeLists.txt | ||
16 | index a7d3c7ca4..16b3a23d9 100644 | ||
17 | --- a/src/libgit2/CMakeLists.txt | ||
18 | +++ b/src/libgit2/CMakeLists.txt | ||
19 | @@ -119,11 +119,11 @@ configure_file(config.cmake.in | ||
20 | install(FILES | ||
21 | "${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}Config.cmake" | ||
22 | "${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}ConfigVersion.cmake" | ||
23 | - DESTINATION "lib/cmake/${PROJECT_NAME}") | ||
24 | + DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") | ||
25 | install( | ||
26 | EXPORT ${LIBGIT2_TARGETS_EXPORT_NAME} | ||
27 | NAMESPACE "${PROJECT_NAME}::" | ||
28 | - DESTINATION "lib/cmake/${PROJECT_NAME}") | ||
29 | + DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") | ||
30 | |||
31 | # Install | ||
32 | |||
diff --git a/meta/recipes-support/libgit2/libgit2_1.8.4.bb b/meta/recipes-support/libgit2/libgit2_1.9.0.bb index 63986fcd13..47a63ca286 100644 --- a/meta/recipes-support/libgit2/libgit2_1.8.4.bb +++ b/meta/recipes-support/libgit2/libgit2_1.9.0.bb | |||
@@ -5,8 +5,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8eacfdc17c8f4d219e131a073973b97d" | |||
5 | 5 | ||
6 | DEPENDS = "curl openssl zlib libssh2 libgcrypt libpcre2" | 6 | DEPENDS = "curl openssl zlib libssh2 libgcrypt libpcre2" |
7 | 7 | ||
8 | SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v1.8;protocol=https" | 8 | SRC_URI = "git://github.com/libgit2/libgit2.git;branch=main;protocol=https \ |
9 | SRCREV = "3f4182d15eab74a302718f2de454ffadb1995626" | 9 | file://0001-src-libgit2-CMakeLists.txt-install-cmake-files-into-.patch \ |
10 | " | ||
11 | SRCREV = "338e6fb681369ff0537719095e22ce9dc602dbf0" | ||
10 | 12 | ||
11 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
12 | 14 | ||
@@ -19,3 +21,7 @@ EXTRA_OECMAKE = "\ | |||
19 | " | 21 | " |
20 | 22 | ||
21 | BBCLASSEXTEND = "native" | 23 | BBCLASSEXTEND = "native" |
24 | |||
25 | do_install:append() { | ||
26 | sed -i -e 's,${RECIPE_SYSROOT},,g' ${D}${libdir}/cmake/libgit2/libgit2Targets.cmake | ||
27 | } | ||