Package: ruby-debian Version: 0.3.9+b6 Tags: patch Severity: minor dpkg >= 1.18.11 dropped the --print-installation-architecture option as obsolete, causing dpkg-checkdeps to throw an error on start. The attached patch replaces that call with 'dpkg --print-architecture' instead.
The exact error looks like this: dpkg: error: unknown option --print-installation-architecture Type dpkg --help for help about installing and deinstalling packages [*]; Use 'apt' or 'aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Options marked [*] produce a lot of output - pipe it through 'less' or 'more' ! Best, James -- System Information: Debian Release: 9.0 APT prefers testing APT policy: (700, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages ruby-debian depends on: ii libapt-pkg5.0 1.4~beta4 ii libc6 2.24-9 ii libgcc1 1:6.3.0-5 ii libgmp10 2:6.1.2+dfsg-1 ii libruby2.3 2.3.3-1 ii libstdc++6 6.3.0-5 ii ruby 1:2.3.3 ruby-debian recommends no packages. ruby-debian suggests no packages. -- no debconf information
From c86bc1cc028208bd5274581394cb845330c5618b Mon Sep 17 00:00:00 2001 From: James Lu <ja...@overdrivenetworks.com> Date: Tue, 7 Feb 2017 15:37:28 -0800 Subject: [PATCH] Call 'dpkg --print-architecture' instead of 'dpkg --print-installation-architecture' --print-installation-architectured was removed as obsolete in dpkg 1.18.11. --- lib/debian.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/debian.rb b/lib/debian.rb index 128e5c1..701943d 100644 --- a/lib/debian.rb +++ b/lib/debian.rb @@ -101,7 +101,7 @@ module Debian end def installation_architecture() # dpkg build time configuration? - %x{#{DPKG} --print-installation-architecture}.chomp! + %x{#{DPKG} --print-architecture}.chomp! end module_function :status, :selections, :avail module_function :listfiles, :search -- 2.11.0
signature.asc
Description: OpenPGP digital signature