diff --git a/devel/git-cinnabar/Makefile b/devel/git-cinnabar/Makefile index 94395a78752b..73d6780446d5 100644 --- a/devel/git-cinnabar/Makefile +++ b/devel/git-cinnabar/Makefile @@ -1,47 +1,47 @@ PORTNAME= git-cinnabar DISTVERSION= 0.5.8 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel MAINTAINER= jbeich@FreeBSD.org COMMENT= Git remote helper to interact with Mercurial repositories LICENSE= GPLv2 BUILD_DEPENDS= ${NONEXISTENT}:devel/git:configure RUN_DEPENDS= git:devel/git USE_GITHUB= yes GH_ACCOUNT= glandium USES= gmake python:3.6+,run shebangfix TARGET_ORDER_OVERRIDE= 510:fix-shebang # after do-patch SHEBANG_FILES= ${PORTNAME} git-remote-hg ALL_TARGET= ${PORTNAME}-helper MAKE_ENV= ${:!${MAKE} -V MAKE_ENV -C ${.CURDIR:H}/git!} MAKE_ARGS= SUBMODULE_STATUS=dummy ${:!${MAKE} -V MAKE_ARGS -C ${.CURDIR:H}/git!} CFLAGS+= -ffunction-sections -fdata-sections LDFLAGS+= -Wl,--gc-sections .export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS # :configure DATADIR= ${PREFIX}/libexec/git-core PORTDATA= * PORTDOCS= README.md OPTIONS_DEFINE= DOCS post-configure: @${TAR} cf - -C$$(${MAKE} -V WRKSRC -C ${PORTSDIR}/devel/git) . | \ ${TAR} xof - -C${WRKSRC}/git-core do-install: ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${WRKSRC}/git-remote-hg \ ${STAGEDIR}${DATADIR} ${INSTALL_PROGRAM} ${WRKSRC}/git-core/${PORTNAME}-helper \ ${STAGEDIR}${DATADIR} (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTNAME:S/git-//}" \ ${STAGEDIR}${DATADIR}/pythonlib) (cd ${WRKSRC} && ${COPYTREE_SHARE} \ "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) .include diff --git a/devel/git-cinnabar/files/patch-git-2.36 b/devel/git-cinnabar/files/patch-git-2.36 new file mode 100644 index 000000000000..89144ecdc2bf --- /dev/null +++ b/devel/git-cinnabar/files/patch-git-2.36 @@ -0,0 +1,131 @@ +https://github.com/glandium/git-cinnabar/commit/16d11703acfe + +--- helper/GIT-VERSION.mk.orig 2021-11-19 21:23:13 UTC ++++ helper/GIT-VERSION.mk +@@ -1,2 +1,2 @@ +-GIT_VERSION ?= v2.35.1 ++GIT_VERSION ?= v2.36.0 + WINDOWS_GIT_VERSION ?= $(GIT_VERSION).windows.1 +--- helper/cinnabar-fast-import.c.orig 2021-11-19 21:23:13 UTC ++++ helper/cinnabar-fast-import.c +@@ -523,30 +523,18 @@ static void do_set(struct string_list *args) + } + + #ifdef _WIN32 +-int write_object_file_flags(const void *buf, size_t len, const char *type, ++int write_object_file_flags(const void *buf, size_t len, enum object_type type, + struct object_id *oid, unsigned flags) + #else +-int write_object_file_flags(const void *buf, unsigned long len, const char *type, ++int write_object_file_flags(const void *buf, unsigned long len, enum object_type type, + struct object_id *oid, unsigned flags) + #endif + { + struct strbuf data; +- enum object_type t; +- if (type == tree_type) { +- t = OBJ_TREE; +- } else if (type == blob_type) { +- t = OBJ_BLOB; +- } else if (type == commit_type) { +- t = OBJ_COMMIT; +- } else if (type == tag_type) { +- t = OBJ_TAG; +- } else { +- die("Unknown type"); +- } + data.buf = (void *)buf; + data.len = len; + data.alloc = len; +- store_object(t, &data, NULL, oid, 0); ++ store_object(type, &data, NULL, oid, 0); + return 0; + } + +--- helper/fast-import.c.patch.orig 2021-11-19 21:23:13 UTC ++++ helper/fast-import.c.patch +@@ -1,16 +1,25 @@ diff --git a/builtin/fast-import.c b/builtin/fast-impo + diff --git a/builtin/fast-import.c b/builtin/fast-import.c +-index 20406f6775..7ff0911c2c 100644 ++index 28d3193c38..2b3aeaa4d5 100644 + --- a/builtin/fast-import.c + +++ b/builtin/fast-import.c +-@@ -19,6 +19,7 @@ +- #include "mem-pool.h" ++@@ -20,6 +20,7 @@ + #include "commit-reach.h" + #include "khash.h" ++ #include "date.h" + +#include "shallow.h" + + #define PACK_ID_BITS 16 + #define MAX_PACK_ID ((1<pack_fd, pack_data->hash, + pack_data->pack_name, object_count, + cur_pack_oid.hash, pack_size); +-@@ -956,6 +958,9 @@ static int store_object( ++@@ -965,6 +967,9 @@ static int store_object( + e->pack_id = MAX_PACK_ID; + e->idx.offset = 1; /* just not zero! */ + duplicate_count_by_type[type]++; +@@ -46,7 +55,7 @@ + } + return 1; + } + +-@@ -1639,7 +1644,7 @@ static int update_branch(struct branch *b) ++@@ -1648,7 +1653,7 @@ static int update_branch(struct branch *b) + return 0; + } + +@@ -55,7 +64,7 @@ +void dump_branches(void) + { + unsigned int i; + struct branch *b; +-@@ -2208,7 +2213,9 @@ static int parse_mapped_oid_hex(const char *hex, struct object_id *oid, const ch ++@@ -2217,7 +2222,9 @@ static int parse_mapped_oid_hex(const char *hex, struct object_id *oid, const ch + * Complain if the following character is not what is expected, + * either a space or end of the string. + */ +@@ -66,7 +75,7 @@ +static uintmax_t real_parse_mark_ref(const char *p, c + { + uintmax_t mark; + +-@@ -2272,9 +2279,8 @@ static void file_change_m(const char *p, struct branch *b) ++@@ -2281,9 +2288,8 @@ static void file_change_m(const char *p, struct branch *b) + case S_IFDIR: + case S_IFGITLINK: + /* ok */