Should i rebuild a dependent lib after system update?

我只是一个虾纸丫 提交于 2019-12-02 16:04:43

问题


I have some fear when i update my system libraries. For example, i made make && make install for a custom lib (i.e. libhell, there is no this library in repo) that depends on libssl-dev>0.5. Then apt offers me to update libssl-dev. Should i rebuild libhell against new libssl-dev?

Always it worked fine after updates and without rebuilds, but what about binary safety? All the time i build own packages on bin-dist systems i feel i'm doing something wrong...


回答1:


This is why package systems exist.

If your libhell binary library is dynamic library (that is a libhell.so shared object, with position independent code) and if the dependency libssl-dev didn't change its API (e.g. if its version number didn't change), then you don't need to recompile and reinstall your libhell.

If you feel that your libhell depends upon a changed feature (or data) of libssl-dev then you should recompile it.

Better recompile your libhell more often than needed.

See also the Program Library Howto



来源:https://stackoverflow.com/questions/10269776/should-i-rebuild-a-dependent-lib-after-system-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!