[CentOS-devel] rpm and ls.do issues

Yury V. Zaytsev yury at shurup.com
Mon Feb 25 08:03:16 UTC 2013


On Mon, 2013-02-25 at 16:40 +0900, Oleg Tsarev wrote:
> 
> The question which I try to understand: do we need update
> LD_LIBRARY_PATH for our binaries? As far I can see, ldd show correct
> pathes to boost.

This has nothing to do with packaging per se.

The reason why ldd shows correct paths is because your software is most
probably linked with libtool or any other linking wrapper that was smart
enough to realize that the binaries are being linked against the
libraries that reside outside of the standard loader search path, and
therefore hardcoded an RPATH right inside the binaries pointing to your
particular library tree.

So to answer your question, as long as you keep your copy of boost
outside the standard loader search path, you can rely on RPATH and
everything will work automagically.

As soon as you are willing to provide libraries usable by other
software, you should, of course, take care of running ldconfig from your
SPECs in the corresponding sections (%post and %postun, for instance),
and manage /etc/ld.so.conf.d files if you have them in non-standard
locations.

In your case, obviously, you shouldn't do any of this, and keep your
boost private to your software, because otherwise, you are going to
break CentOS base packages that rely on boost.

-- 
Sincerely yours,
Yury V. Zaytsev





More information about the CentOS-devel mailing list