From owner-svn-ports-head@freebsd.org Thu Nov 5 19:34:32 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8960246F167; Thu, 5 Nov 2020 19:34:32 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CRtxz4q6Gz3KMT; Thu, 5 Nov 2020 19:34:31 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0A6C918DEB; Thu, 5 Nov 2020 19:34:30 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0A5JYT5l002204; Thu, 5 Nov 2020 19:34:29 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0A5JYTt5002202; Thu, 5 Nov 2020 19:34:29 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <202011051934.0A5JYTt5002202@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 5 Nov 2020 19:34:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r554154 - in head/devel/git-cinnabar: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/devel/git-cinnabar: . files X-SVN-Commit-Revision: 554154 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2020 19:34:32 -0000 Author: jbeich Date: Thu Nov 5 19:34:29 2020 New Revision: 554154 URL: https://svnweb.freebsd.org/changeset/ports/554154 Log: devel/git-cinnabar: unbreak after r554143 gmake[2]: *** No rule to make target 'fast-import.c', needed by 'helper/fast-import.patched.c'. Stop. Obtained from: upstream Added: head/devel/git-cinnabar/files/patch-git-2.29 (contents, props changed) Modified: head/devel/git-cinnabar/Makefile (contents, props changed) Modified: head/devel/git-cinnabar/Makefile ============================================================================== --- head/devel/git-cinnabar/Makefile Thu Nov 5 19:34:22 2020 (r554153) +++ head/devel/git-cinnabar/Makefile Thu Nov 5 19:34:29 2020 (r554154) @@ -2,7 +2,7 @@ PORTNAME= git-cinnabar DISTVERSION= 0.5.5 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= devel PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX:N-py27} Added: head/devel/git-cinnabar/files/patch-git-2.29 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/git-cinnabar/files/patch-git-2.29 Thu Nov 5 19:34:29 2020 (r554154) @@ -0,0 +1,96 @@ +https://github.com/glandium/git-cinnabar/commit/7e88e6e73cb6 + +--- helper/GIT-VERSION.mk.orig 2020-04-23 06:16:13 UTC ++++ helper/GIT-VERSION.mk +@@ -1,2 +1,2 @@ +-GIT_VERSION ?= v2.27.0 ++GIT_VERSION ?= v2.29.0 + WINDOWS_GIT_VERSION ?= $(GIT_VERSION).windows.1 +--- helper/cinnabar-fast-import.c.orig 2020-04-23 06:16:13 UTC ++++ helper/cinnabar-fast-import.c +@@ -1,8 +1,5 @@ +-#define cmd_main fast_import_main +-#define hashwrite fast_import_hashwrite + static void start_packfile(); + #include "fast-import.patched.c" +-#undef hashwrite + #include "cinnabar-fast-import.h" + #include "cinnabar-helper.h" + #include "cinnabar-notes.h" +@@ -32,10 +29,9 @@ static void cleanup(); + static struct pack_window *pack_win; + static struct pack_window *prev_win; + +-void hashwrite(struct hashfile *, const void *, unsigned int); ++void real_hashwrite(struct hashfile *, const void *, unsigned int); + +-void fast_import_hashwrite(struct hashfile *f, const void *buf, +- unsigned int count) ++void hashwrite(struct hashfile *f, const void *buf, unsigned int count) + { + size_t window_size; + +@@ -52,7 +48,7 @@ void fast_import_hashwrite(struct hashfile *f, const v + pack_data->pack_size = pack_win->len; + } + +- hashwrite(f, buf, count); ++ real_hashwrite(f, buf, count); + pack_win->last_used = -1; /* always last used */ + pack_win->inuse_cnt = -1; + if (pack_data) +--- helper/cinnabar-helper.c.orig 2020-04-23 06:16:13 UTC ++++ helper/cinnabar-helper.c +@@ -2411,7 +2411,7 @@ static void init_git_config() + setup_path(); + } + proc.argv = argv; +- argv_array_push(&proc.env_array, "GIT_EDITOR=echo"); ++ strvec_push(&proc.env_array, "GIT_EDITOR=echo"); + proc.no_stdin = 1; + proc.no_stderr = 1; + /* We don't really care about the capture_command return value. If +--- helper/csum-file.c.patch.orig 2020-11-05 19:24:28 UTC ++++ helper/csum-file.c.patch +@@ -0,0 +1,13 @@ ++diff --git a/csum-file.c b/csum-file.c ++index 0f35fa5ee4..cee7bd5aeb 100644 ++--- a/csum-file.c +++++ b/csum-file.c ++@@ -86,7 +86,7 @@ int finalize_hashfile(struct hashfile *f, unsigned char *result, unsigned int fl ++ return fd; ++ } ++ ++-void hashwrite(struct hashfile *f, const void *buf, unsigned int count) +++void real_hashwrite(struct hashfile *f, const void *buf, unsigned int count) ++ { ++ while (count) { ++ unsigned offset = f->offset; +--- helper/helper.mk.orig 2020-04-23 06:16:13 UTC ++++ helper/helper.mk +@@ -91,8 +91,12 @@ CINNABAR_OBJECTS += which.o + + PATCHES = $(notdir $(wildcard $(SOURCE_DIR)helper/*.patch)) + +-$(addprefix $(SOURCE_DIR)helper/,$(PATCHES:%.c.patch=%.patched.c)): $(SOURCE_DIR)helper/%.patched.c: $(SOURCE_DIR)helper/%.c.patch %.c +- patch -p1 -F0 -o $@ $(CURDIR)/$(notdir $(lastword $^)) < $< ++define patch ++$$(SOURCE_DIR)helper/$1.patched.c: $$(SOURCE_DIR)helper/$1.c.patch $$(firstword $$(wildcard $$(SOURCE_DIR)git-core/$1.c $$(SOURCE_DIR)git-core/builtin/$1.c)) ++ patch -p1 -F0 -o $$@ $$(lastword $$^) < $$< ++endef ++ ++$(foreach p,$(PATCHES),$(eval $(call patch,$(p:%.c.patch=%)))) + + clean-patched: + $(RM) $(addprefix $(SOURCE_DIR)helper/,$(PATCHES:%.c.patch=%.patched.c)) +--- helper/hg-connect-stdio.c.orig 2020-04-23 06:16:13 UTC ++++ helper/hg-connect-stdio.c +@@ -265,7 +265,7 @@ struct hg_connection *hg_connect_stdio(const char *url + strbuf_addstr(&buf, "hg -R "); + maybe_sq_quote_buf(&buf, remote_path); + strbuf_addstr(&buf, " serve --stdio"); +- argv_array_push(&proc->args, buf.buf); ++ strvec_push(&proc->args, buf.buf); + strbuf_release(&buf); + + start_command(proc);