Make eix available version match emerge
        Posted  
        
            by 
                Ryaner
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Ryaner
        
        
        
        Published on 2012-09-27T14:27:14Z
        Indexed on 
            2012/09/27
            15:39 UTC
        
        
        Read the original article
        Hit count: 204
        
We have out Gentoo hosts using a binhost with
EMERGE_DEFAULT_OPTS="--getbinpkgonly --usepkgonly"
in the make.conf file so that the host only pulled down the binary hosts. All works well from that side.
I use eix to check on software versions for upgrades but have hit a problem where eix will see an available version ahead of what is available on the binserver.
Using glibc as an example
ietpl [VE] / # emerge -s glibc
Searching...
[ Results for search key : glibc ]
[ Applications found : 1 ]
*  sys-libs/glibc
      Latest version available: 2.14.1-r3
      Latest version installed: 2.14.1-r3
      Homepage:
      Description:   GNU libc6 (also called glibc2) C library
      License:       LGPL-2
Then eix reports a higher version available
ietpl [VE] / # export LASTVERSION='{last}<version>{}'
ietpl [VE] / # /usr/bin/eix --nocolor --format '<category> <name> [<installedversions:LASTVERSION>] [<bestversion:LASTVERSION>] \n' --exact --category-name sys-libs/glibc
sys-libs glibc [2.14.1-r3] [2.15-r2]
What I'm after is for eix to report the latest version available as 2.14.1-r3 like emerge.
I've a feeling this is possible since without any formatting, eix returns
Available versions:  (2.2) ~2.9_p20081201-r3!s 2.10.1-r1!s 2.11.3!s ~2.12.1-r3!s 2.12.2!s{tbz2} ~2.13-r2!s 2.13-r4!s ~2.14!s ~2.14.1-r2!s 2.14.1-r3!s{tbz2} ~2.15-r1!s 2.15-r2!s ~2.15-r3!s **2.16.0!s **9999!s
correctly tagging the latest unmasked binary package with {tbz2} I would have thought that the binary flag would do it, but that returns no matches
--binary              Match packages with *.tbz2 files.
© Server Fault or respective owner