From 07bdf34d44f4414410f79d275a1be4e9a905ac40 Mon Sep 17 00:00:00 2001 From: Gilles Dartiguelongue Date: Wed, 12 Dec 2018 15:05:57 +0100 Subject: app-admin/packagekit-base: 1.1.7-r2 → 1.1.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../packagekit-base/files/1.1.12-cache-qafix.patch | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 app-admin/packagekit-base/files/1.1.12-cache-qafix.patch (limited to 'app-admin/packagekit-base/files/1.1.12-cache-qafix.patch') 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 +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 + -- cgit v1.2.3-65-gdbad