diff options
author | Mike Westerhof <mwester@dls.net> | 2009-02-13 22:03:41 -0600 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2009-02-13 22:03:41 -0600 |
commit | abc22a4acd719ac3369c3b63104b80fe7dc26599 (patch) | |
tree | 4a141e456e95ef31a0d4ddb20791f9f45dd185f3 | |
parent | 9b5fc0cc0a1e50220c4f8a01304e38770c311853 (diff) |
opkg-nogpg-nocurl: change default tmpdir from /tmp to /root
So we can install large packages on small-memory machines
(the default should be to "just work", even if its not fast).
-rw-r--r-- | packages/opkg/files/opkg_wget_nogpg_04_default_tmpdir.patch | 20 | ||||
-rw-r--r-- | packages/opkg/opkg-nogpg-nocurl_svn.bb | 3 |
2 files changed, 22 insertions, 1 deletions
diff --git a/packages/opkg/files/opkg_wget_nogpg_04_default_tmpdir.patch b/packages/opkg/files/opkg_wget_nogpg_04_default_tmpdir.patch new file mode 100644 index 0000000000..403073fced --- /dev/null +++ b/packages/opkg/files/opkg_wget_nogpg_04_default_tmpdir.patch @@ -0,0 +1,20 @@ +# This patch moves the default tmpdir from /tmp, which is +# normally an in-memory filesystem to /root, which is not. +# This is desirable on very small-memory systems -- for +# example, the ipk for samba is nearly 20MB in size, and +# simply won't fit in /tmp, and attempting to do so very +# often causes a silent failure due to the OOM killer. +# +# Mike Westerhof, Feb 2009 +# +--- orig/libopkg/opkg_conf.h 2009-02-13 21:56:27.000000000 -0600 ++++ opkg/libopkg/opkg_conf.h 2009-02-13 21:56:39.000000000 -0600 +@@ -28,7 +28,7 @@ typedef struct opkg_conf opkg_conf_t; + #include "pkg_dest_list.h" + #include "nv_pair_list.h" + +-#define OPKG_CONF_DEFAULT_TMP_DIR_BASE "/tmp" ++#define OPKG_CONF_DEFAULT_TMP_DIR_BASE "/root" + #define OPKG_CONF_TMP_DIR_SUFFIX "opkg-XXXXXX" + #define OPKG_CONF_LISTS_DIR OPKG_STATE_DIR_PREFIX "/lists" + #define OPKG_CONF_PENDING_DIR OPKG_STATE_DIR_PREFIX "/pending" diff --git a/packages/opkg/opkg-nogpg-nocurl_svn.bb b/packages/opkg/opkg-nogpg-nocurl_svn.bb index 71133cb3d6..6f8b446ead 100644 --- a/packages/opkg/opkg-nogpg-nocurl_svn.bb +++ b/packages/opkg/opkg-nogpg-nocurl_svn.bb @@ -9,8 +9,9 @@ SRC_URI += " \ file://opkg_wget_nogpg_01_use_vfork_gunzip.patch;patch=1 \ file://opkg_wget_nogpg_02_use_vfork_system.patch;patch=1 \ file://opkg_wget_nogpg_03_fix_tmpdirs.patch;patch=1 \ + file://opkg_wget_nogpg_04_default_tmpdir.patch;patch=1 \ " -PR = "r4" +PR = "r5" SRCREV = "${SRCREV_pn-opkg}" |