Jump to content

Photo

How to "adjust" euse".

- - - - -

4 replies to this topic

#1
Sandro

Sandro

    Advanced Member

  • Members
  • PipPipPip
  • 339 posts
  • LocationSaronno, Via IV Novembre, 23 21047 Italy

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.



#2
cardinal

cardinal

    Advanced Member

  • Members
  • PipPipPip
  • 233 posts

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


  • NikosAlexandris likes this

#3
Philipp Ludwig

Philipp Ludwig

    Member

  • Members
  • PipPip
  • 16 posts

I'd just would like to add that this has been reported as a bug: https://bugs.gentoo....g.cgi?id=505160

 

Apparantly, you also have the option to upgrade to gentoolkit-9999 to fix these messages (didn't try it myself).



#4
Sandro

Sandro

    Advanced Member

  • Members
  • PipPipPip
  • 339 posts
  • LocationSaronno, Via IV Novembre, 23 21047 Italy

@ Cardinal: uhm doesn't function.

 

@ Philipp Ludwig: Ok ...i've comprised !

 

Thanx ! I'll wait the bug solution !

 

Ciao :)



#5
NikosAlexandris

NikosAlexandris

    Advanced Member

  • Members
  • PipPipPip
  • 58 posts
  • LocationSwitzerland

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!


Nikos Alexandris | Remote Sensing *
GPG Key Fingerprint 6F9D4506F3CA28380974D31A9053534B693C4FB3




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users