pkgsrc-Users archive

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

Re: Surprised that editors/emacs26 has rust as a dependency



Greg Troxel <gdt%lexort.com@localhost> wrote:

> Thomas Klausner <tk%giga.or.at@localhost> writes:
> 
> > On Sat, Aug 24, 2019 at 08:02:41AM +0000, Christopher Pinon wrote:
> >> Hi,
> >> 
> >> I'm on NetBSD-8.1 amd64, using an updated pkgsrc stable.
> >> 
> >> I started to compile editors/emacs26 (emacs26-26.2) last night and saw
> >> that it has rust as a dependency, which surprised me! When I compiled
> >> emacs26-26.1 back in April using pkgsrc-2019Q1, rust wasn't a
> >> dependency.
> >> 
> >> Last night, I cut the compilation process short because I didn't want to
> >> wait for rust to compile, but I'm wondering: why rust as a dependency?
> >> (I haven't yet tried to look into this.)
> >
> > emacs uses librsvg, parts of which have been written in rust.
> >
> > You can set
> > LIBRSVG_TYPE=c
> > to use the older librsvg version that is completely in C, or turn
> > off the svg option in emacs.
> 
> I wonder if we should make svg default off in emacs.  How many people
> actually use that?
> 
> (It's amusing that while emacs sort of seems bloated, it is small
> compared to rust.)

Indeed. Last night, I thought to myself, let me quickly compile emacs26
before going to bed, and very soon I saw that I was downloading a huge
rust source file! Suddenly, the compilation promised to be much-much
longer than I had expected. :-(

I would be in favor of making svg default off for emacs together with a
note that svg would require rust.

I've just taken a look and librsvg has included rust code since version
2.41.0 from January 2017, so it probably makes sense to just accept that
rust is the new reality for librsvg.

C.


Home | Main Index | Thread Index | Old Index