Re: [gentoo-user] Latest LLVM wants to pollute my machine with VIM stuff.....

2017-03-15 Thread Nils Freydank
Am Mittwoch, 15. März 2017, 15:33:10 CET schrieb Andrew Lowe:
> Hi all,
Hi,

>   I'm still trying to come to grips with understanding ebuilds so please
> bear with me if this is a simple question. I've just sync'd and then
> done an
> 
>   emerge --ask -NuD world
> 
> I have LLVM/clang installed and upon browsing the updates saw
> app-vim/llvm-vim. This is some sort of syntax highlighting thingy for
> Vim. I don't have Vim installed so went into the llvm-4.0.0 ebuild and
> saw the line
> 
> PDEPEND="app-vim/llvm-vim
> 
> My understanding is that PDEPEND means that something, in this case
> llvm-vim, will be installed after the update of llvm - correct? If so, I
> can't see any way of "turning this off" as I don't want even more junk
> installed on my machine.
> 
>   Have I understood the ebuild correctly and it could do with a "fiddle"
> so that it doesn't force this install?
> 
>   Regards,
>   Andrew

well, I just asked in IRC on Freenode about that and a dev pointed out, that 
the new dep for vim files is actually putting files *outside* the package to 
avoid file collisions with slotted packages. So I took a look myself with 
clang < 4.0 (needed on my system anyways thanks to rust):

% equery f llvm|grep vim
/usr/share/vim
/usr/share/vim/vimfiles
/usr/share/vim/vimfiles/llvm-lit.vim
/usr/share/vim/vimfiles/llvm.vim
/usr/share/vim/vimfiles/tablegen.vim

% du -ch $(equery f llvm|grep vim) 2> /dev/null
4,0K/usr/share/vim/vimfiles/llvm-lit.vim
8,0K/usr/share/vim/vimfiles/llvm.vim
4,0K/usr/share/vim/vimfiles/tablegen.vim
16K total

So well, 16KB in sum. Funny to see the “outsourced“ ebuild is exactly the same 
size.

All in all I consider that way a bit ugly, but for this size I agree it’s 
really wasted energy [and as the mentioned dev pointed out, discussing this 
matter takes way more space than the issue itself].

Greetings,
-- 
GPG fingerprint: '00EF D31F 1B60 D5DB ADB8  31C1 C0EC E696 0E54 475B'
Nils Freydank

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Latest LLVM wants to pollute my machine with VIM stuff.....

2017-03-15 Thread Neil Bothwick
On Wed, 15 Mar 2017 22:33:10 +0800, Andrew Lowe wrote:

> I have LLVM/clang installed and upon browsing the updates saw 
> app-vim/llvm-vim. This is some sort of syntax highlighting thingy for 
> Vim. I don't have Vim installed so went into the llvm-4.0.0 ebuild and 
> saw the line
> 
> PDEPEND="app-vim/llvm-vim
> 
> My understanding is that PDEPEND means that something, in this case 
> llvm-vim, will be installed after the update of llvm - correct?

That's right.

> If so,
> I can't see any way of "turning this off" as I don't want even more
> junk installed on my machine.

It is a fixed dependency, so the ebuild maintainer considers it
compulsory.

>   Have I understood the ebuild correctly and it could do with a
> "fiddle" so that it doesn't force this install?

You can remove the dependency from the ebuild and recreate the manifest,
then one of the following may happen.

It will fail to build
It will build but fail to run
It will build and run successfully
One or more kittens/puppies will die

If only option 3 happens, copy the modified ebuild to a local overlay to
prevent the dependency being reinstated when you next sync. Then file a
bug asking for this to be controlled by a USE flag.


-- 
Neil Bothwick

Forget the Joneses...I can't keep up with The Simpsons.


pgpN0Ati910CS.pgp
Description: OpenPGP digital signature


[gentoo-user] Latest LLVM wants to pollute my machine with VIM stuff.....

2017-03-15 Thread Andrew Lowe

Hi all,
	I'm still trying to come to grips with understanding ebuilds so please 
bear with me if this is a simple question. I've just sync'd and then 
done an


emerge --ask -NuD world

I have LLVM/clang installed and upon browsing the updates saw 
app-vim/llvm-vim. This is some sort of syntax highlighting thingy for 
Vim. I don't have Vim installed so went into the llvm-4.0.0 ebuild and 
saw the line


PDEPEND="app-vim/llvm-vim

My understanding is that PDEPEND means that something, in this case 
llvm-vim, will be installed after the update of llvm - correct? If so, I 
can't see any way of "turning this off" as I don't want even more junk 
installed on my machine.


	Have I understood the ebuild correctly and it could do with a "fiddle" 
so that it doesn't force this install?


Regards,
Andrew