From nobody Thu Jul 06 17:29:34 2023 X-Original-To: dev-commits-ports-all@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 4Qxk6k6ZhDz4lpFC; Thu, 6 Jul 2023 17:29:34 +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 4Qxk6k5j8qz3hYw; Thu, 6 Jul 2023 17:29:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688664574; 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=rOQWZ3J/TSbETgFD7q8n/6kU4TedV7j49Ul+sksZlsY=; b=si9/mizSTRV/bxL45tMl64DKXK3xlxHkMvbfa2wv+ibO2dcJ82fb0nFhrbWQdswH8kxN+8 bRIAAv+fpkQFo64l7uUcdm+1U4XLyW5GSyXzl6uJ7LSaMSyV1vWBgstOqHpsOU5y5L6oMy w4GLQcSXQvLYkSHM6lZdjkidLpp50oFpbhq1rLis1pOmmTM+XQp35+iAruxjhUPIkgK2FU a4lVqeRCCapowDSlAmFSIuR42y45R54mc+0l1gcEd47SDb5g5/dx/W2U54IEdgYYhDH8tv R7DkIjAPWvokgxdn5kOK0psHO6fa+kEZxdvtD2JRqn+xuRtOOdu5BvyacG9qyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688664574; 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=rOQWZ3J/TSbETgFD7q8n/6kU4TedV7j49Ul+sksZlsY=; b=owvZpmDNnRl+adj+Hj27Zg2fHTuw3ihJb1oXunoZy09bqsz0pUFL13hLkvF1C2gHU4/e1C Guo3m0f7mps3Jcdd4ZLZnGJjV4taPmDeyrTKQZcvjzIiFv7A0UvUeHiK95qH2z2/RSljL+ 5SvhK+KafsEpZdOowguz9ABbfQu0aKo6g3UiNTG+o+ZFncS94NeMglO5KAA0EX1/NIZr7G Ey1hqT40ddr0EBnP+D8dv+NWKz9xfzajptLfus6gr+IzEyw6ezCLRRSmq8bKmG6xwGpCRk SW+Ml+T7rvuDNpvD5eVCcVTEA2rXO9AYqQ533lLIl0va8tHsNAXIR6H1hNU4VA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688664574; a=rsa-sha256; cv=none; b=p5O7IEUSc5s7L4njaiTbNlRaOvgq6D3YJGTS8w4m6m5icz4reO+bZWNRZ7owTaxvNMKWFZ PRd4l/Qtf0xqryZ0H9NXbtCeCFNioHxtrxUHw+Q1AeTZFVcWNtjBKC9Nxg1U+JKOzf6tfo R3ssGoisjxknC7F7ofiR+JPX5DnvqTRr8WVkZ/nJY6hFceE9V6ORFGvDzDXY8kUHx9uRYR JPB/S5B7l4WS3upgD/RBpIAe3eE0mcvTbgTo++WrWsHOgZplJZBht1Dj7c64xTZYvtwGKn 2pdWtShiRTUKXkVHg7DYj4PIT8DrAlbu/go/3jlR3va9ELTrb0f9C4o+YgvvCQ== 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 4Qxk6k4jlpz15Fc; Thu, 6 Jul 2023 17:29:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 366HTYGk082281; Thu, 6 Jul 2023 17:29:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 366HTYER082280; Thu, 6 Jul 2023 17:29:34 GMT (envelope-from git) Date: Thu, 6 Jul 2023 17:29:34 GMT Message-Id: <202307061729.366HTYER082280@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dima Panov Subject: git: 92d27c1d5053 - main - ports-mgmt/pkg: reduce memory usage List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fluffy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 92d27c1d5053e0e48141ba45dc60de6b3f3e116b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=92d27c1d5053e0e48141ba45dc60de6b3f3e116b commit 92d27c1d5053e0e48141ba45dc60de6b3f3e116b Author: Baptiste Daroussin AuthorDate: 2023-07-06 17:28:37 +0000 Commit: Dima Panov CommitDate: 2023-07-06 17:28:37 +0000 ports-mgmt/pkg: reduce memory usage Approved by: bapt --- ports-mgmt/pkg/Makefile | 1 + ports-mgmt/pkg/files/patch-add-reduce-memory | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/ports-mgmt/pkg/Makefile b/ports-mgmt/pkg/Makefile index c204694175d0..d7e0df3d62a6 100644 --- a/ports-mgmt/pkg/Makefile +++ b/ports-mgmt/pkg/Makefile @@ -1,5 +1,6 @@ PORTNAME= pkg DISTVERSION= 1.20.1 +PORTREVISION= 1 _PKG_VERSION= ${DISTVERSION} CATEGORIES= ports-mgmt diff --git a/ports-mgmt/pkg/files/patch-add-reduce-memory b/ports-mgmt/pkg/files/patch-add-reduce-memory new file mode 100644 index 000000000000..a88f29ec9dc5 --- /dev/null +++ b/ports-mgmt/pkg/files/patch-add-reduce-memory @@ -0,0 +1,13 @@ +diff --git libpkg/pkg_add.c libpkg/pkg_add.c +index bac5d949..3512bd66 100644 +--- libpkg/pkg_add.c ++++ libpkg/pkg_add.c +@@ -1047,7 +1047,7 @@ pkg_add_check_pkg_archive(struct pkgdb *db, struct pkg *pkg, + for (int i = 0; i repopath = xstrdup(g.gl_pathv[i]); + tll_push_back(localpkgs, p);