From nobody Wed Feb 02 11:46:21 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3792118BA96A; Wed, 2 Feb 2022 11:46:22 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jpg4G16Xcz3LcQ; Wed, 2 Feb 2022 11:46:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643802382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UjHsWpsktnCcn8KUBJ8sXugqWasa5oF2hCeaasbGDEE=; b=PBQj/gJm6+2U+SdTpAXm1DC0xUv3wzzs4wBB5zst3kaR+xkXYmxLw+r4zTOh+dLwcUWVnt PPCyTnumGm75P/n7td+LsFdkLkSzDer8MxnpYeimVmUFxZ5ChoijVoFq7det0PR9Rt/HHE lGHwI3DzyAPmlMOCHb6hsiUZZygYhK7VCvGm8Vl4lZiI/1DmPHjfRXyR/+EGTXy52tPe3q r4CEEvTG55Wsvhgqdl/imYIV1XOYJh9HcMXc/0gQ/ClOSEKd/qkiYQetQtXuIoIqPG1ygp Q+A9lrTc8SFyZDuDZlze6JPijBAPw4l5JL3COxTVSS2f24Ik0tUq4OGnr8NzMA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 071C8235FD; Wed, 2 Feb 2022 11:46:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 212BkLap083085; Wed, 2 Feb 2022 11:46:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 212BkLEY083084; Wed, 2 Feb 2022 11:46:21 GMT (envelope-from git) Date: Wed, 2 Feb 2022 11:46:21 GMT Message-Id: <202202021146.212BkLEY083084@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 174d1edd69ba - main - devel/git-cinnabar: unbreak after 575abbd62626 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 174d1edd69bad060cb9d5480c391253ae76f42cf Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643802382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UjHsWpsktnCcn8KUBJ8sXugqWasa5oF2hCeaasbGDEE=; b=gnq6QGvdICtsT0omIyY5ZK7IKT9PnvxQep3C846yosfNPAdcy+pT65vj0sZtGqu8yJIpk/ xBkjf/ovwCAtz9kxa3njHPhOawYymCEnJwSU/8PmEpWfvBBsI+Wg8Cn/aeOlc7D+FVkWjl hQtWWzcDupwd7m1v9wo3pWWWQOkJcDClTdLFNrv/U0K5iQKFZIqgh10316Z/iXor9K9vx8 8Kn1MtOz+L2sdhbXTTo91aFB0uEFsup5nJw/0JEnaMjNL1VgpIpicJEh8hDbPdOvUEFL4s 6N3eT7V0BohbBfzofQ2BsjcafkqLOpSoVVdT6KtIQRM2ZuJpqRURDx6lp+8dHw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643802382; a=rsa-sha256; cv=none; b=tISmIv/mp6fwR+NoSypZfjLLceVEpt06V+j9O3dybu8CD2Lj3o3a5fWynJzz4MDngHe862 8jZR7vgIZiaGlpq+L40nd+jKVcSXqk0660WZ+i/DUCL5VBIS0o3zJM369oh9A9dN00+CvS ILCPiOQu/zVRH7GvmFSDZzgow2rGJudePH1s1NGg0mERi60y5c2vU8+IFk4zPaZUN/usFj ytqvTVwR5fo2nEYHAbxN/AM1z51F1OUfaCx1WRrKthRirg3K6YTrx2tVSjk6Kf/k05Zae4 obtKIWD8YJkg2mRhKf6fxRzmeIWomikcoSM3F0kKH+mQXoAG0sDTcZ5pKCLxxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=174d1edd69bad060cb9d5480c391253ae76f42cf commit 174d1edd69bad060cb9d5480c391253ae76f42cf Author: Jan Beich AuthorDate: 2022-02-02 11:42:05 +0000 Commit: Jan Beich CommitDate: 2022-02-02 11:45:59 +0000 devel/git-cinnabar: unbreak after 575abbd62626 helper/cinnabar-util.c:230:16: error: no member named 'argv' in 'struct child_process'; did you mean 'args'? context->proc.argv = argv; ^~~~ helper/hg-connect-stdio.c:218:8: error: no member named 'env' in 'struct child_process' proc->env = local_repo_env; ~~~~ ^ --- devel/git-cinnabar/Makefile | 2 +- devel/git-cinnabar/files/patch-git-2.35 | 88 +++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 1 deletion(-) diff --git a/devel/git-cinnabar/Makefile b/devel/git-cinnabar/Makefile index e61367220f59..a1056ec4f249 100644 --- a/devel/git-cinnabar/Makefile +++ b/devel/git-cinnabar/Makefile @@ -1,6 +1,6 @@ PORTNAME= git-cinnabar DISTVERSION= 0.5.8 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MAINTAINER= jbeich@FreeBSD.org diff --git a/devel/git-cinnabar/files/patch-git-2.35 b/devel/git-cinnabar/files/patch-git-2.35 new file mode 100644 index 000000000000..1b71c59813cf --- /dev/null +++ b/devel/git-cinnabar/files/patch-git-2.35 @@ -0,0 +1,88 @@ +https://github.com/glandium/git-cinnabar/commit/612e11da5def + +--- 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.35.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,13 @@ static void do_set(struct string_list *args) + } + } + ++#ifdef _WIN32 ++int write_object_file_flags(const void *buf, size_t len, const char *type, ++ struct object_id *oid, unsigned flags) ++#else + int write_object_file_flags(const void *buf, unsigned long len, const char *type, + struct object_id *oid, unsigned flags) ++#endif + { + struct strbuf data; + enum object_type t; +--- helper/cinnabar-helper.c.orig 2021-11-19 21:23:13 UTC ++++ helper/cinnabar-helper.c +@@ -2411,13 +2411,10 @@ static void init_git_config() + * might be important configuration items there (like http.sslcainfo + * on git for windows). + * Trick git into giving us the path to it system gitconfig. */ +- const char *argv[] = { +- "git", "config", "--system", "-e", NULL +- }; + if (env && *env) { + setup_path(); + } +- proc.argv = argv; ++ strvec_pushl(&proc.args, "git", "config", "--system", "-e", NULL); + strvec_push(&proc.env_array, "GIT_EDITOR=echo"); + proc.no_stdin = 1; + proc.no_stderr = 1; +--- helper/cinnabar-util.c.orig 2021-11-19 21:23:13 UTC ++++ helper/cinnabar-util.c +@@ -227,7 +227,7 @@ void pipe_writer(struct writer *writer, const char **a + + writer_close(writer); + child_process_init(&context->proc); +- context->proc.argv = argv; ++ strvec_pushv(&context->proc.args, argv); + context->proc.in = -1; + context->proc.out = fileno((FILE*)writer->context); + context->proc.no_stderr = 1; +--- helper/hg-connect-stdio.c.orig 2021-11-19 21:23:13 UTC ++++ helper/hg-connect-stdio.c +@@ -215,7 +215,7 @@ struct hg_connection *hg_connect_stdio(const char *url + if (looks_like_command_line_option(path)) + die("strange pathname '%s' blocked", path); + +- proc->env = local_repo_env; ++ strvec_pushv(&proc->env_array, (const char **)local_repo_env); + proc->use_shell = 1; + proc->in = proc->out = proc->err = -1; + +--- 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 8be57f48de..52315414f3 100644 + --- a/object-file.c + +++ b/object-file.c +-@@ -1954,7 +1954,7 @@ static int freshen_packed_object(const struct object_id *oid) +- return 1; +- } ++@@ -34,6 +34,8 @@ ++ #include "promisor-remote.h" ++ #include "submodule.h" + +--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) +- { +++#define write_object_file_flags real_write_object_file_flags +++ ++ /* The maximum size for an object header. */ ++ #define MAX_HEADER_LEN 32 ++