From b65dc04712dfb8cc7bb9036c7c73b0cead6dd7c9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 16 Feb 2017 17:36:47 +0100 Subject: opkg: switch to own fork to improve memory usage Switch to our own fork of opkg to significantly reduce the required amount of memory when updating lists or installing packages. Preliminary tests showed a usage drop of about 90% during these operations, from ~3.7MB with unmodified opkg to ~360KB with our custom fork. Signed-off-by: Jo-Philipp Wich --- .../opkg/patches/250-add-lists-dir-switch.patch | 39 ---------------------- 1 file changed, 39 deletions(-) delete mode 100644 package/system/opkg/patches/250-add-lists-dir-switch.patch (limited to 'package/system/opkg/patches/250-add-lists-dir-switch.patch') diff --git a/package/system/opkg/patches/250-add-lists-dir-switch.patch b/package/system/opkg/patches/250-add-lists-dir-switch.patch deleted file mode 100644 index d0d0707836..0000000000 --- a/package/system/opkg/patches/250-add-lists-dir-switch.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- a/src/opkg-cl.c -+++ b/src/opkg-cl.c -@@ -101,6 +101,8 @@ static struct option long_options[] = { - {"test", 0, 0, ARGS_OPT_NOACTION}, - {"tmp-dir", 1, 0, 't'}, - {"tmp_dir", 1, 0, 't'}, -+ {"lists-dir", 1, 0, 'l'}, -+ {"lists_dir", 1, 0, 'l'}, - {"verbosity", 2, 0, 'V'}, - {"version", 0, 0, 'v'}, - {0, 0, 0, 0} -@@ -115,7 +117,7 @@ args_parse(int argc, char *argv[]) - char *tuple, *targ; - - while (1) { -- c = getopt_long_only(argc, argv, "Ad:f:ino:p:t:vV::", -+ c = getopt_long_only(argc, argv, "Ad:f:ino:p:l:t:vV::", - long_options, &option_index); - if (c == -1) - break; -@@ -139,6 +141,9 @@ args_parse(int argc, char *argv[]) - case 't': - conf->tmp_dir = xstrdup(optarg); - break; -+ case 'l': -+ conf->lists_dir = xstrdup(optarg); -+ break; - case 'v': - printf("opkg version %s\n", VERSION); - exit(0); -@@ -316,6 +321,8 @@ usage() - printf("\t automatically to satisfy dependencies\n"); - printf("\t-t Specify tmp-dir.\n"); - printf("\t--tmp-dir Specify tmp-dir.\n"); -+ printf("\t-l Specify lists-dir.\n"); -+ printf("\t--lists-dir Specify lists-dir.\n"); - - printf("\n"); - -- cgit v1.2.3