Package: util-linux
Version: 2.20.1-5.6
Severity: normal
Tags: patch
Usertags: ppc64el

Dear Maintainer,

Now that we have a new arch called ppc64el, we need to add it to the
condition in debian/rules in order to avoid conflict with powerpc-utils.

Currently without this patch if we install powerpc-utils in a ppc64el
system, this will happens:

The following NEW packages will be installed:
  powerpc-utils
  0 upgraded, 1 newly installed, 0 to remove and 1492 not upgraded.
  Need to get 0 B/33.8 kB of archives.
  After this operation, 121 kB of additional disk space will be used.
  (Reading database ... 321350 files and directories currently
  installed.)
  Preparing to unpack .../powerpc-utils_1.1.3-24_ppc64el.deb ...
  Unpacking powerpc-utils (1.1.3-24) ...
  dpkg: error processing archive
  /var/cache/apt/archives/powerpc-utils_1.1.3-24_ppc64el.deb (--unpack):
   trying to overwrite '/usr/share/man/man8/clock.8.gz', which is also
   in package util-linux 2.20.1-5.

The attached patch solve the issue.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.13.0 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages util-linux depends on:
ii  debconf [debconf-2.0]  1.5.52
ii  dpkg                   1.17.6
ii  initscripts            2.88dsf-45
ii  install-info           5.2.0.dfsg.1-2
ii  libblkid1              2.20.1-5.6
ii  libc6                  2.18-0experimental1+updates.and.carlos.hack1
ii  libncursesw5           5.9+20140118-1
ii  libselinux1            2.2.2-1
ii  libslang2              2.2.4-16
ii  libtinfo5              5.9+20140118-1
ii  libuuid1               2.20.1-5.6
ii  lsb-base               4.1+Debian12
ii  tzdata                 2013i-1
ii  zlib1g                 1:1.2.8.dfsg-1

util-linux recommends no packages.

Versions of packages util-linux suggests:
pn  dosfstools          <none>
ii  kbd                 1.15.5-1
pn  util-linux-locales  <none>

-- Configuration Files:
/etc/init.d/hwclock.sh changed [not included]

-- debconf information excluded
diff --git a/debian/rules b/debian/rules
index 86f4452..f134319 100755
--- a/debian/rules
+++ b/debian/rules
@@ -158,7 +158,7 @@ endif
 	fi
 ifeq ($(DEB_HOST_ARCH_OS),linux)
 	install -m 644 debian/mount.fstab debian/mount/usr/share/doc/mount/examples/fstab
-ifeq ($(arch),$(findstring $(arch),powerpc ppc64))
+ifeq ($(arch),$(findstring $(arch),powerpc ppc64 ppc64el))
 	mv -f debian/util-linux/sbin/fdisk debian/util-linux/sbin/ddisk
 	mv -f debian/util-linux/usr/share/man/man8/fdisk.8 debian/util-linux/usr/share/man/man8/ddisk.8
 else

Reply via email to