Package: irda-utils Version: 0.9.16-10 Hello,
I noticed that one of my unstable laptops was not updating to latest irda-utils. This has already been reported but seems not to be fixed: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=267278 The laptop was installed from woody CD's over a year ago, before sarge was released, and used as unstable since then. Therefore I think this bug affects all irda users who upgraded from woody. The good side is, that at least on this Thinkpad t20 IrDA worked all the time and only upgrades are not being applied. I've newer played with dummy/virtual/transitional packages before, but the attached patch seems to fix the upgrade path. The patch tries to properly conflict with irda-common and irda-tools and adds them as virtual packages which depend on the latest irda-utils. In my admittedly complicated environment the result looks like this: $ apt-cache policy irda-utils irda-utils: Installed: (none) Candidate: 0.9.16-10 Version table: 0.9.16.mkr1 0 500 file: .// Packages 0.9.16-10 0 500 http://ftp.fi.debian.org testing/main Packages 990 http://ftp.fi.debian.org unstable/main Packages 0.9.16-10 0 500 file: .// Packages 0.9.16-9 0 500 http://ftp.fi.debian.org stable/main Packages $ apt-cache policy irda-common irda-common: Installed: 0.9.14-17 Candidate: 0.9.16.mkr1 Version table: 0.9.16.mkr1 0 500 file: .// Packages *** 0.9.14-17 0 500 http://ftp.fi.debian.org woody/main Packages 100 /var/lib/dpkg/status $ apt-cache policy irda-tools irda-tools: Installed: 0.9.14-17 Candidate: 0.9.16.mkr1 Version table: 0.9.16.mkr1 0 500 file: .// Packages *** 0.9.14-17 0 500 http://ftp.fi.debian.org woody/main Packages 100 /var/lib/dpkg/status # apt-get dist-upgrade -s -V -u ... Investigating irda-utils Package irda-utils has broken dep on irda-common Considering irda-common 0 as a solution to irda-utils 1 Added irda-common to the remove list Considering irda-common 0 as a solution to irda-utils 1 Package irda-utils has broken dep on irda-tools Considering irda-tools 0 as a solution to irda-utils 1 Added irda-tools to the remove list Considering irda-tools 0 as a solution to irda-utils 1 Fixing irda-utils via remove of irda-common Fixing irda-utils via remove of irda-tools ... The following packages will be REMOVED: irda-common (0.9.16.mkr1) irda-tools (0.9.16.mkr1) The following NEW packages will be installed: irda-utils (0.9.16-10) ... Remv irda-common [0.9.14-17] Remv irda-tools [0.9.14-17] ... Inst irda-utils (0.9.16-10 Debian:testing) ... Conf irda-utils (0.9.16-10 Debian:testing) ... # apt-get dist-upgrade ... $ apt-cache policy irda-utils irda-utils: Installed: 0.9.16-10 Candidate: 0.9.16-10 Version table: 0.9.16.mkr1 0 500 file: .// Packages *** 0.9.16-10 0 500 http://ftp.fi.debian.org testing/main Packages 990 http://ftp.fi.debian.org unstable/main Packages 100 /var/lib/dpkg/status 0.9.16-10 0 500 file: .// Packages 0.9.16-9 0 500 http://ftp.fi.debian.org stable/main Packages $ apt-cache policy irda-common irda-common: Installed: (none) Candidate: 0.9.16.mkr1 Version table: 0.9.16.mkr1 0 500 file: .// Packages 0.9.14-17 0 500 http://ftp.fi.debian.org woody/main Packages 100 /var/lib/dpkg/status $ apt-cache policy irda-tools irda-tools: Installed: (none) Candidate: 0.9.16.mkr1 Version table: 0.9.16.mkr1 0 500 file: .// Packages 0.9.14-17 0 500 http://ftp.fi.debian.org woody/main Packages The local repository for self compiled packages and unstable pinning complicate things a bit, so this defenately needs to be tested by someone else too. The part where apt debug complains about "broken dep" is a mystery to me. Maybe it's part of the virtual package magic? Downgrading from unstable to woody showed a problem though: # apt-get install irda-common=0.9.14-17 irda-tools=0.9.14-17 Reading package lists... Done Building dependency tree... Done Starting Starting 2 Done The following packages will be REMOVED: irda-utils The following NEW packages will be installed: irda-common irda-tools 0 upgraded, 2 newly installed, 1 to remove and 6 not upgraded. Need to get 52.4kB of archives. After unpacking 36.9kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp.fi.debian.org woody/main irda-common 0.9.14-17 [24.8kB] Get:2 http://ftp.fi.debian.org woody/main irda-tools 0.9.14-17 [27.6kB] Fetched 52.4kB in 0s (67.2kB/s) Preconfiguring packages ... Debian::DebConf::Client::ConfModule is deprecated, please use Debconf::Client::C onfModule instead. (Reading database ... 172136 files and directories currently installed.) Removing irda-utils ... Stopping IrDA service: irattach. Selecting previously deselected package irda-common. (Reading database ... 172112 files and directories currently installed.) Unpacking irda-common (from .../irda-common_0.9.14-17_i386.deb) ... Debian::DebConf::Client::ConfModule is deprecated, please use Debconf::Client::ConfModule instead. Selecting previously deselected package irda-tools. Unpacking irda-tools (from .../irda-tools_0.9.14-17_i386.deb) ... Setting up irda-common (0.9.14-17) ... Debian::DebConf::Client::ConfModule is deprecated, please use Debconf::Client::ConfModule instead. /var/lib/dpkg/info/irda-common.postinst: line 115: /etc/init.d/irda: No such file or directory dpkg: error processing irda-common (--configure): subprocess post-installation script returned error exit status 1 Setting up irda-tools (0.9.14-17) ... Errors were encountered while processing: irda-common E: Sub-process /usr/bin/dpkg returned an error code (1) But this downgrade path is not supported anyway, I suppose. -Mikko
diff -u irda-utils-0.9.16/debian/changelog irda-utils-0.9.16.mkr1/debian/changelog --- irda-utils-0.9.16/debian/changelog 2005-12-14 13:58:47.000000000 +0200 +++ irda-utils-0.9.16.mkr1/debian/changelog 2005-12-14 19:59:14.000000000 +0200 @@ -1,3 +1,11 @@ +irda-utils (0.9.16.mkr1) unstable; urgency=low + + * Try to fix woody to sarge and later upgrade path with dummy + irda-common and irda-tools packages which depend on + irda-utils. + + -- Mikko Rapeli <[EMAIL PROTECTED]> Wed, 14 Dec 2005 19:58:37 +0200 + irda-utils (0.9.16-10) unstable; urgency=low * debian/preinst: Fixed script to avoid failing when diff -u irda-utils-0.9.16/debian/control irda-utils-0.9.16.mkr1/debian/control --- irda-utils-0.9.16/debian/control 2005-12-14 13:58:47.000000000 +0200 +++ irda-utils-0.9.16.mkr1/debian/control 2005-12-14 19:58:06.000000000 +0200 @@ -8,7 +8,7 @@ Package: irda-utils Conflicts: irda-common, irda-tools Replaces: irda-common, irda-tools -Provides: irda-tools +Provides: irda-common, irda-tools Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, makedev (>= 2.3.1-66), module-init-tools Recommends: ircp, openobex-apps @@ -22,3 +22,30 @@ Authors: Dag Brattli <[EMAIL PROTECTED]> and Jean Tourrilhes <[EMAIL PROTECTED]> Homepage: http://irda.sourceforge.net + +Package: irda-common +Architecture: any +Depends: irda-utils +Description: irda-utils transitional package to fix a packaging bug + This package contains userspace utilities to manage and handle infrared + devices. It includes irattach, findchip, irdadump, irdaping and irpsion5. + OBEX tools are removed since 0.9.5. If you need to use IrOBEX, + use openobex-apps package. + . + This package is a dummy package which replaces irda-common and + irda-tools packages in woody with irda-utils package in sarge and later. + The irda-common in woody Replaces: and Conflicts: with irda-utils, + so this transitional package is required. + +Package: irda-tools +Architecture: any +Depends: irda-utils +Description: irda-utils transitional package to fix a packaging bug + This package contains userspace utilities to manage and handle infrared + devices. It includes irattach, findchip, irdadump, irdaping and irpsion5. + OBEX tools are removed since 0.9.5. If you need to use IrOBEX, + use openobex-apps package. + . + This package is a dummy package which replaces irda-common and + irda-tools packages in woody with irda-utils package in sarge and later. + The irda-common in woody Replaces: and Conflicts: with irda-utils, Only in irda-utils-0.9.16.mkr1/debian/: files Only in irda-utils-0.9.16.mkr1/debian/: irda-common Only in irda-utils-0.9.16.mkr1/debian/: irda-tools Only in irda-utils-0.9.16.mkr1/debian/: irda-utils Only in irda-utils-0.9.16.mkr1/debian/: irda-utils.postinst.debhelper Only in irda-utils-0.9.16.mkr1/debian/: irda-utils.postrm.debhelper Only in irda-utils-0.9.16.mkr1/debian/: irda-utils.prerm.debhelper Only in irda-utils-0.9.16.mkr1/debian/: irda-utils.substvars Common subdirectories: irda-utils-0.9.16/debian/po and irda-utils-0.9.16.mkr1/debian/po