git: 92d27c1d5053 - main - ports-mgmt/pkg: reduce memory usage
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 06 Jul 2023 17:29:34 UTC
The branch main has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=92d27c1d5053e0e48141ba45dc60de6b3f3e116b commit 92d27c1d5053e0e48141ba45dc60de6b3f3e116b Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2023-07-06 17:28:37 +0000 Commit: Dima Panov <fluffy@FreeBSD.org> 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 <g.gl_pathc; i++) { + struct pkg *p = NULL; + if (pkg_open(&p, g.gl_pathv[i], +- PKG_OPEN_MANIFEST_ONLY) == EPKG_OK) { ++ PKG_OPEN_MANIFEST_COMPACT) == EPKG_OK) { + if (should_append_pkg(&localpkgs, p)) { + p->repopath = xstrdup(g.gl_pathv[i]); + tll_push_back(localpkgs, p);