summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/git
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/git')
-rw-r--r--meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch9
-rw-r--r--meta/recipes-devtools/git/git/environment.d-git.sh19
-rw-r--r--meta/recipes-devtools/git/git/fixsort.patch24
-rw-r--r--meta/recipes-devtools/git/git_2.49.0.bb (renamed from meta/recipes-devtools/git/git_2.45.2.bb)16
4 files changed, 49 insertions, 19 deletions
diff --git a/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch b/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch
index fc803c73c7..61bf0e12dc 100644
--- a/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch
+++ b/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch
@@ -1,4 +1,4 @@
1From c0c5241abdc113acbe6bcd960686cea414bce357 Mon Sep 17 00:00:00 2001 1From 325c30dac4eafdd463c8ffcfe1215858d642ab91 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de> 2From: Alexander Kanavin <alex@linutronix.de>
3Date: Mon, 7 Feb 2022 10:13:15 +0100 3Date: Mon, 7 Feb 2022 10:13:15 +0100
4Subject: [PATCH] config.mak.uname: do not force RHEL-7 specific build settings 4Subject: [PATCH] config.mak.uname: do not force RHEL-7 specific build settings
@@ -12,16 +12,15 @@ Signed-off-by: Alexander Kanavin <alex@linutronix.de>
12Rebased for 2.45.1. 12Rebased for 2.45.1.
13 13
14Signed-off-by: Robert Yang <liezhi.yang@windriver.com> 14Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
15
16--- 15---
17 config.mak.uname | 4 ---- 16 config.mak.uname | 4 ----
18 1 file changed, 4 deletions(-) 17 1 file changed, 4 deletions(-)
19 18
20diff --git a/config.mak.uname b/config.mak.uname 19diff --git a/config.mak.uname b/config.mak.uname
21index a7607a5..251057e 100644 20index b12d4e1..b5b8d82 100644
22--- a/config.mak.uname 21--- a/config.mak.uname
23+++ b/config.mak.uname 22+++ b/config.mak.uname
24@@ -64,10 +64,6 @@ ifeq ($(uname_S),Linux) 23@@ -63,10 +63,6 @@ ifeq ($(uname_S),Linux)
25 PROCFS_EXECUTABLE_PATH = /proc/self/exe 24 PROCFS_EXECUTABLE_PATH = /proc/self/exe
26 HAVE_PLATFORM_PROCINFO = YesPlease 25 HAVE_PLATFORM_PROCINFO = YesPlease
27 COMPAT_OBJS += compat/linux/procinfo.o 26 COMPAT_OBJS += compat/linux/procinfo.o
@@ -29,6 +28,6 @@ index a7607a5..251057e 100644
29- ifneq ($(findstring .el7.,$(uname_R)),) 28- ifneq ($(findstring .el7.,$(uname_R)),)
30- BASIC_CFLAGS += -std=c99 29- BASIC_CFLAGS += -std=c99
31- endif 30- endif
31 LINK_FUZZ_PROGRAMS = YesPlease
32 endif 32 endif
33 ifeq ($(uname_S),GNU/kFreeBSD) 33 ifeq ($(uname_S),GNU/kFreeBSD)
34 HAVE_ALLOCA_H = YesPlease
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..9c7b5a9251
--- /dev/null
+++ b/meta/recipes-devtools/git/git/environment.d-git.sh
@@ -0,0 +1,19 @@
1# Respect host env GIT_SSL_CAINFO/GIT_SSL_CAPATH first, then auto-detected host cert, then cert in buildtools
2# CAFILE/CAPATH is auto-deteced when source buildtools
3if [ -z "$GIT_SSL_CAINFO" ]; then
4 if [ -n "$CAFILE" ];then
5 export GIT_SSL_CAINFO="$CAFILE"
6 elif [ -e "${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" ];then
7 export GIT_SSL_CAINFO="${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt"
8 fi
9fi
10
11if [ -z "$GIT_SSL_CAPATH" ]; then
12 if [ -n "$CAPATH" ];then
13 export GIT_SSL_CAPATH="$CAPATH"
14 elif [ -e "${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" ];then
15 export GIT_SSL_CAPATH="${OECORE_NATIVE_SYSROOT}/etc/ssl/certs"
16 fi
17fi
18
19export BB_ENV_PASSTHROUGH_ADDITIONS="${BB_ENV_PASSTHROUGH_ADDITIONS:-} GIT_SSL_CAINFO GIT_SSL_CAPATH"
diff --git a/meta/recipes-devtools/git/git/fixsort.patch b/meta/recipes-devtools/git/git/fixsort.patch
index 07a487e8ca..e077eba8ff 100644
--- a/meta/recipes-devtools/git/git/fixsort.patch
+++ b/meta/recipes-devtools/git/git/fixsort.patch
@@ -1,13 +1,16 @@
1[PATCH] generate-configlist.sh: Fix determinism issue 1From 65fa5c0f849fe4a1e3cb8e6af0086ef0748c28de Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Wed, 17 Feb 2021 17:57:13 +0000
4Subject: [PATCH] generate-configlist.sh: Fix determinism issue
2 5
3Currently git binaries are not entirely reproducible, at least partly 6Currently git binaries are not entirely reproducible, at least partly
4due to config-list.h differing in order depending on the system's 7due to config-list.h differing in order depending on the system's
5locale settings. Under different locales, the entries: 8locale settings. Under different locales, the entries:
6 9
7"sendemail.identity", 10"sendemail.identity",
8"sendemail.<identity>.*", 11"sendemail.<identity>.*",
9 12
10would differ in order for example and this leads to differences in 13would differ in order for example and this leads to differences in
11the debug symbols for the binaries. 14the debug symbols for the binaries.
12 15
13This can be fixed by specifying the C locale for the sort in the 16This can be fixed by specifying the C locale for the sort in the
@@ -15,14 +18,17 @@ shell script generating the header.
15 18
16Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> 19Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17Upstream-Status: Submitted [https://public-inbox.org/git/f029a942dd3d50d85e60bd37d8e454524987842f.camel@linuxfoundation.org/T/#u] 20Upstream-Status: Submitted [https://public-inbox.org/git/f029a942dd3d50d85e60bd37d8e454524987842f.camel@linuxfoundation.org/T/#u]
21---
22 generate-configlist.sh | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
18 24
19Index: git-2.30.0/generate-configlist.sh 25diff --git a/generate-configlist.sh b/generate-configlist.sh
20=================================================================== 26index dffdaad..cc35a21 100755
21--- git-2.30.0.orig/generate-configlist.sh 27--- a/generate-configlist.sh
22+++ git-2.30.0/generate-configlist.sh 28+++ b/generate-configlist.sh
23@@ -9,7 +9,7 @@ static const char *config_name_list[] = 29@@ -15,7 +15,7 @@ static const char *config_name_list[] = {
24 EOF 30 EOF
25 grep -h '^[a-zA-Z].*\..*::$' Documentation/*config.txt Documentation/config/*.txt | 31 grep -h '^[a-zA-Z].*\..*::$' "$SOURCE_DIR"/Documentation/*config.adoc "$SOURCE_DIR"/Documentation/config/*.adoc |
26 sed '/deprecated/d; s/::$//; s/, */\n/g' | 32 sed '/deprecated/d; s/::$//; s/, */\n/g' |
27- sort | 33- sort |
28+ LC_ALL=C sort | 34+ LC_ALL=C sort |
diff --git a/meta/recipes-devtools/git/git_2.45.2.bb b/meta/recipes-devtools/git/git_2.49.0.bb
index 6393c976e6..e1b501d62b 100644
--- a/meta/recipes-devtools/git/git_2.45.2.bb
+++ b/meta/recipes-devtools/git/git_2.49.0.bb
@@ -4,7 +4,6 @@ DESCRIPTION = "Git is a free and open source distributed version control system
4SECTION = "console/utils" 4SECTION = "console/utils"
5LICENSE = "GPL-2.0-only & GPL-2.0-or-later & BSD-3-Clause & MIT & BSL-1.0 & LGPL-2.1-or-later" 5LICENSE = "GPL-2.0-only & GPL-2.0-or-later & BSD-3-Clause & MIT & BSL-1.0 & LGPL-2.1-or-later"
6DEPENDS = "openssl zlib" 6DEPENDS = "openssl zlib"
7DEPENDS:class-native += "ca-certificates"
8 7
9PROVIDES:append:class-native = " git-replacement-native" 8PROVIDES:append:class-native = " git-replacement-native"
10 9
@@ -13,7 +12,11 @@ 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 \ 12 file://0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch \
14 " 13 "
15 14
16S = "${WORKDIR}/git-${PV}" 15SRC_URI:append:class-nativesdk = " \
16 file://environment.d-git.sh \
17 "
18
19S = "${UNPACKDIR}/git-${PV}"
17 20
18LIC_FILES_CHKSUM = "\ 21LIC_FILES_CHKSUM = "\
19 file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1 \ 22 file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1 \
@@ -97,7 +100,6 @@ perl_native_fixup () {
97 100
98REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core" 101REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core"
99REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates" 102REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates"
100REL_GIT_SSL_CAINFO = "${@os.path.relpath(sysconfdir, bindir)}/ssl/certs/ca-certificates.crt"
101 103
102do_install:append:class-target () { 104do_install:append:class-target () {
103 perl_native_fixup 105 perl_native_fixup
@@ -106,7 +108,6 @@ do_install:append:class-target () {
106do_install:append:class-native() { 108do_install:append:class-native() {
107 create_wrapper ${D}${bindir}/git \ 109 create_wrapper ${D}${bindir}/git \
108 GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ 110 GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \
109 GIT_SSL_CAINFO='`dirname $''realpath`'/${REL_GIT_SSL_CAINFO} \
110 GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} 111 GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR}
111} 112}
112 113
@@ -115,6 +116,9 @@ do_install:append:class-nativesdk() {
115 GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ 116 GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \
116 GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} 117 GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR}
117 perl_native_fixup 118 perl_native_fixup
119
120 mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d
121 install -m 644 ${UNPACKDIR}/environment.d-git.sh ${D}${SDKPATHNATIVE}/environment-setup.d/git.sh
118} 122}
119 123
120FILES:${PN} += "${datadir}/git-core ${libexecdir}/git-core/" 124FILES:${PN} += "${datadir}/git-core ${libexecdir}/git-core/"
@@ -155,6 +159,8 @@ FILES:${PN}-tk = " \
155 159
156PACKAGES =+ "gitweb" 160PACKAGES =+ "gitweb"
157FILES:gitweb = "${datadir}/gitweb/" 161FILES:gitweb = "${datadir}/gitweb/"
162
163FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/git.sh"
158RDEPENDS:gitweb = "perl" 164RDEPENDS:gitweb = "perl"
159 165
160BBCLASSEXTEND = "native nativesdk" 166BBCLASSEXTEND = "native nativesdk"
@@ -164,4 +170,4 @@ EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \
164 " 170 "
165EXTRA_OEMAKE += "NO_GETTEXT=1" 171EXTRA_OEMAKE += "NO_GETTEXT=1"
166 172
167SRC_URI[tarball.sha256sum] = "98b26090ed667099a3691b93698d1e213e1ded73d36a2fde7e9125fce28ba234" 173SRC_URI[tarball.sha256sum] = "f8047f572f665bebeb637fd5f14678f31b3ca5d2ff9a18f20bd925bd48f75d3c"