Re: [gentoo-user] bad $PATH

2024-05-07 Thread Jorge Almeida
On Tue, 7 May 2024 at 15:37, Neil Bothwick  wrote:

> On Tue, 7 May 2024 13:22:47 +0100, Jorge Almeida wrote:
>
> > > Yes, of course.  When I said "emerge -c doesn't clean it"  I meant
> > > "emerge
> > -c" (without arguments). I know how to unmerge a package, which in this
> > particular case I should have done years ago, but didn't, and forgot
> > about it.
>
> Right, so we were talking at cross purposes. Apologies for the line noise.
>
> No problem. Cheers


Re: [gentoo-user] bad $PATH

2024-05-07 Thread Neil Bothwick
On Tue, 7 May 2024 13:22:47 +0100, Jorge Almeida wrote:

> > Yes, of course.  When I said "emerge -c doesn't clean it"  I meant
> > "emerge  
> -c" (without arguments). I know how to unmerge a package, which in this
> particular case I should have done years ago, but didn't, and forgot
> about it.

Right, so we were talking at cross purposes. Apologies for the line noise.


-- 
Neil Bothwick

without C people would code in Basi, Pasal and Obol


pgpGh2LN46Zaj.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] bad $PATH

2024-05-07 Thread Jorge Almeida
On Tue, 7 May 2024 at 13:10, Neil Bothwick  wrote:

> On Tue, 7 May 2024 11:32:43 +0100, Jorge Almeida wrote:
>
>
>
> Files in @world should only be wanted because you put them in there, so
> you should be able to remove them.
>
> Yes, of course.  When I said "emerge -c doesn't clean it"  I meant "emerge
-c" (without arguments). I know how to unmerge a package, which in this
particular case I should have done years ago, but didn't, and forgot about
it.

Jorge


Re: [gentoo-user] bad $PATH

2024-05-07 Thread Neil Bothwick
On Tue, 7 May 2024 11:32:43 +0100, Jorge Almeida wrote:

> > > I seem to remember I installed a long time ago. It is in the world
> > > file, hence emerge -c wouldn't clean it. I don't have csh but think
> > > I had it  
> >
> > emerge -c will remove packages that are in @world. It was probably
> > also a dependency of something else when you tried before.
> >
> Hmmm... This  would seem to contradict the man page. 

From man emerge

   --depclean, -c 
   Cleans the system by removing packages that are not
   associated with explicitly merged packages. Depclean works by
   creating the full dependency tree from the @world set, then
   comparing  it to installed packages. Packages installed, but not
   part of the dependency tree, will be uninstalled by depclean.

It is a little ambiguous in that does the dependency tree from the world
set include the world set itself?

> How would emerge -c  
> decide which packages in the world file were unwanted? Maybe you're
> thinking of slotted packages?

No, just tried it. Pick a file from @world and emerge -cpv it.

[root@phoucgh ~ 0]% grep x11vnc /var/lib/portage/world
x11-misc/x11vnc
[root@phoucgh ~ 0]% emerge -cpv x11vnc

Calculating dependencies... done!
>>> Calculating removal order...

>>> These are the packages that would be unmerged:

 x11-misc/x11vnc
selected: 0.9.16-r8 
   protected: none 
 omitted: none 

All selected packages: =x11-misc/x11vnc-0.9.16-r8

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Packages installed:   2083
Packages in world:350
Packages in system:   49
Required packages:2082
Number to remove: 1

Files in @world should only be wanted because you put them in there, so
you should be able to remove them.


-- 
Neil Bothwick

"What I need is a list of specific unknown problems we will encounter."


pgpJ1zRxuqJO9.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] bad $PATH

2024-05-07 Thread Jorge Almeida
On Tue, 7 May 2024 at 10:36, Neil Bothwick  wrote:

> On Thu, 2 May 2024 16:37:24 +0100, Jorge Almeida wrote:
>
> >
> > I seem to remember I installed a long time ago. It is in the world file,
> > hence emerge -c wouldn't clean it. I don't have csh but think I had it
>
> emerge -c will remove packages that are in @world. It was probably also a
> dependency of something else when you tried before.
>
> Hmmm... This  would seem to contradict the man page. How would emerge -c
decide which packages in the world file were unwanted? Maybe you're
thinking of slotted packages?

