Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

How to "adjust" euse".


Sandro

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 New...