[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#630043: marked as done (use dpkg --force-unsafe-io if available)

Your message dated Sat, 11 Jun 2011 16:18:12 +0000
with message-id <E1QVQt2-0004te-Gj@franck.debian.org>
and subject line Bug#630043: fixed in live-build 3.0~a20-1
has caused the Debian Bug report #630043,
regarding use dpkg --force-unsafe-io if available
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org

630043: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630043
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: live-build
Version: 3.0~a18-1
Severity: wishlist
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch oneiric

The --force-unsafe-io option was introduced in dpkg (see
#584254).  It's useful for cases where it doesn't matter if unpacked
files are properly preserved across power failures, and live image
builds were one of the main use cases we were thinking about: in the
case of an interrupted live image build, you'd just 'lb clean' and start
again.  Thus, it seems sensible to use it across the board if it's
available.  Patch attached.


Colin Watson                                       [cjwatson@ubuntu.com]
>From b94c12fdc9a2a19b52317181316c5fe0f5b7584e Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@canonical.com>
Date: Fri, 10 Jun 2011 15:57:32 +0100
Subject: [PATCH] Use dpkg --force-unsafe-io if available.

 scripts/build/lb_chroot_dpkg |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/scripts/build/lb_chroot_dpkg b/scripts/build/lb_chroot_dpkg
index 64c8085..819dbda 100755
--- a/scripts/build/lb_chroot_dpkg
+++ b/scripts/build/lb_chroot_dpkg
@@ -53,6 +53,14 @@ EOF
 		chmod 755 chroot/sbin/start-stop-daemon
+		# Disable dpkg syncing
+		if echo 'dpkg --compare-versions "$(dpkg-query -W --showformat="\${Version}" dpkg)" ge' | Chroot chroot sh
+		then
+			cat > chroot/etc/dpkg/dpkg.cfg.d/live-build << EOF
+		fi
 		# Manual hacks for special packages
 		# samhain
@@ -95,6 +103,9 @@ EOF
 			mv chroot/sbin/start-stop-daemon.orig chroot/sbin/start-stop-daemon
+		# Remove dpkg sync configuration
+		rm -f chroot/etc/dpkg/dpkg.cfg.d/live-build
 		# Removing stage file
 		rm -f .stage/chroot_dpkg

--- End Message ---
--- Begin Message ---
Source: live-build
Source-Version: 3.0~a20-1

We believe that the bug you reported is fixed in the latest version of
live-build, which is due to be installed in the Debian FTP archive:

  to main/l/live-build/live-build-cgi_3.0~a20-1_all.deb
  to main/l/live-build/live-build_3.0~a20-1.debian.tar.gz
  to main/l/live-build/live-build_3.0~a20-1.dsc
  to main/l/live-build/live-build_3.0~a20-1_all.deb
  to main/l/live-build/live-build_3.0~a20.orig.tar.gz

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 630043@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Daniel Baumann <daniel@debian.org> (supplier of updated live-build package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)

Hash: SHA1

Format: 1.8
Date: Sat, 11 Jun 2011 17:46:24 +0200
Source: live-build
Binary: live-build live-build-cgi
Architecture: source all
Version: 3.0~a20-1
Distribution: unstable
Urgency: low
Maintainer: Debian Live Project <debian-live@lists.debian.org>
Changed-By: Daniel Baumann <daniel@debian.org>
 live-build - Debian Live - System Build Scripts
 live-build-cgi - Debian Live - System Build Scripts (cgi frontend)
Closes: 627439 630032 630043 630080
 live-build (3.0~a20-1) unstable; urgency=low
   [ Daniel Baumann ]
   * Dropping handling of --packages in order to simply things handle
     packages scheduled for installation through package lists only.
   * Removing unmaintained chroot_localization script.
   [ Colin Watson ]
   * Use powerpc and powerpc64-smp kernel flavours by default for Ubuntu,
     as there is no powerpc64 flavour (Closes: #630032).
   [ Daniel Baumann ]
   * Correct indenting in powerpc kernel defaults.
   [ Colin Watson ]
   * Use dpkg --force-unsafe-io if available (Closes: #630043).
   [ Daniel Baumann ]
   * Correcting indenting for dpkg sync configuration file.
   * Always disable dpkg sync, we only support squeeze and newer anyway.
   [ Colin Watson ]
   * Fix incorrect Ubuntu defaults for security and volatile mirrors
     (Closes: #630080).
   [ Daniel Baumann ]
   * Reworking chroot_tasks into chroot_local-tasklists, now packages and
     tasks are (almost) handled identical and through local lists only.
   * Creating chroot_local-tasklists directory in config.
   * Using locales-all instead of locales in standard list for progress.
   * Adding support for 'nif' in package lists.
   * Updating and simplyfing conditionals in package lists.
   * Allow to optionally run package installation in two passes.
     Eventually, this allows to have media containing a 'bigger' live
     system that what they end up installing (Closes: #627439).
 6790434c507b9834f5bf368839df636bf843a41d 1282 live-build_3.0~a20-1.dsc
 7f24fee7dad7eeba4add60f4fa81c03f94c7908b 1888244 live-build_3.0~a20.orig.tar.gz
 1fe427abaaef7f346804386285373f5165a91e13 41650 live-build_3.0~a20-1.debian.tar.gz
 d79b7295c2454c83fdda973544f5f60f5289df27 1129634 live-build_3.0~a20-1_all.deb
 7a0db396ac9518f4376c418f9871219fcd63b6b8 58120 live-build-cgi_3.0~a20-1_all.deb
 dc74db4c40a4966c3f710124e20e421b0308c69cc362ac9cfe8cfc4b45a7595a 1282 live-build_3.0~a20-1.dsc
 b227fd4be4088e948f8338c01c2cd79c5f0605670b91ba8d4c20607fc05618ad 1888244 live-build_3.0~a20.orig.tar.gz
 4c1bf5ab480e8788e9c3845abbe0a91b93bd981afa6276b171b7b524a6875202 41650 live-build_3.0~a20-1.debian.tar.gz
 ee20a677daf9178c2c0b0ad971283a33bd2fc8936cb82708787152ba861e5186 1129634 live-build_3.0~a20-1_all.deb
 02810265eb09b21b6bab18dae9c610fa573ba48252e76202130f43f211909ab2 58120 live-build-cgi_3.0~a20-1_all.deb
 454c16e4f46d89d261a551c68e32efb9 1282 misc optional live-build_3.0~a20-1.dsc
 71d4d7a5dc10d9860271f7a44c2c2e0c 1888244 misc optional live-build_3.0~a20.orig.tar.gz
 8bb311d0c0268bb2d6c8239fdb239bdf 41650 misc optional live-build_3.0~a20-1.debian.tar.gz
 03d8db61043497cafe626020a5e311aa 1129634 misc optional live-build_3.0~a20-1_all.deb
 4eca7df09b82de4a8e3e016b1b61cb86 58120 misc optional live-build-cgi_3.0~a20-1_all.deb

Version: GnuPG v1.4.10 (GNU/Linux)


--- End Message ---

Reply to: