Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651070 - app-portage/genlop-0.30.9-r1: The bash_completion uses old /etc/make.globals and /etc/make.conf paths
Summary: app-portage/genlop-0.30.9-r1: The bash_completion uses old /etc/make.globals ...
Status: RESOLVED DUPLICATE of bug 434574
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-21 13:13 UTC by Horst Prote
Modified: 2018-10-31 15:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Horst Prote 2018-03-21 13:13:42 UTC
The /usr/share/bash-completion/completions/genlop uses old /etc/make.globals and /etc/make.conf paths.

Reproducible: Always

Steps to Reproduce:
Type
  genlop -t www-cli<TAB>
Actual Results:  
You get the message
  bash: /etc/make.globals: No such file or directory
  bash: /etc/make.conf: No such file or directory
and there is no completion.


Expected Results:  
Completion to
  genlop -t www-client/

This is caused by the lines
    portagedir="$( (source /etc/make.globals
                    source /etc/make.conf
                    echo ${PORTDIR}) )"
in /usr/share/bash-completion/completions/genlop and could be fixed by changing these lines to
    portagedir="$(portageq get_repo_path $(portageq envvar EROOT) gentoo)"

Maybe one could search not only gentoo but all repos with a similar solution as in Bug 505160.
Comment 1 Horst Prote 2018-10-31 15:54:10 UTC
Don't know why I overlooked Bug 434574. Its solution is included in genlop-0.30.10-r1 and works but as "'portageq envvar PORTDIR' is deprecated." it will cease to work in the future.

*** This bug has been marked as a duplicate of bug 434574 ***