summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2018-12-12 15:05:57 +0100
committerGilles Dartiguelongue <eva@gentoo.org>2018-12-12 15:17:30 +0100
commit07bdf34d44f4414410f79d275a1be4e9a905ac40 (patch)
tree2498651fc261354cf9cb87c0e0166683d228152c /app-admin/packagekit-base/files/1.1.12-cache-qafix.patch
parentmedia-libs/mesa: mark s390 stable (diff)
downloadgentoo-07bdf34d44f4414410f79d275a1be4e9a905ac40.tar.gz
gentoo-07bdf34d44f4414410f79d275a1be4e9a905ac40.tar.bz2
gentoo-07bdf34d44f4414410f79d275a1be4e9a905ac40.zip
app-admin/packagekit-base: 1.1.7-r2 → 1.1.12
Prepare ebuild to receive python3 targets. Code is almost compatible so just make sure we only need to touch PYTHON_TARGETS when the time comes. Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Gilles Dartiguelongue <eva@gentoo.org>
Diffstat (limited to 'app-admin/packagekit-base/files/1.1.12-cache-qafix.patch')
-rw-r--r--app-admin/packagekit-base/files/1.1.12-cache-qafix.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/app-admin/packagekit-base/files/1.1.12-cache-qafix.patch b/app-admin/packagekit-base/files/1.1.12-cache-qafix.patch
new file mode 100644
index 000000000000..4e747616c06f
--- /dev/null
+++ b/app-admin/packagekit-base/files/1.1.12-cache-qafix.patch
@@ -0,0 +1,38 @@
+From d64070f1782ed06f83be7783e22cf86f4098f34e Mon Sep 17 00:00:00 2001
+From: Ettore Di Giacinto <mudler@gentoo.org>
+Date: Tue, 11 Dec 2018 16:54:42 +0100
+Subject: [PATCH 1/2] Drop $(localstatedir)/cache rules
+
+This directory can be flushed any moment and pre-existence of folders
+in it cannot be assumed.
+
+pk-transaction creates the downloads directory as needed. If backends
+need metadata folder they should create it if not found.
+
+Closes: https://github.com/gentoo/gentoo/pull/1760
+References: https://github.com/hughsie/PackageKit/issues/143
+---
+ src/Makefile.am | 7 -------
+ 1 file changed, 7 deletions(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 830aaf873..24c9a0b9a 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -166,13 +166,6 @@ pk_self_test_CFLAGS = \
+
+ TESTS = pk-self-test
+
+-install-data-hook:
+- if test -w $(DESTDIR)$(prefix)/; then \
+- mkdir -p $(DESTDIR)$(localstatedir)/cache/PackageKit/downloads; \
+- mkdir -p $(DESTDIR)$(localstatedir)/cache/PackageKit/metadata; \
+- mkdir -p $(DESTDIR)$(localstatedir)/log; \
+- fi
+-
+ clean-local:
+ rm -f *~
+
+--
+2.19.2
+