This is not a duplicate of bug #560095, nor is it the same problem as in bug #564506 (although directhex's patch incorporates this fix). The problem here is that the postinst & postrm fragments which actually call the late-gac installer weren't being copied to the binary deb because dh_installcligac was being called after dh_installdeb.
You can verify this by running “gacutil -l | grep appindicator”. With libappindicator0-cil 0.0.19-0ubuntu3 this returns no results, because the library hasn't been installed into the GAC
└─(19:03:%)── sudo dpkg --install libappindicator0-cil_0.0.19-0ubuntu3_all.deb ──(Sat,Apr17)─┘
dpkg: warning: downgrading libappindicator0-cil from 0.0.19-0ubuntu4 to 0.0.19-0ubuntu3.
(Reading database ... 402366 files and directories currently installed.)
Preparing to replace libappindicator0-cil 0.0.19-0ubuntu4 (using libappindicator0-cil_0.0.19-0ubuntu3_all.deb) ...
Removing libappindicator0-cil from Mono
Unpacking replacement libappindicator0-cil ...
Setting up libappindicator0-cil (0.0.19-0ubuntu3) ...
┌─(raof@Ed:pts/1)──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(~)─┐
└─(19:07:%)── gacutil -l | grep appindicator ──(Sat,Apr17)─┘
┌─(raof@Ed:pts/1)──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(~)─┐
└─(1:19:07:%)── sudo dpkg --install ~/pbuilder/lucid_result/libappindicator0-cil_0.0.19-0ubuntu4_all.deb ──(Sat,Apr17)─┘
(Reading database ... 402366 files and directories currently installed.)
Preparing to replace libappindicator0-cil 0.0.19-0ubuntu3 (using .../libappindicator0-cil_0.0.19-0ubuntu4_all.deb) ...
Unpacking replacement libappindicator0-cil ...
Setting up libappindicator0-cil (0.0.19-0ubuntu4) ...
* Installing 1 assembly from libappindicator0-cil into Mono
This is not a duplicate of bug #560095, nor is it the same problem as in bug #564506 (although directhex's patch incorporates this fix). The problem here is that the postinst & postrm fragments which actually call the late-gac installer weren't being copied to the binary deb because dh_installcligac was being called after dh_installdeb.
You can verify this by running “gacutil -l | grep appindicator”. With libappindicator 0-cil 0.0.19-0ubuntu3 this returns no results, because the library hasn't been installed into the GAC
└─(19:03:%)── sudo dpkg --install libappindicator 0-cil_0. 0.19-0ubuntu3_ all.deb ──(Sat,Apr17)─┘ 0-cil from 0.0.19-0ubuntu4 to 0.0.19-0ubuntu3. 0-cil 0.0.19-0ubuntu4 (using libappindicator 0-cil_0. 0.19-0ubuntu3_ all.deb) ... 0-cil from Mono 0-cil ... 0-cil (0.0.19-0ubuntu3) ... Ed:pts/ 1)───── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ──(~)─┐ Ed:pts/ 1)───── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ──(~)─┐ lucid_result/ libappindicator 0-cil_0. 0.19-0ubuntu4_ all.deb ──(Sat,Apr17)─┘ 0-cil 0.0.19-0ubuntu3 (using .../libappindic ator0-cil_ 0.0.19- 0ubuntu4_ all.deb) ... 0-cil ... 0-cil (0.0.19-0ubuntu4) ... 0-cil into Mono
dpkg: warning: downgrading libappindicator
(Reading database ... 402366 files and directories currently installed.)
Preparing to replace libappindicator
Removing libappindicator
Unpacking replacement libappindicator
Setting up libappindicator
┌─(raof@
└─(19:07:%)── gacutil -l | grep appindicator ──(Sat,Apr17)─┘
┌─(raof@
└─(1:19:07:%)── sudo dpkg --install ~/pbuilder/
(Reading database ... 402366 files and directories currently installed.)
Preparing to replace libappindicator
Unpacking replacement libappindicator
Setting up libappindicator
* Installing 1 assembly from libappindicator
┌─(raof@ Ed:pts/ 1)───── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ──(~)─┐ bcae265d1c7ab4c 2 Ed:pts/ 1)───── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ──(~)─┐
└─(19:07:%)── gacutil -l | grep appindicator ──(Sat,Apr17)─┘
appindicator-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=
┌─(raof@
└─(19:08:%)── ──(Sat,Apr17)─┘