portversion vs. pkg_version ungleicher Output

lockdoc

Well-Known Member
Der Updatewahn haelt weiter an und ich wollte grad mal kucken wie das System so aussieht und siehe da, die beiden Programme geben mir verschiedene Ergebnisse.

Warum ist das so?

Code:
> portversion -v | grep "<"
skype-2.0.0.72,1            <  needs updating (port has 2.1.0.81,1)

Code:
> pkg_version -v | grep "<"
pkg_version -v | grep "<"
chromium-11.0.696.57_1              <   needs updating (port has 11.0.696.68)
gcc-4.4.7.20110426                  <   needs updating (port has 4.4.7.20110503)
gcc-4.5.4.20110428                  <   needs updating (port has 4.5.4.20110505)
gmp-5.0.1                           <   needs updating (port has 5.0.2)
goldendict-1.0.1                    <   needs updating (port has 1.0.1_1)
gsl-1.14                            <   needs updating (port has 1.15)
gstreamer-0.10.32                   <   needs updating (port has 0.10.33)
gstreamer-plugins-0.10.32,3         <   needs updating (port has 0.10.33,3)
gstreamer-plugins-a52dec-0.10.17,3  <   needs updating (port has 0.10.18,3)
gstreamer-plugins-bad-0.10.21,3     <   needs updating (port has 0.10.22,3)
gstreamer-plugins-cdparanoia-0.10.32,3  <   needs updating (port has 0.10.33,3)
gstreamer-plugins-dts-0.10.21,3     <   needs updating (port has 0.10.22,3)
gstreamer-plugins-dvd-0.10.17,3     <   needs updating (port has 0.10.18,3)
gstreamer-plugins-faad-0.10.21,3    <   needs updating (port has 0.10.22,3)
gstreamer-plugins-flac-0.10.27,3    <   needs updating (port has 0.10.29,3)
gstreamer-plugins-gconf-0.10.27,3   <   needs updating (port has 0.10.29,3)
gstreamer-plugins-gnomevfs-0.10.32,3  <   needs updating (port has 0.10.33,3)
gstreamer-plugins-good-0.10.27,3    <   needs updating (port has 0.10.29,3)
gstreamer-plugins-jpeg-0.10.27,3    <   needs updating (port has 0.10.29,3)
gstreamer-plugins-libpng-0.10.27,3  <   needs updating (port has 0.10.29,3)
gstreamer-plugins-mad-0.10.17,3     <   needs updating (port has 0.10.18,3)
gstreamer-plugins-ogg-0.10.32,3     <   needs updating (port has 0.10.33,3)
gstreamer-plugins-pango-0.10.32,3   <   needs updating (port has 0.10.33,3)
gstreamer-plugins-soundtouch-0.10.21,3  <   needs updating (port has 0.10.22,3)
gstreamer-plugins-theora-0.10.32,3  <   needs updating (port has 0.10.33,3)
gstreamer-plugins-ugly-0.10.17,3    <   needs updating (port has 0.10.18,3)
gstreamer-plugins-vorbis-0.10.32,3  <   needs updating (port has 0.10.33,3)
gstreamer-plugins-xvid-0.10.21,3    <   needs updating (port has 0.10.22,3)
inkscape-0.48.1                     <   needs updating (port has 0.48.1_1)
lzo2-2.04                           <   needs updating (port has 2.05)
mDNSResponder-214.3.2_1             <   needs updating (port has 258.14)
mpfr-3.0.0                          <   needs updating (port has 3.0.1)
mysql-client-5.5.11                 <   needs updating (port has 5.5.12)
neon29-0.29.5                       <   needs updating (port has 0.29.6)
p5-IO-Socket-SSL-1.40               <   needs updating (port has 1.43)
pciids-20110422                     <   needs updating (port has 20110426)
qt4-assistant-4.7.2                 <   needs updating (port has 4.7.3)
qt4-clucene-4.7.2                   <   needs updating (port has 4.7.3)
qt4-corelib-4.7.2                   <   needs updating (port has 4.7.3)
qt4-dbus-4.7.2                      <   needs updating (port has 4.7.3)
qt4-declarative-4.7.2               <   needs updating (port has 4.7.3)
qt4-designer-4.7.2                  <   needs updating (port has 4.7.3)
qt4-doc-4.7.2                       <   needs updating (port has 4.7.3)
qt4-gui-4.7.2                       <   needs updating (port has 4.7.3)
qt4-help-4.7.2                      <   needs updating (port has 4.7.3)
qt4-iconengines-4.7.2               <   needs updating (port has 4.7.3)
qt4-imageformats-4.7.2              <   needs updating (port has 4.7.3)
qt4-inputmethods-4.7.2              <   needs updating (port has 4.7.3)
qt4-linguist-4.7.2                  <   needs updating (port has 4.7.3)
qt4-moc-4.7.2                       <   needs updating (port has 4.7.3)
qt4-network-4.7.2_1                 <   needs updating (port has 4.7.3)
qt4-opengl-4.7.2                    <   needs updating (port has 4.7.3)
qt4-qmake-4.7.2                     <   needs updating (port has 4.7.3)
qt4-qt3support-4.7.2                <   needs updating (port has 4.7.3)
qt4-qtestlib-4.7.2                  <   needs updating (port has 4.7.3)
qt4-rcc-4.7.2                       <   needs updating (port has 4.7.3)
qt4-script-4.7.2                    <   needs updating (port has 4.7.3)
qt4-scripttools-4.7.2               <   needs updating (port has 4.7.3)
qt4-sql-4.7.2                       <   needs updating (port has 4.7.3)
qt4-sqlite-plugin-4.7.2             <   needs updating (port has 4.7.3)
qt4-svg-4.7.2                       <   needs updating (port has 4.7.3)
qt4-uic-4.7.2                       <   needs updating (port has 4.7.3)
qt4-webkit-4.7.2                    <   needs updating (port has 4.7.3)
qt4-xml-4.7.2                       <   needs updating (port has 4.7.3)
qt4-xmlpatterns-4.7.2               <   needs updating (port has 4.7.3)
skype-2.0.0.72,1                    <   needs updating (port has 2.1.0.81,1)
wxgtk2-2.8.11                       <   needs updating (port has 2.8.12)
wxgtk2-common-2.8.11                <   needs updating (port has 2.8.12)
wxgtk2-unicode-2.8.11               <   needs updating (port has 2.8.12)

