summaryrefslogtreecommitdiff
path: root/debian/patches/0002-deb-Force-unsafe-io-when-install-packages.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0002-deb-Force-unsafe-io-when-install-packages.patch')
-rw-r--r--debian/patches/0002-deb-Force-unsafe-io-when-install-packages.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/patches/0002-deb-Force-unsafe-io-when-install-packages.patch b/debian/patches/0002-deb-Force-unsafe-io-when-install-packages.patch
new file mode 100644
index 0000000..042993b
--- /dev/null
+++ b/debian/patches/0002-deb-Force-unsafe-io-when-install-packages.patch
@@ -0,0 +1,42 @@
+From 39456cc6f91538a4ad3cb328993b2b98c8d3757b Mon Sep 17 00:00:00 2001
+From: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
+Date: Tue, 31 Jan 2017 10:17:18 +0100
+Subject: [PATCH 2/8] deb: Force unsafe io when install packages
+
+As the worker roots are transient there is little point in syncing
+everything to the filesystem, force dpkg to use unsafe-io.
+
+unsafe-io has been present in dpkg 1.15.8.6, which is older then the
+dpkg on any still supported debian or ubuntu release, so should be safe
+to do unconditionally
+
+Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
+---
+ build-pkg-deb | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/build-pkg-deb b/build-pkg-deb
+index 2465204..0849f60 100644
+--- a/build-pkg-deb
++++ b/build-pkg-deb
+@@ -58,7 +58,7 @@ pkg_initdb_deb() {
+ rm -f $BUILD_ROOT/.init_b_cache/dpkg.deb
+ cp $BUILD_ROOT/.init_b_cache/rpms/dpkg.deb $BUILD_ROOT/.init_b_cache/dpkg.deb || cleanup_and_exit 1
+ fi
+- deb_chroot $BUILD_ROOT dpkg --install --force-depends .init_b_cache/dpkg.deb >/dev/null 2>&1
++ deb_chroot $BUILD_ROOT dpkg --install --force-unsafe-io --force-depends .init_b_cache/dpkg.deb >/dev/null 2>&1
+ }
+
+ pkg_prepare_deb() {
+@@ -66,7 +66,7 @@ pkg_prepare_deb() {
+ }
+
+ pkg_install_deb() {
+- ( deb_chroot $BUILD_ROOT dpkg --install --force-depends .init_b_cache/$PKG.deb 2>&1 || touch $BUILD_ROOT/exit ) | \
++ ( deb_chroot $BUILD_ROOT dpkg --install --force-unsafe-io --force-depends .init_b_cache/$PKG.deb 2>&1 || touch $BUILD_ROOT/exit ) | \
+ perl -ne '$|=1;/^(Configuration file|Installing new config file|Selecting previously deselected|Selecting previously unselected|\(Reading database|Unpacking |Setting up|Creating config file|Preparing to replace dpkg|Preparing to unpack )/||/^$/||print'
+ # ugly workaround for upstart system. some packages (procps) try
+ # to start a service in their configure phase. As we don't have
+--
+2.1.4
+