summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2025-04-28 13:53:05 +0800
committerSteve Sakoman <steve@sakoman.com>2025-05-02 08:20:12 -0700
commit2e0b9e9a86f6bd2ba13082e31d7c097b254f30a4 (patch)
treea7fda622eeddd5e43d7cdf72e6046a7463e3ebef /meta/recipes-devtools
parentf587cfcb8aac3c53f1c029e7809bfcc8f30a4f05 (diff)
downloadpoky-2e0b9e9a86f6bd2ba13082e31d7c097b254f30a4.tar.gz
buildtools-tarball: move setting of envvars to respective envfile
* make git,curl,python3-requests align with openssl, move the setting of envvars into respective envfile * for environment.d-openssl.sh, also check if ca-certificates.crt exist before export envvars (From OE-Core rev: 5f4fd544d3df7365224599c9efdce4e545f51d5e) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/git/git/environment.d-git.sh3
-rw-r--r--meta/recipes-devtools/git/git_2.44.3.bb8
-rw-r--r--meta/recipes-devtools/python/python3-requests/environment.d-python3-requests.sh3
-rw-r--r--meta/recipes-devtools/python/python3-requests_2.32.3.bb11
4 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-devtools/git/git/environment.d-git.sh b/meta/recipes-devtools/git/git/environment.d-git.sh
new file mode 100644
index 0000000000..18104f0528
--- /dev/null
+++ b/meta/recipes-devtools/git/git/environment.d-git.sh
@@ -0,0 +1,3 @@
1if [ -e "${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" ];then
2 export GIT_SSL_CAINFO="${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt"
3fi
diff --git a/meta/recipes-devtools/git/git_2.44.3.bb b/meta/recipes-devtools/git/git_2.44.3.bb
index a5afd36168..7b33d6071e 100644
--- a/meta/recipes-devtools/git/git_2.44.3.bb
+++ b/meta/recipes-devtools/git/git_2.44.3.bb
@@ -13,6 +13,10 @@ SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \
13 file://0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch \ 13 file://0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch \
14 " 14 "
15 15
16SRC_URI:append:class-nativesdk = " \
17 file://environment.d-git.sh \
18 "
19
16S = "${WORKDIR}/git-${PV}" 20S = "${WORKDIR}/git-${PV}"
17 21
18LIC_FILES_CHKSUM = "\ 22LIC_FILES_CHKSUM = "\
@@ -115,6 +119,9 @@ do_install:append:class-nativesdk() {
115 GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ 119 GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \
116 GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} 120 GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR}
117 perl_native_fixup 121 perl_native_fixup
122
123 mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d
124 install -m 644 ${WORKDIR}/environment.d-git.sh ${D}${SDKPATHNATIVE}/environment-setup.d/git.sh
118} 125}
119 126
120FILES:${PN} += "${datadir}/git-core ${libexecdir}/git-core/" 127FILES:${PN} += "${datadir}/git-core ${libexecdir}/git-core/"
@@ -155,6 +162,7 @@ FILES:${PN}-tk = " \
155 162
156PACKAGES =+ "gitweb" 163PACKAGES =+ "gitweb"
157FILES:gitweb = "${datadir}/gitweb/" 164FILES:gitweb = "${datadir}/gitweb/"
165FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/git.sh"
158RDEPENDS:gitweb = "perl" 166RDEPENDS:gitweb = "perl"
159 167
160BBCLASSEXTEND = "native nativesdk" 168BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-devtools/python/python3-requests/environment.d-python3-requests.sh b/meta/recipes-devtools/python/python3-requests/environment.d-python3-requests.sh
new file mode 100644
index 0000000000..f2eee203ca
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-requests/environment.d-python3-requests.sh
@@ -0,0 +1,3 @@
1if [ -e "${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" ];then
2 export REQUESTS_CA_BUNDLE="${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt"
3fi
diff --git a/meta/recipes-devtools/python/python3-requests_2.32.3.bb b/meta/recipes-devtools/python/python3-requests_2.32.3.bb
index 4f0638b50c..36ff75f87d 100644
--- a/meta/recipes-devtools/python/python3-requests_2.32.3.bb
+++ b/meta/recipes-devtools/python/python3-requests_2.32.3.bb
@@ -3,10 +3,19 @@ HOMEPAGE = "https://requests.readthedocs.io"
3LICENSE = "Apache-2.0" 3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658"
5 5
6SRC_URI:append:class-nativesdk = " \
7 file://environment.d-python3-requests.sh \
8"
9
6SRC_URI[sha256sum] = "55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760" 10SRC_URI[sha256sum] = "55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"
7 11
8inherit pypi python_setuptools_build_meta 12inherit pypi python_setuptools_build_meta
9 13
14do_install:append:class-nativesdk() {
15 mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d
16 install -m 644 ${WORKDIR}/environment.d-python3-requests.sh ${D}${SDKPATHNATIVE}/environment-setup.d/python3-requests.sh
17}
18
10RDEPENDS:${PN} += " \ 19RDEPENDS:${PN} += " \
11 python3-certifi \ 20 python3-certifi \
12 python3-email \ 21 python3-email \
@@ -19,6 +28,8 @@ RDEPENDS:${PN} += " \
19 python3-compression \ 28 python3-compression \
20" 29"
21 30
31FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/python3-requests.sh"
32
22CVE_PRODUCT = "requests" 33CVE_PRODUCT = "requests"
23 34
24BBCLASSEXTEND = "native nativesdk" 35BBCLASSEXTEND = "native nativesdk"