Ich hab portversion natuerlich noch ein paar mal rennen lassen, aber er scheint sehr sparsam mit der Information bzgl. der Updates zu sein.
 
Ich benutzte beide Tool nicht wirklich. Daher kann ich falsch liegen.
  • pkg_version bezieht sich auf Pakete und prüft zuerst gegen die auf den Paket-Server liegende Version (und erst wenn kein Paket gefunden wurde gegen den lokalen Index
  • portversion auf den lokalen Ports-Baum (INDEX-*)

Wenn jetzt dein lokaler Portsbaum veraltet ist, meldet dieser natürlich nur wenige neue Versionen.

mousaka
 
Ich nutze diese tools auch nicht, wie mousaka schon sagt, kann er damit auch Recht haben.
Habe seit je her vor dem Udate erst meinen Portstree per csup aus der Basis (früher cvsup aus den Ports) aktualisiert, danach mit portupgrade -an geschaut, was neu zu bauen ist. Zusätzlich pipe ich die ausgabe von portupgrade noch in eine Textdatei per portupgrade -an | tee upgrade.txt, im Fall des Falles mal ein Port gebaut wird aber nicht funktioniert, kann ich dann sehen ob dieser Port frisch gebaut wurde oder nur eine Abhängigkeit gebaut wurde, die dann irgendwie nicht mitspielt.
 
portsnap fetch update && portversion -c > ~/update.sh && sh ~/update.sh

Sollte Deine Fragen beantworten (nach ein paar Kompilierorgien).
 
@moonlook

also unter /usr/ports hatte ich schon ein frisches make update gemacht, wass deinem portsnap fetch update ja gleich kommt. Den 2. Teil deines Befehls interpretiere ich so, dass ich automatisch diejenigen Ports update, welche ich oben geostet habe. Danach ist mein System wieder auf dem neuesten Stand. Aber wo beantwortet es denn meine Fragen?
 
wenn du mittels csup oder cvsup den Portstree aktuell hältst, wie anzunehmen, kann
make index
oder
make fetchindex
ausgeführt unter /usr/ports nach dem update Wunder bewirken ;) .

portversion fragt meines Wissens die dadurch generierte oder runtergeladene iINDEX*.db ab.
IMHO ensteht deine Differenz durch eine nicht aktuelle INDEX-*.db und Ausgebe von pkg_version ist korrekt.


pkg_version wird übrigens enorm schneller wenn es die die INDEX-* abfragen kann, die dafür notwendigen Schalter sind
pkg_version -vIL=

hth
 
Danke sehr!

Das Problem war in der tat der Index. ein make fetchindex hat es geloest und pkg_version und portversion sind wieder synchron.
 
Zurück
Oben