Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rc-update & bashcomp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2728
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Sun Jul 08, 2018 7:18 pm    Post subject: rc-update & bashcomp Reply with quote

It's been a while since the last time I had to use rc-update and today I was surprised that the bash completion on update-rc did not work.

I came across this post https://forums.gentoo.org/viewtopic-t-1070010-view-previous.html?sid=89f26f834a31b3c45bda9ced9af063e2 where you can see that there are these files in the gentoo-bashcomp package:

Code:

/usr/share/bash-completion/completions/rc
/usr/share/bash-completion/completions/rc-service
/usr/share/bash-completion/completions/rc-status
/usr/share/bash-completion/completions/rc-update


If I execute equery f gentoo-bashcomp, I cannot see them in the list. After a couple of google searches with similar keywords, I found this commit: https://gitweb.gentoo.org/proj/gentoo-bashcomp.git/commit/?id=41d0608e51e5fe3b5034de9ae3700c2490380e2e&context=9

Quote:

Remove OpenRC completions since they are provided upstream


A equery files app-shells/bash-completion nor equery files sys-apps/openrc doesn't show me any of these files, so which package is "upstream"?

So where are these bash compile files?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 20101
Location: here

PostPosted: Sun Jul 08, 2018 7:31 pm    Post subject: Reply with quote

In next version of openrc (>=0.35.5) the files are included
Code:
$ ls /var/tmp/portage/sys-apps/openrc-0.35.5/work/openrc-0.35.5/bash-completion/
Makefile  openrc  openrc-service-script  rc-service  rc-status  rc-update

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2728
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Sun Jul 08, 2018 7:57 pm    Post subject: Reply with quote

@fedeliallalinea thanks for the info
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3552
Location: Dallas area

PostPosted: Sun Jul 08, 2018 9:09 pm    Post subject: Reply with quote

Or just pull them out of the 2014 tar file and put them in the completions directory, until they get their act together. ;)


Edit to add: Although truth to tell, I don't think I ever used bash completions for any rc* related stuff.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2728
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Jul 09, 2018 12:10 am    Post subject: Reply with quote

Anon-E-moose wrote:
Or just pull them out of the 2014 tar file and put them in the completions directory, until they get their act together. ;)


I did something like that. I've went to the parent commit, download the repo as tar.gz and extracted the files from there.

Anon-E-moose wrote:

Edit to add: Although truth to tell, I don't think I ever used bash completions for any rc* related stuff.


really? At least with my configuration, portage does not put services directly in the default runlevel, I always have to execute rc-update myself.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum