[Pkg-rust-maintainers] Bootstrap of rust

Luca Bruno lucab at debian.org
Thu Jan 22 21:50:40 UTC 2015


On Wednesday 21 January 2015 16:36:50 Jordan Justen wrote:
> 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.

No, or at least not all of them are (I think they were more clearly separated 
some time ago). For example libstd, libflate, libgraphivz are runtime libs
and mini-crates useful by themself, which just happen to be shipped with 
rustc.

(in theory we'll later split a "rustc" and "rust-runtime-1.0.0" binpkgs).

Upstream binaries, for example, will install them all under /usr/local/lib/.

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

Indeed, it is my understanding that they should directly go in /usr/lib/* 
(at least the runtime ones). 
Otherwise, you will be forced to always compile binaries statically or with
rpaths (which is something we don't really like) and Debian will be basically 
not providing the rust runtime for dynamic binaries.

In this specific case, I think that the binary upstream provides for 
installation is what we (roughly) want to follow. I've opened another thread 
to discuss that in details, as some of the reasoning behind current packaging 
is not completely clear to me.

-- 
 .''`.  ** Debian GNU/Linux **  | Luca Bruno (kaeso)
: :'  :   The Universal O.S.    | lucab (AT) debian.org
`. `'`                          | GPG Key ID: 0x4F3BBEBF
  `-     http://www.debian.org 	| Debian GNU/Linux Developer



More information about the Pkg-rust-maintainers mailing list