[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Adding a symlink to a library in postinst

Dear Mentors,

The package I'm maintaining (moodle) is handling embedded libraries by
not shipping them in a binary package and then replacing them with a
symlink. Adding symlink is done in postinst, e.g.:
[ ! -h /usr/share/moodle/lib/yui ] && ln -s /usr/share/javascript/yui

This seems to be the best way to handle this but I'm wondering why is it
done in postinst script. Removing bundled libraries is done while
building the package (in debian/rules), I think I could simply create a
symlink at this point and "ship" it as part of the package.

Do you see any problem with it?


Reply to: