Jump to content
funtoo forums
  • 0
Sandro

How to "adjust" euse".

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.

Share this post


Link to post
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

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×