diff --git a/patches/git/jinx-working-patch.patch b/patches/git/jinx-working-patch.patch new file mode 100644 index 00000000..cc711470 --- /dev/null +++ b/patches/git/jinx-working-patch.patch @@ -0,0 +1,13 @@ +diff --git git-clean/configure.ac git-workdir/configure.ac +index d1a96da..05aed44 100644 +--- git-clean/configure.ac ++++ git-workdir/configure.ac +@@ -755,7 +755,7 @@ GIT_CONF_SUBST([LIBC_CONTAINS_LIBINTL]) + # Define NO_GETTEXT if you don't want Git output to be translated. + # A translated Git requires GNU libintl or another gettext implementation + AC_CHECK_HEADER([libintl.h], +-[NO_GETTEXT=], ++[NO_GETTEXT=YesPlease], + [NO_GETTEXT=YesPlease]) + GIT_CONF_SUBST([NO_GETTEXT]) + diff --git a/recipes/git b/recipes/git new file mode 100644 index 00000000..37a97339 --- /dev/null +++ b/recipes/git @@ -0,0 +1,16 @@ +name=git +revision=1 +from_source=git +imagedeps="base-devel" +hostdeps="xgcc xbinutils" +deps="mlibc python zlib curl openssl openssh" + +build() { + cp -rp ${source_dir}/* . + ac_cv_iconv_omits_bom=yes ac_cv_fread_reads_directories=no ac_cv_snprintf_returns_bogus=no ./configure --host=x86_64-astral --prefix=${prefix} --with-gitconfig=/etc/gitconfig --with-python=python3 + make -j ${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/source-recipes/git b/source-recipes/git new file mode 100644 index 00000000..8d4df32f --- /dev/null +++ b/source-recipes/git @@ -0,0 +1,9 @@ +name=git +version=2.45.2 +source_method=tarball +tarball_url="https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz" +tarball_sha512="dce30d0d563f3f76ef49c8dc88105e0cf0941c8cd70303418d9d737f840ffba36bcc575c380c75080edf64af74487e1a680db146ec5f527a32104e887d4ceb73" +hostdeps="autoconf automake pkgconfig libtool" +regenerate() { + autoreconf -fvi +}