Jump to content
  • 0

How to "adjust" euse".


Sandro
 Share

Question

Hi .... forgive me for my ignorance :(

 

I'd like to know how to solve this: for example:

ci74771ht ~ # euse -P plasma
WARNING: 'portageq envvar PORTDIR' is deprecated. Use any of 'get_repos, get_repo_path, repos_config' instead.
WARNING: 'portageq envvar PORTDIR' is deprecated. Use any of 'get_repos, get_repo_path, repos_config' instead.
WARNING: 'portageq envvar PORTDIR' is deprecated. Use any of 'get_repos, get_repo_path, repos_config' instead.
WARNING: Use flag "plasma" is not set globally

which commands are necesary to not use "deprecated" ?

 

Thanks.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Open /usr/bin/euse as root in text editor.
Comment line 723,add bold text and save.
#eval $(portageq envvar -v PORTDIR)
: ${PORTDIR="$(portageq get_repo_path $(portageq envvar EROOT) gentoo)"}
 

get_portdir() {                                                                                                                                              
        # Use a subshell so we don't have to protect the variables in                                                                                        
        # the current scope                                                                                                                                  
        (                                                                                                                                                    
                #eval $(portageq envvar -v PORTDIR)                                                                                                          
                : ${PORTDIR="$(portageq get_repo_path $(portageq envvar EROOT) gentoo)"}                                                                     
                echo "${PORTDIR}"                                                                                                                            
        )                                                                                                                                                    
} # }}}                                                                                                 

Reference: https://goo.gl/WXOGhM

Link to comment
Share on other sites

  • 0

Open /usr/bin/euse as root in text editor.

Comment line 723,add bold text and save.

#eval $(portageq envvar -v PORTDIR)

: ${PORTDIR="$(portageq get_repo_path $(portageq envvar EROOT) gentoo)"}

 

get_portdir() {                                                                                                                                              
        # Use a subshell so we don't have to protect the variables in                                                                                        
        # the current scope                                                                                                                                  
        (                                                                                                                                                    
                #eval $(portageq envvar -v PORTDIR)                                                                                                          
                : ${PORTDIR="$(portageq get_repo_path $(portageq envvar EROOT) gentoo)"}                                                                     
                echo "${PORTDIR}"                                                                                                                            
        )                                                                                                                                                    
} # }}}                                                                                                 

Reference: https://goo.gl/WXOGhM

 

Works for me!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...