aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-smartpm
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-11-29 15:35:36 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-06 12:30:32 +0000
commit54d227e97ff3498fc2149f96f1ca40452ad21a32 (patch)
treede96ed92ce870eaabbf1a97ed56276f6cadd5a6c /meta/recipes-devtools/python/python-smartpm
parentbb3abe241ae9d7e62e084cde383ebe1c6b95d825 (diff)
downloadopenembedded-core-contrib-54d227e97ff3498fc2149f96f1ca40452ad21a32.tar.gz
python-smartpm: don't create /var/tmp on every rpm database open
This directory if present in the rootfs interferes with proper installation of base-files and doesn't seem to need to be there for smart/rpm to work in any case. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/python/python-smartpm')
-rw-r--r--meta/recipes-devtools/python/python-smartpm/smart-tmpdir.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/smart-tmpdir.patch b/meta/recipes-devtools/python/python-smartpm/smart-tmpdir.patch
new file mode 100644
index 0000000000..2f09ce9248
--- /dev/null
+++ b/meta/recipes-devtools/python/python-smartpm/smart-tmpdir.patch
@@ -0,0 +1,30 @@
+backends/rpm: remove creation of /var/tmp
+
+This doesn't appear to be needed, and breaks installation of base-files
+in OpenEmbedded (since that is a symlink installed as part of the
+package).
+
+Upstream-Status: Pending
+
+Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
+
+diff --git a/smart/backends/rpm/base.py b/smart/backends/rpm/base.py
+index 234c844..127354d 100644
+--- a/smart/backends/rpm/base.py
++++ b/smart/backends/rpm/base.py
+@@ -82,12 +82,6 @@ def getTS(new=False):
+ else:
+ iface.warning(_("Initialized new rpm database at %s")
+ % getTS.root)
+- tmpdir = os.path.join(getTS.root, "var/tmp")
+- if not os.path.isdir(tmpdir):
+- try:
+- os.makedirs(tmpdir)
+- except OSError:
+- pass
+ if new:
+ if sysconf.get("rpm-dbpath"):
+ rpm.addMacro('_dbpath', "/" + sysconf.get("rpm-dbpath"))
+--
+1.7.9.5
+