Bug 5062 - trigger scripts in deb and solaris packages are not run properly
Summary: trigger scripts in deb and solaris packages are not run properly
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Other (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.2.0
Assignee: Pierre Ossman
URL:
Keywords: derfian_tester, hean01_tester, prosaic
Depends on:
Blocks:
 
Reported: 2014-04-02 11:10 CEST by Pierre Ossman
Modified: 2014-05-05 15:50 CEST (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2014-04-02 11:10:39 CEST
The different scripts we have in our deb packages (postinst, prerm, etc.) are not run properly and therefore do not behave correctly under some circumstances. The problem is that they are converted from their RPM equivalents, but RPM and deb have different arguments for the scripts.

One prominent example is the preun/prerm script which fail to clean up icons and desktop files on Debian based systems.


One general way of solving this is to have our RPM-to-deb converter inject some magical converter code at the start of each script, that converts the argument list.
Comment 1 Pierre Ossman cendio 2014-04-02 15:48:28 CEST
Same problem with solaris.
Comment 2 Pierre Ossman cendio 2014-04-02 16:23:18 CEST
Fixed in r28792 and r28793.

Tester should verify that scripts are run on:

 - Fresh installation.

 - Upgrade.

 - Removal.
Comment 3 Henrik Andersson cendio 2014-04-07 12:28:01 CEST
Tested on Ubuntu 13.10 using build 4313. Works as intended. A bug #5071 was created due to pyc files preventing the remove of directories.
Comment 4 Karl Mikaelsson cendio 2014-04-14 14:21:02 CEST
I've verified that tlwebaccess runs its postinstall and preremove scripts on package installation, so the general approach seems to work just fine.

(4.1.1post-4323)

Note You need to log in before you can comment on or make changes to this bug.