diff options
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-.patch | 15 | ||||
-rw-r--r-- | meta/recipes-devtools/git/git/environment.d-git.sh | 19 | ||||
-rw-r--r-- | meta/recipes-devtools/git/git/fixsort.patch | 24 | ||||
-rw-r--r-- | meta/recipes-devtools/git/git_2.49.0.bb (renamed from meta/recipes-devtools/git/git_2.44.0.bb) | 17 |
4 files changed, 55 insertions, 20 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 d80d082ba3..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 @@ | |||
1 | From c0c5241abdc113acbe6bcd960686cea414bce357 Mon Sep 17 00:00:00 2001 | 1 | From 325c30dac4eafdd463c8ffcfe1215858d642ab91 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex@linutronix.de> | 2 | From: Alexander Kanavin <alex@linutronix.de> |
3 | Date: Mon, 7 Feb 2022 10:13:15 +0100 | 3 | Date: Mon, 7 Feb 2022 10:13:15 +0100 |
4 | Subject: [PATCH] config.mak.uname: do not force RHEL-7 specific build settings | 4 | Subject: [PATCH] config.mak.uname: do not force RHEL-7 specific build settings |
@@ -9,22 +9,25 @@ different flags than git builds on other host distros. | |||
9 | Upstream-Status: Inappropriate [upstream needs to check compiler and component versions properly] | 9 | Upstream-Status: Inappropriate [upstream needs to check compiler and component versions properly] |
10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | 10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
11 | 11 | ||
12 | Rebased for 2.45.1. | ||
13 | |||
14 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
12 | --- | 15 | --- |
13 | config.mak.uname | 4 ---- | 16 | config.mak.uname | 4 ---- |
14 | 1 file changed, 4 deletions(-) | 17 | 1 file changed, 4 deletions(-) |
15 | 18 | ||
16 | diff --git a/config.mak.uname b/config.mak.uname | 19 | diff --git a/config.mak.uname b/config.mak.uname |
17 | index 259d151..136ae3b 100644 | 20 | index b12d4e1..b5b8d82 100644 |
18 | --- a/config.mak.uname | 21 | --- a/config.mak.uname |
19 | +++ b/config.mak.uname | 22 | +++ b/config.mak.uname |
20 | @@ -64,10 +64,6 @@ ifeq ($(uname_S),Linux) | 23 | @@ -63,10 +63,6 @@ ifeq ($(uname_S),Linux) |
21 | PROCFS_EXECUTABLE_PATH = /proc/self/exe | 24 | PROCFS_EXECUTABLE_PATH = /proc/self/exe |
22 | HAVE_PLATFORM_PROCINFO = YesPlease | 25 | HAVE_PLATFORM_PROCINFO = YesPlease |
23 | COMPAT_OBJS += compat/linux/procinfo.o | 26 | COMPAT_OBJS += compat/linux/procinfo.o |
24 | - # centos7/rhel7 provides gcc 4.8.5 and zlib 1.2.7. | 27 | - # centos7/rhel7 provides gcc 4.8.5 and zlib 1.2.7. |
25 | - ifneq ($(findstring .el7.,$(uname_R)),) | 28 | - ifneq ($(findstring .el7.,$(uname_R)),) |
26 | - BASIC_CFLAGS += -std=c99 | 29 | - BASIC_CFLAGS += -std=c99 |
27 | - endif | 30 | - endif |
31 | LINK_FUZZ_PROGRAMS = YesPlease | ||
28 | endif | 32 | endif |
29 | ifeq ($(uname_S),GNU/kFreeBSD) | 33 | ifeq ($(uname_S),GNU/kFreeBSD) |
30 | 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 | ||
3 | if [ -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 | ||
9 | fi | ||
10 | |||
11 | if [ -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 | ||
17 | fi | ||
18 | |||
19 | export 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 | 1 | From 65fa5c0f849fe4a1e3cb8e6af0086ef0748c28de Mon Sep 17 00:00:00 2001 |
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Wed, 17 Feb 2021 17:57:13 +0000 | ||
4 | Subject: [PATCH] generate-configlist.sh: Fix determinism issue | ||
2 | 5 | ||
3 | Currently git binaries are not entirely reproducible, at least partly | 6 | Currently git binaries are not entirely reproducible, at least partly |
4 | due to config-list.h differing in order depending on the system's | 7 | due to config-list.h differing in order depending on the system's |
5 | locale settings. Under different locales, the entries: | 8 | locale settings. Under different locales, the entries: |
6 | 9 | ||
7 | "sendemail.identity", | 10 | "sendemail.identity", |
8 | "sendemail.<identity>.*", | 11 | "sendemail.<identity>.*", |
9 | 12 | ||
10 | would differ in order for example and this leads to differences in | 13 | would differ in order for example and this leads to differences in |
11 | the debug symbols for the binaries. | 14 | the debug symbols for the binaries. |
12 | 15 | ||
13 | This can be fixed by specifying the C locale for the sort in the | 16 | This can be fixed by specifying the C locale for the sort in the |
@@ -15,14 +18,17 @@ shell script generating the header. | |||
15 | 18 | ||
16 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | 19 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
17 | Upstream-Status: Submitted [https://public-inbox.org/git/f029a942dd3d50d85e60bd37d8e454524987842f.camel@linuxfoundation.org/T/#u] | 20 | Upstream-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 | ||
19 | Index: git-2.30.0/generate-configlist.sh | 25 | diff --git a/generate-configlist.sh b/generate-configlist.sh |
20 | =================================================================== | 26 | index 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.44.0.bb b/meta/recipes-devtools/git/git_2.49.0.bb index 90e555eba7..e1b501d62b 100644 --- a/meta/recipes-devtools/git/git_2.44.0.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 | |||
4 | SECTION = "console/utils" | 4 | SECTION = "console/utils" |
5 | LICENSE = "GPL-2.0-only & GPL-2.0-or-later & BSD-3-Clause & MIT & BSL-1.0 & LGPL-2.1-or-later" | 5 | LICENSE = "GPL-2.0-only & GPL-2.0-or-later & BSD-3-Clause & MIT & BSL-1.0 & LGPL-2.1-or-later" |
6 | DEPENDS = "openssl zlib" | 6 | DEPENDS = "openssl zlib" |
7 | DEPENDS:class-native += "ca-certificates" | ||
8 | 7 | ||
9 | PROVIDES:append:class-native = " git-replacement-native" | 8 | PROVIDES: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 | ||
16 | S = "${WORKDIR}/git-${PV}" | 15 | SRC_URI:append:class-nativesdk = " \ |
16 | file://environment.d-git.sh \ | ||
17 | " | ||
18 | |||
19 | S = "${UNPACKDIR}/git-${PV}" | ||
17 | 20 | ||
18 | LIC_FILES_CHKSUM = "\ | 21 | LIC_FILES_CHKSUM = "\ |
19 | file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1 \ | 22 | file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1 \ |
@@ -40,6 +43,7 @@ EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ | |||
40 | --without-iconv \ | 43 | --without-iconv \ |
41 | " | 44 | " |
42 | EXTRA_OECONF:append:class-nativesdk = " --with-gitconfig=/etc/gitconfig " | 45 | EXTRA_OECONF:append:class-nativesdk = " --with-gitconfig=/etc/gitconfig " |
46 | EXTRA_OECONF:append:class-native = " --with-gitconfig=/etc/gitconfig " | ||
43 | 47 | ||
44 | # Needs brokensep as this doesn't use automake | 48 | # Needs brokensep as this doesn't use automake |
45 | inherit autotools-brokensep perlnative bash-completion manpages | 49 | inherit autotools-brokensep perlnative bash-completion manpages |
@@ -96,7 +100,6 @@ perl_native_fixup () { | |||
96 | 100 | ||
97 | REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core" | 101 | REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core" |
98 | REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates" | 102 | REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates" |
99 | REL_GIT_SSL_CAINFO = "${@os.path.relpath(sysconfdir, bindir)}/ssl/certs/ca-certificates.crt" | ||
100 | 103 | ||
101 | do_install:append:class-target () { | 104 | do_install:append:class-target () { |
102 | perl_native_fixup | 105 | perl_native_fixup |
@@ -105,7 +108,6 @@ do_install:append:class-target () { | |||
105 | do_install:append:class-native() { | 108 | do_install:append:class-native() { |
106 | create_wrapper ${D}${bindir}/git \ | 109 | create_wrapper ${D}${bindir}/git \ |
107 | GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ | 110 | GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ |
108 | GIT_SSL_CAINFO='`dirname $''realpath`'/${REL_GIT_SSL_CAINFO} \ | ||
109 | GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} | 111 | GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} |
110 | } | 112 | } |
111 | 113 | ||
@@ -114,6 +116,9 @@ do_install:append:class-nativesdk() { | |||
114 | GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ | 116 | GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ |
115 | GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} | 117 | GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} |
116 | 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 | ||
117 | } | 122 | } |
118 | 123 | ||
119 | FILES:${PN} += "${datadir}/git-core ${libexecdir}/git-core/" | 124 | FILES:${PN} += "${datadir}/git-core ${libexecdir}/git-core/" |
@@ -154,6 +159,8 @@ FILES:${PN}-tk = " \ | |||
154 | 159 | ||
155 | PACKAGES =+ "gitweb" | 160 | PACKAGES =+ "gitweb" |
156 | FILES:gitweb = "${datadir}/gitweb/" | 161 | FILES:gitweb = "${datadir}/gitweb/" |
162 | |||
163 | FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/git.sh" | ||
157 | RDEPENDS:gitweb = "perl" | 164 | RDEPENDS:gitweb = "perl" |
158 | 165 | ||
159 | BBCLASSEXTEND = "native nativesdk" | 166 | BBCLASSEXTEND = "native nativesdk" |
@@ -163,4 +170,4 @@ EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \ | |||
163 | " | 170 | " |
164 | EXTRA_OEMAKE += "NO_GETTEXT=1" | 171 | EXTRA_OEMAKE += "NO_GETTEXT=1" |
165 | 172 | ||
166 | SRC_URI[tarball.sha256sum] = "f9e36f085458fe9688fbbe7846b8c4770b13d161fcd8953655f36b2b85f06b76" | 173 | SRC_URI[tarball.sha256sum] = "f8047f572f665bebeb637fd5f14678f31b3ca5d2ff9a18f20bd925bd48f75d3c" |