On Thu, 17 Sep 2009 00:46:43 -0700
Steve Langasek <[email protected]> wrote:
> On Thu, Sep 17, 2009 at 12:36:41AM -0700, Steve Langasek wrote:
> > Package: libmono-addins0.2-cil
> > Version: 0.4-5
> > Severity: grave
> > Justification: renders package unusable
>
> > mono-gac is failing to upgrade because of a problem with
> > libmono-addins0.2-cil and libmono-addins-gui0.2-cil:
>
> > Setting up mono-gac (2.4.2.3+dfsg-1) ...
> > [...]
> > * Installing 1 assembly from libndesk-dbus-glib1.0-cil into Mono
> > !
> > Assembly
> > /usr/share/cli-common/policies.d/libmono-addins-gui0.2-cil/policy.0.2.Mono.Addins.Gui.dll
> > does not exist !
> > Assembly
> > /usr/share/cli-common/policies.d/libmono-addins0.2-cil/policy.0.2.Mono.Addins.dll
> > does not exist !
> > Assembly
> > /usr/share/cli-common/policies.d/libmono-addins0.2-cil/policy.0.2.Mono.Addins.Setup.dll
> > does not exist dpkg: error processing mono-gac (--configure):
> > subprocess installed post-installation script returned error exit
> > status 3
>
> This was caused by orphaned files
> under /usr/share/cli-common/packages.d:
>
> /usr/share/cli-common/packages.d/policy.0.2.Mono.Addins.Setup.installcligac
> /usr/share/cli-common/packages.d/policy.0.2.Mono.Addins.installcligac
> /usr/share/cli-common/packages.d/policy.0.2.Mono.Addins.Gui.installcligac
>
> $
> cat /usr/share/cli-common/packages.d/policy.0.2.Mono.Addins.Gui.installcligac
> /usr/share/cli-common/policies.d/libmono-addins-gui0.2-cil/policy.0.2.Mono.Addins.Gui.dll
> $
>
> I don't know where these files came from.
This issue is giving me a dejavu of #457205
mono-addins (0.3-2) unstable; urgency=low
* Users upgrading from mono-addins << 0.3-1 to 0.3.1 to 0.3-2 please
read the bugreport of #458443, as that contains info how to
unbreak the mono-gac / mono-addins upgrade!
* debian/control:
+ Fixed typo in package short description. (Closes: #457205)
* debian/libmono-addins0.2-cil.postinst
debian/libmono-addins-gui0.2-cil.postinst:
+ Remove left over GAC policy files, missed by cli-common(-dev)
debhelper maintainer script magic in 0.3~svn.r90520-1 to 0.3-1
upgrade caused by a bug of dh_cligacpolicy in cli-common-dev <<
0.5.4. (Closes: #458443)
* debian/libmono-addins0.2-cil.cligacpolicy
debian/libmono-addins-gui0.2-cil.cligacpolicy:
+ Dropped, unused since 0.3-1.
-- Mirco Bauer <[email protected]> Tue, 01 Jan 2008 21:05:54 +0100
So I guess that you installed << 0.3-1 and then 0.3-1 but never
upgraded since then? I wonder if I should relax the condition when
the left-over fails should be deleted... in all cases a failing remove
(postrm) of 0.3-1 can't be prevented, as it's already present (if
installed)...
The fix code after postinst of 0.3-1 passes looks like this:
# policy files that were not removed in 0.3~svn.r90520-1 to 0.3-1 upgrade
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" "<=" "0.3-2"; then
if [ -f
/usr/share/cli-common/packages.d/policy.0.2.Mono.Addins.installcligac ]; then
echo "Removing forgotten GAC policy file: Mono.Addins 0.2..."
/usr/share/cli-common/policy-remove Mono.Addins 0.2
fi
if [ -f
/usr/share/cli-common/packages.d/policy.0.2.Mono.Addins.Setup.installcligac ];
then
echo "Removing forgotten GAC policy file: Mono.Addins.Setup
0.2..."
/usr/share/cli-common/policy-remove Mono.Addins.Setup 0.2
fi
fi
The bug is only triggered when mono-gac is upgraded after 0.3-1 was
installed.
I am not totally happy with the solution because there are cases where
it will still fail, like in your case. Do you think there is a better
way to solve this?
--
Regards,
Mirco 'meebey' Bauer
PGP-Key ID: 0xEEF946C8
FOSS Developer [email protected] http://www.meebey.net/
PEAR Developer [email protected] http://pear.php.net/
Debian Developer [email protected] http://www.debian.org/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]