Jorge


Re: [gentoo-user] bad $PATH

2024-05-07 Thread Neil Bothwick
On Thu, 2 May 2024 16:37:24 +0100, Jorge Almeida wrote:

> So, it seems I have at least one package which I wouldn't expect to
> have: app-admin/xstow
> 
> I seem to remember I installed a long time ago. It is in the world file,
> hence emerge -c wouldn't clean it. I don't have csh but think I had it
> once upon a time. Removing...

emerge -c will remove packages that are in @world. It was probably also a
dependency of something else when you tried before.


-- 
Neil Bothwick

"Mmmm, trouble with grammer have I, yes?" - Yoda


pgp4VKqIbtUUd.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] bad $PATH

2024-05-02 Thread Jorge Almeida
On Thu, 2 May 2024 at 14:09, Peter Humphrey  wrote:

> On Thursday, 2 May 2024 13:55:42 BST Jorge Almeida wrote:
> > I have
> > /var/lib/bin
> > in my $PATH (both as root and as normal user)
>
> > Anyone with the same problem/weirdness?
>
> Nope. Have you tried 'grep -r var/lib/bin /etc' ?
>
> I tried now:
/etc/profile.env:export
PATH='/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin:/var/lib/bin'
/etc/environment.d/10-gentoo-env.conf:PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin:/var/lib/bin
/etc/env.d/99xstow:PATH=/var/lib/bin
/etc/csh.env:setenv PATH
'/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin:/var/lib/bin'

So, it seems I have at least one package which I wouldn't expect to
have: app-admin/xstow

I seem to remember I installed a long time ago. It is in the world file,
hence emerge -c wouldn't clean it. I don't have csh but think I had it once
upon a time. Removing...

Ok, done, and the PATH is fine now.

Thanks,

Jorge


Re: [gentoo-user] bad $PATH

2024-05-02 Thread Jorge Almeida
On Thu, 2 May 2024 at 15:07, Petr Vaněk  wrote:

> On Thu, May 02, 2024 at 01:55:42PM +0100, Jorge Almeida wrote:
> > I have /var/lib/bin in my $PATH (both as root and as normal user)
> >
> Do you have app-admin/xstow installed? This seems to be the (only)
>
Indeed, I had it in the world file, currently unused and long forgotten.
Solved..

Thanks,
Jorge


Re: [gentoo-user] bad $PATH

2024-05-02 Thread Petr Vaněk
On Thu, May 02, 2024 at 01:55:42PM +0100, Jorge Almeida wrote:
> I have /var/lib/bin in my $PATH (both as root and as normal user)
> 
> [snip] What could be setting this?  (grep /var/lib/bin /etc/conf.d/*
> returns nothing)

Do you have app-admin/xstow installed? This seems to be the (only)
package which adds /var/lib/bin to the PATH, see [1]. At least, I was
able to grep -F var/lib/bin pattern only in this package in ::gentoo
overlay.

[1] 
https://github.com/gentoo/gentoo/blob/c2fb597e863fb296b5cdaf36e8b258b20c47d4a1/app-admin/xstow/xstow-1.1.0.ebuild#L51-L52

Petr



Re: [gentoo-user] bad $PATH

2024-05-02 Thread Peter Humphrey
On Thursday, 2 May 2024 13:55:42 BST Jorge Almeida wrote:
> I have
> /var/lib/bin
> in my $PATH (both as root and as normal user)
> 
> That directory does not exist. Should it exist!?
> What could be setting this?
> (grep /var/lib/bin /etc/conf.d/* returns nothing)
> 
> Anyone with the same problem/weirdness?

Nope. Have you tried 'grep -r var/lib/bin /etc' ?

-- 
Regards,
Peter.


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


[gentoo-user] bad $PATH

2024-05-02 Thread Jorge Almeida
I have
/var/lib/bin
in my $PATH (both as root and as normal user)

That directory does not exist. Should it exist!?
What could be setting this?
(grep /var/lib/bin /etc/conf.d/* returns nothing)

Anyone with the same problem/weirdness?

Thanks

Jorge Almeida