diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-15 08:17:35 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-17 22:38:32 +0000 |
| commit | 73763d492a70ff45f4d5a53bc57a7c88582e994e (patch) | |
| tree | bf7f6084a436f4133e3e92555ac581e06387a903 /meta/recipes-devtools/git/git_2.49.0.bb | |
| parent | a12dd0636f8897f61bfd43235c30fdd16737378c (diff) | |
| download | poky-73763d492a70ff45f4d5a53bc57a7c88582e994e.tar.gz | |
git: upgrade 2.48.1 -> 2.49.0
(From OE-Core rev: cff5f7c2fabdefc5bc1e9b61bf26a35e2d28ddac)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/git/git_2.49.0.bb')
| -rw-r--r-- | meta/recipes-devtools/git/git_2.49.0.bb | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/meta/recipes-devtools/git/git_2.49.0.bb b/meta/recipes-devtools/git/git_2.49.0.bb new file mode 100644 index 0000000000..66082d0bde --- /dev/null +++ b/meta/recipes-devtools/git/git_2.49.0.bb | |||
| @@ -0,0 +1,167 @@ | |||
| 1 | SUMMARY = "Distributed version control system" | ||
| 2 | HOMEPAGE = "http://git-scm.com" | ||
| 3 | DESCRIPTION = "Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency." | ||
| 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" | ||
| 6 | DEPENDS = "openssl zlib" | ||
| 7 | DEPENDS:class-native += "ca-certificates" | ||
| 8 | |||
| 9 | PROVIDES:append:class-native = " git-replacement-native" | ||
| 10 | |||
| 11 | SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \ | ||
| 12 | file://fixsort.patch \ | ||
| 13 | file://0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch \ | ||
| 14 | " | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git-${PV}" | ||
| 17 | |||
| 18 | LIC_FILES_CHKSUM = "\ | ||
| 19 | file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1 \ | ||
| 20 | file://reftable/LICENSE;md5=1a6424cafc4c9c88c689848e165af33b \ | ||
| 21 | file://sha1dc/LICENSE.txt;md5=9bbe4c990a9e98ea4b98ef5d3bcb8a7a \ | ||
| 22 | file://compat/nedmalloc/License.txt;md5=e4224ccaecb14d942c71d31bef20d78c \ | ||
| 23 | file://compat/inet_ntop.c;md5=76593c6f74e8ced5b24520175688d59b;endline=16 \ | ||
| 24 | file://compat/obstack.h;md5=08ad25fee5428cd879ceef451ce3a22e;endline=18 \ | ||
| 25 | file://compat/poll/poll.h;md5=9fc00170a53b8e3e52157c91ac688dd1;endline=19 \ | ||
| 26 | file://compat/regex/regex.h;md5=30cc8af0e6f0f8a25acec6d8783bb763;beginline=4;endline=22 \ | ||
| 27 | " | ||
| 28 | |||
| 29 | CVE_PRODUCT = "git-scm:git" | ||
| 30 | |||
| 31 | PACKAGECONFIG ??= "expat curl" | ||
| 32 | PACKAGECONFIG[cvsserver] = "" | ||
| 33 | PACKAGECONFIG[svn] = "" | ||
| 34 | PACKAGECONFIG[manpages] = ",,asciidoc-native xmlto-native" | ||
| 35 | PACKAGECONFIG[curl] = "--with-curl,--without-curl,curl" | ||
| 36 | PACKAGECONFIG[expat] = "--with-expat,--without-expat,expat" | ||
| 37 | |||
| 38 | EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ | ||
| 39 | --without-tcltk \ | ||
| 40 | --without-iconv \ | ||
| 41 | " | ||
| 42 | EXTRA_OECONF:append:class-nativesdk = " --with-gitconfig=/etc/gitconfig " | ||
| 43 | EXTRA_OECONF:append:class-native = " --with-gitconfig=/etc/gitconfig " | ||
| 44 | |||
| 45 | # Needs brokensep as this doesn't use automake | ||
| 46 | inherit autotools-brokensep perlnative bash-completion manpages | ||
| 47 | |||
| 48 | EXTRA_OEMAKE = "NO_PYTHON=1 CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'" | ||
| 49 | EXTRA_OEMAKE += "'PERL_PATH=/usr/bin/env perl'" | ||
| 50 | EXTRA_OEMAKE += "COMPUTE_HEADER_DEPENDENCIES=no" | ||
| 51 | EXTRA_OEMAKE:append:class-native = " NO_CROSS_DIRECTORY_HARDLINKS=1" | ||
| 52 | |||
| 53 | do_compile:prepend () { | ||
| 54 | # Remove perl/perl.mak to fix the out-of-date perl.mak error | ||
| 55 | # during rebuild | ||
| 56 | rm -f perl/perl.mak | ||
| 57 | |||
| 58 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'manpages', d)}" ]; then | ||
| 59 | oe_runmake man | ||
| 60 | fi | ||
| 61 | } | ||
| 62 | |||
| 63 | do_install () { | ||
| 64 | oe_runmake install DESTDIR="${D}" bindir=${bindir} \ | ||
| 65 | template_dir=${datadir}/git-core/templates | ||
| 66 | |||
| 67 | install -d ${D}/${datadir}/bash-completion/completions/ | ||
| 68 | install -m 644 ${S}/contrib/completion/git-completion.bash ${D}/${datadir}/bash-completion/completions/git | ||
| 69 | |||
| 70 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'manpages', d)}" ]; then | ||
| 71 | # Needs to be serial with make 4.4 due to https://savannah.gnu.org/bugs/index.php?63362 | ||
| 72 | make install-man DESTDIR="${D}" | ||
| 73 | fi | ||
| 74 | } | ||
| 75 | |||
| 76 | perl_native_fixup () { | ||
| 77 | sed -i -e 's#${STAGING_BINDIR_NATIVE}/perl-native/#${bindir}/#' \ | ||
| 78 | -e 's#${libdir}/perl-native/#${libdir}/#' \ | ||
| 79 | ${@d.getVar("PERLTOOLS").replace(' /',d.getVar('D') + '/')} | ||
| 80 | |||
| 81 | if [ ! "${@bb.utils.filter('PACKAGECONFIG', 'cvsserver', d)}" ]; then | ||
| 82 | # Only install the git cvsserver command if explicitly requested | ||
| 83 | # as it requires the DBI Perl module, which does not exist in | ||
| 84 | # OE-Core. | ||
| 85 | rm ${D}${libexecdir}/git-core/git-cvsserver \ | ||
| 86 | ${D}${bindir}/git-cvsserver | ||
| 87 | fi | ||
| 88 | |||
| 89 | if [ ! "${@bb.utils.filter('PACKAGECONFIG', 'svn', d)}" ]; then | ||
| 90 | # Only install the git svn command and all Git::SVN Perl modules | ||
| 91 | # if explicitly requested as they require the SVN::Core Perl | ||
| 92 | # module, which does not exist in OE-Core. | ||
| 93 | rm -r ${D}${libexecdir}/git-core/git-svn \ | ||
| 94 | ${D}${datadir}/perl5/Git/SVN* | ||
| 95 | fi | ||
| 96 | } | ||
| 97 | |||
| 98 | REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core" | ||
| 99 | REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates" | ||
| 100 | REL_GIT_SSL_CAINFO = "${@os.path.relpath(sysconfdir, bindir)}/ssl/certs/ca-certificates.crt" | ||
| 101 | |||
| 102 | do_install:append:class-target () { | ||
| 103 | perl_native_fixup | ||
| 104 | } | ||
| 105 | |||
| 106 | do_install:append:class-native() { | ||
| 107 | create_wrapper ${D}${bindir}/git \ | ||
| 108 | 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 | } | ||
| 112 | |||
| 113 | do_install:append:class-nativesdk() { | ||
| 114 | create_wrapper ${D}${bindir}/git \ | ||
| 115 | GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ | ||
| 116 | GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} | ||
| 117 | perl_native_fixup | ||
| 118 | } | ||
| 119 | |||
| 120 | FILES:${PN} += "${datadir}/git-core ${libexecdir}/git-core/" | ||
| 121 | |||
| 122 | PERLTOOLS = " \ | ||
| 123 | ${bindir}/git-cvsserver \ | ||
| 124 | ${libexecdir}/git-core/git-archimport \ | ||
| 125 | ${libexecdir}/git-core/git-cvsexportcommit \ | ||
| 126 | ${libexecdir}/git-core/git-cvsimport \ | ||
| 127 | ${libexecdir}/git-core/git-cvsserver \ | ||
| 128 | ${libexecdir}/git-core/git-send-email \ | ||
| 129 | ${libexecdir}/git-core/git-svn \ | ||
| 130 | ${libexecdir}/git-core/git-instaweb \ | ||
| 131 | ${datadir}/gitweb/gitweb.cgi \ | ||
| 132 | ${datadir}/git-core/templates/hooks/prepare-commit-msg.sample \ | ||
| 133 | ${datadir}/git-core/templates/hooks/pre-rebase.sample \ | ||
| 134 | ${datadir}/git-core/templates/hooks/fsmonitor-watchman.sample \ | ||
| 135 | " | ||
| 136 | |||
| 137 | # Git tools requiring perl | ||
| 138 | PACKAGES =+ "${PN}-perltools" | ||
| 139 | FILES:${PN}-perltools += " \ | ||
| 140 | ${PERLTOOLS} \ | ||
| 141 | ${libdir}/perl \ | ||
| 142 | ${datadir}/perl5 \ | ||
| 143 | " | ||
| 144 | |||
| 145 | RDEPENDS:${PN}-perltools = "${PN} perl perl-module-file-path findutils" | ||
| 146 | |||
| 147 | # git-tk package with gitk and git-gui | ||
| 148 | PACKAGES =+ "${PN}-tk" | ||
| 149 | #RDEPENDS:${PN}-tk = "${PN} tk tcl" | ||
| 150 | #EXTRA_OEMAKE = "TCL_PATH=${STAGING_BINDIR_CROSS}/tclsh" | ||
| 151 | FILES:${PN}-tk = " \ | ||
| 152 | ${bindir}/gitk \ | ||
| 153 | ${datadir}/gitk \ | ||
| 154 | " | ||
| 155 | |||
| 156 | PACKAGES =+ "gitweb" | ||
| 157 | FILES:gitweb = "${datadir}/gitweb/" | ||
| 158 | RDEPENDS:gitweb = "perl" | ||
| 159 | |||
| 160 | BBCLASSEXTEND = "native nativesdk" | ||
| 161 | |||
| 162 | EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \ | ||
| 163 | ac_cv_fread_reads_directories=${ac_cv_fread_reads_directories=yes} \ | ||
| 164 | " | ||
| 165 | EXTRA_OEMAKE += "NO_GETTEXT=1" | ||
| 166 | |||
| 167 | SRC_URI[tarball.sha256sum] = "f8047f572f665bebeb637fd5f14678f31b3ca5d2ff9a18f20bd925bd48f75d3c" | ||
