diff --git a/devel/git-cinnabar/Makefile b/devel/git-cinnabar/Makefile index 9351245fefc4..e61367220f59 100644 --- a/devel/git-cinnabar/Makefile +++ b/devel/git-cinnabar/Makefile @@ -1,46 +1,47 @@ PORTNAME= git-cinnabar DISTVERSION= 0.5.8 +PORTREVISION= 1 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.33 b/devel/git-cinnabar/files/patch-git-2.33 deleted file mode 100644 index 6ee6e1162de0..000000000000 --- a/devel/git-cinnabar/files/patch-git-2.33 +++ /dev/null @@ -1,66 +0,0 @@ -Revert https://github.com/glandium/git-cinnabar/commit/6ced6a84edc1 -until devel/git tracks 2.34.0 or later - ---- helper/GIT-VERSION.mk.orig 2021-11-19 21:23:13 UTC -+++ helper/GIT-VERSION.mk -@@ -1,2 +1,2 @@ --GIT_VERSION ?= v2.34.0 -+GIT_VERSION ?= v2.33.1 - 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 -@@ -522,8 +522,8 @@ static void do_set(struct string_list *args) - } - } - --int write_object_file_flags(const void *buf, unsigned long len, const char *type, -- struct object_id *oid, unsigned flags) -+int write_object_file(const void *buf, unsigned long len, const char *type, -+ struct object_id *oid) - { - struct strbuf data; - enum object_type t; ---- helper/hg-connect-http.c.orig 2021-11-19 21:23:13 UTC -+++ helper/hg-connect-http.c -@@ -408,7 +408,7 @@ struct hg_connection *hg_connect_http(const char *url, - struct hg_connection *conn = xmalloc(sizeof(*conn)); - struct strbuf caps = STRBUF_INIT; - struct writer writer; -- string_list_init_dup(&conn->capabilities); -+ string_list_init(&conn->capabilities, 1); - - conn->http.url = xstrdup(url); - conn->http.initial_request = 1; ---- helper/hg-connect-stdio.c.orig 2021-11-19 21:23:13 UTC -+++ helper/hg-connect-stdio.c -@@ -206,7 +206,7 @@ struct hg_connection *hg_connect_stdio(const char *url - struct strbuf buf = STRBUF_INIT; - struct hg_connection *conn = xmalloc(sizeof(*conn)); - struct child_process *proc = &conn->stdio.proc; -- string_list_init_dup(&conn->capabilities); -+ string_list_init(&conn->capabilities, 1); - - protocol = parse_connect_url(url, &hostandport, &path); - ---- helper/object-file.c.patch.orig 2021-11-19 21:23:13 UTC -+++ helper/object-file.c.patch -@@ -1,13 +1,13 @@ - diff --git a/object-file.c b/object-file.c --index c3d866a287..904149ce90 100644 -+index 188de57634..7b06e56727 100644 - --- a/object-file.c - +++ b/object-file.c --@@ -1954,7 +1954,7 @@ static int freshen_packed_object(const struct object_id *oid) -+@@ -1868,7 +1868,7 @@ static int freshen_packed_object(const struct object_id *oid) - return 1; - } - ---int write_object_file_flags(const void *buf, unsigned long len, --+int real_write_object_file_flags(const void *buf, unsigned long len, -- const char *type, struct object_id *oid, -- unsigned flags) -+-int write_object_file(const void *buf, unsigned long len, const char *type, -++int real_write_object_file(const void *buf, unsigned long len, const char *type, -+ struct object_id *oid) - { -+ char hdr[MAX_HEADER_LEN];