[Pkg-rust-maintainers] Bootstrap of rust

Jordan Justen jljusten at gmail.com
Thu Jan 22 00:36:50 UTC 2015


On 2015-01-21 15:24:23, Luca Bruno wrote:
>  * A *BIG* warning sign on the --enable-rpath passed to configure.
>    It was a long fight to convince upstream in not using rpath, and that
>    option should be explicitly only needed when executing without installing.
>    Why was it added back to rules?

I don't think it makes sense to install all the
/usr/lib/*/rust/1.0/lib and /usr/lib/*/rust/1.0/lib/rustlib/*/lib/
libraries directly under /usr/lib/*.

I think these are internal rust libraries rather than system
libraries, so I don't think they belong in the main lib directories.

But, if rpath isn't set, then we either need to install the libraries
in /usr/lib/*, or update /etc/ld.so.conf.d.

https://lintian.debian.org/tags/package-modifies-ld.so-search-path.html
says that rpath should be used rather than updating /etc/ld.so.conf.d.

> What's the rpath on resulting artifacts?

The rustc/rustdoc binaries have rpath set to the installed libs
location.

> And on binaries compiled from that rustc?

By default they are statically linked.

You can also ask for dynamic linking and separately ask for rpath to
be set.

-Jordan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-rust-maintainers/attachments/20150121/674741b9/attachment.sig>


More information about the Pkg-rust-maintainers mailing list