Trouble with upgrading ports...

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default Trouble with upgrading ports...

    Hello,

    I am having difficulty upgrading ports on all my freebsd 5.3-stable
    machines. They all have been cvsup'd and built within the last few days.

    But for the last week, maybe two... something strange has been (not)
    happening. Portversion no longer correctly reports what ports need
    updating. But if I do a 'portupgrade -arR', the appropriate things get
    upgraded.... and then later it says they 'succeed' the port!?! It feels
    like the INDEX is not getting update at all, or something.

    I have a script (attached) to update my system sources. I then
    portupgrade, or buildworld whenever I feel like it. It has ben working
    fine for quite sometime. Maybe the script is bad and I was bound to
    mess my machines up. Not sure.

    Either way... If I delete my INDEX and then 'make fetchindex'... things
    don't resolve themselves. I'm really not sure where the problem is. I
    was hoping someone could point me in the right direction. Below is an
    example of the behavior I am seeing. This is happening on three
    machines (all using the same scripts... and me).

    fangorn# cd /usr/ports
    fangorn# rm INDEX-5
    fangorn# rm INDEX.db
    fangorn# make fetchindex
    INDEX-5.bz2 100% of 614 kB 366 kBps
    fangorn# portsdb -u
    [Updating the portsdb <format:bdb1_btree> in /usr/ports ... - 12376 port
    entries found
    ..........1000.........2000.........3000.........4 000.........5000.........6000.........7000........ .8000.........9000.........10000.........11000.... .....12000...
    ...... done]
    fangorn# portversion -v -L "="
    ImageMagick-6.1.9.4 > succeeds port (port has 6.1.9.2)
    bitstream-vera-1.10_1 > succeeds port (port has 1.10)
    docbook-xsl-1.68.1 > succeeds port (port has 1.68.0)
    dri-6.2.1,2 > succeeds port (port has 6.2_2,2)
    emacs-21.3_4 > succeeds port (port has 21.3_3)
    gnutls-1.0.24_1 > succeeds port (port has 1.0.24)
    libfpx-1.2.0.11 > succeeds port (port has 1.2.0.9_1)
    fangorn# portupgrade -narR
    ---> Session started at: Sun, 20 Feb 2005 22:25:46 -0600
    ** No need to upgrade 'dagrab-0.3.5_1' (>= dagrab-0.3.5_1). (specify -f
    to force)
    <snip>
    ** No need to upgrade 'gkrellm-2.2.4_1' (>= gkrellm-2.2.4_1). (specify
    -f to force)
    ---> Listing the results (+:done / -:ignored / *:skipped / !:failed)
    - audio/dagrab (dagrab-0.3.5_1)
    - textproc/xmlcatmgr (xmlcatmgr-2.2)
    <snip>
    - graphics/imlib2 (imlib2-1.1.2_1)
    + devel/libast (libast-0.5_1) <--- This DOES need upgrade
    - textproc/jade (jade-1.2.1_9)
    - www/firefox (firefox-1.0_7,1)
    - x11-wm/fluxconf (fluxconf-0.9.7_1)
    - sysutils/gkrellm2 (gkrellm-2.2.4_1)
    ---> Packages processed: 1 done, 168 ignored, 0 skipped and 0 failed
    ---> Session ended at: Sun, 20 Feb 2005 22:26:18 -0600 (consumed 00:00:32)
    fangorn# exit

    Everything that portversion reports as suceeding the ports, DOES. But
    it shouldn't since the script updates the ports and THEN upgrades those
    installed. Portupgrade correctly realizes that devel/libast requires an
    upgrade... portversion does not.

    I've looked in the past posts, handbook, man pages, UPDATING, various
    READMEs.... but really not sure what I'm looking for at this point.

    Thanks in advance.
    --
    Regards,
    Eric

    #!/bin/sh

    # Get all new source!
    echo
    echo "------------------------------------------------"
    echo "Grabbing source, docs, and ports..."
    echo "------------------------------------------------"
    cvsup -g -L 1 /root/update/my-supfile

    echo
    echo "------------------------------------------------"
    echo "Updating documentation..."
    echo "------------------------------------------------"
    cd /usr/doc
    export DOC_LANG=en_US.ISO8859-1
    echo "Output to /dev/null..."
    make install > /dev/null
    echo "Done with docs."

    echo
    echo "------------------------------------------------"
    echo "Updating ports index..."
    echo "------------------------------------------------"
    cd /usr/ports
    make fetchindex
    portsdb -u

    echo
    echo "------------------------------------------------"
    echo "Checking package registry..."
    echo "------------------------------------------------"
    pkgdb -F

    echo
    echo "------------------------------------------------"
    echo "Cleaning port distfiles..."
    echo "------------------------------------------------"
    portsclean -CDD

    echo
    echo "------------------------------------------------"
    echo "Fetching distfiles for ports..."
    echo "------------------------------------------------"
    portupgrade -aFR

    echo
    echo "------------------------------------------------"
    echo "Take note of the following ports..."
    echo "------------------------------------------------"
    portversion -v -L "="

    echo
    echo "------------------------------------------------"
    echo "Feel free to build world or update your ports!"
    echo "Finished at `/bin/date`."
    echo "------------------------------------------------"
    echo


    Eric Schuele Guest

  2. Similar Questions and Discussions

    1. FTP ports necessary
      I am having trouble figuring out FTP ports necessary to publish on the web server. If I open the firewall to allow anything Contribute works just...
    2. No ports without ftp ?
      Hello guys ! I'm on a LAN which has the ftp port blocked. Is there any chance for me to install aplications from ports ? Thank you ! ...
    3. TCP/IP ports in use
      Is there any command to list the TCP/IP ports are alreday in use? Thanks
    4. com/lpt/ps2 ports
      Hi! Can director 'deal' with the computer's ports?
    5. UDP ports
      I have a program that requires UDP ports 3000 through 4000 and lately it has trouble accessing a server through those ports apparently...my browser...
  3. #2

    Default Re: Trouble with upgrading ports...

    On Sunday 20 February 2005 09:00 pm, Eric Schuele wrote:
    > Hello,
    >
    > I am having difficulty upgrading ports on all my freebsd 5.3-stable
    > machines. They all have been cvsup'd and built within the last few
    > days.
    >
    > But for the last week, maybe two... something strange has been (not)
    > happening. Portversion no longer correctly reports what ports need
    > updating. But if I do a 'portupgrade -arR', the appropriate things
    > get upgraded.... and then later it says they 'succeed' the port!?!
    > It feels like the INDEX is not getting update at all, or something.
    >
    > I have a script (attached) to update my system sources. I then
    > portupgrade, or buildworld whenever I feel like it. It has ben
    > working fine for quite sometime. Maybe the script is bad and I was
    > bound to mess my machines up. Not sure.
    >
    > Either way... If I delete my INDEX and then 'make fetchindex'...
    > things don't resolve themselves. I'm really not sure where the
    > problem is. I was hoping someone could point me in the right
    > direction. Below is an example of the behavior I am seeing. This is
    > happening on three machines (all using the same scripts... and me).
    >
    > fangorn# cd /usr/ports
    > fangorn# rm INDEX-5
    > fangorn# rm INDEX.db
    > fangorn# make fetchindex
    > INDEX-5.bz2 100% of 614 kB 366
    > kBps fangorn# portsdb -u
    > [Updating the portsdb <format:bdb1_btree> in /usr/ports ... - 12376
    > port entries found
    > .........1000.........2000.........3000.........40 00.........5000....
    >.....6000.........7000.........8000.........9000. ........10000........
    >.11000.........12000... ..... done]
    > fangorn# portversion -v -L "="
    > ImageMagick-6.1.9.4 > succeeds port (port has 6.1.9.2)
    > bitstream-vera-1.10_1 > succeeds port (port has 1.10)
    > docbook-xsl-1.68.1 > succeeds port (port has 1.68.0)
    > dri-6.2.1,2 > succeeds port (port has 6.2_2,2)
    > emacs-21.3_4 > succeeds port (port has 21.3_3)
    > gnutls-1.0.24_1 > succeeds port (port has 1.0.24)
    > libfpx-1.2.0.11 > succeeds port (port has 1.2.0.9_1)
    > fangorn# portupgrade -narR
    > ---> Session started at: Sun, 20 Feb 2005 22:25:46 -0600
    > ** No need to upgrade 'dagrab-0.3.5_1' (>= dagrab-0.3.5_1). (specify
    > -f to force)
    > <snip>
    > ** No need to upgrade 'gkrellm-2.2.4_1' (>= gkrellm-2.2.4_1).
    > (specify -f to force)
    > ---> Listing the results (+:done / -:ignored / *:skipped / !:failed)
    > - audio/dagrab (dagrab-0.3.5_1)
    > - textproc/xmlcatmgr (xmlcatmgr-2.2)
    > <snip>
    > - graphics/imlib2 (imlib2-1.1.2_1)
    > + devel/libast (libast-0.5_1) <--- This DOES need upgrade
    > - textproc/jade (jade-1.2.1_9)
    > - www/firefox (firefox-1.0_7,1)
    > - x11-wm/fluxconf (fluxconf-0.9.7_1)
    > - sysutils/gkrellm2 (gkrellm-2.2.4_1)
    > ---> Packages processed: 1 done, 168 ignored, 0 skipped and 0 failed
    > ---> Session ended at: Sun, 20 Feb 2005 22:26:18 -0600 (consumed
    > 00:00:32) fangorn# exit
    >
    > Everything that portversion reports as suceeding the ports, DOES.
    > But it shouldn't since the script updates the ports and THEN upgrades
    > those installed. Portupgrade correctly realizes that devel/libast
    > requires an upgrade... portversion does not.
    >
    > I've looked in the past posts, handbook, man pages, UPDATING, various
    > READMEs.... but really not sure what I'm looking for at this point.
    >
    > Thanks in advance.
    sysutils/portmanager can upgrade those ports and does not need the INDEX
    file to do so.

    -Mike
    Michael C. Shultz Guest

  4. #3

    Default Re: Trouble with upgrading ports...

    On Sun, Feb 20, 2005 at 11:00:37PM -0600, Eric Schuele wrote:
    > Hello,
    >
    > I am having difficulty upgrading ports on all my freebsd 5.3-stable
    > machines. They all have been cvsup'd and built within the last few days.
    >
    > But for the last week, maybe two... something strange has been (not)
    > happening. Portversion no longer correctly reports what ports need
    > updating. But if I do a 'portupgrade -arR', the appropriate things get
    > upgraded.... and then later it says they 'succeed' the port!?! It feels
    > like the INDEX is not getting update at all, or something.
    Correct: the machine that builds fetchindex hasn't been getting cvs
    updates since last week some time. I'm in the process of trying to
    fix this. In the meantime, you can build your own index ('make
    index') if you need to update, but this is quite resource-intensive.

    Kris

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (FreeBSD)

    iD8DBQFCGWxGWry0BWjoQKURAsPSAKCPYxGBVM/mstH8B42fb69iTj+i2wCfa/cv
    3ukg7khdHpSi3CQazyNLCcg=
    =3vXq
    -----END PGP SIGNATURE-----

    Kris Kennaway Guest

  5. #4

    Default Re: Trouble with upgrading ports...

    Kris Kennaway wrote:>
    > Correct: the machine that builds fetchindex hasn't
    > been getting cvs updates since last week some time.
    > I'm in the process of trying to fix this.
    > In the meantime, you can build your own index
    > ('make index') if you need to update, but this is
    > quite resource-intensive.
    I always generated the INDEX file myself (yes, it's
    indeed resource and time consuming).

    When I encountered trouble some time ago, I learned
    from this mailing list that I can use "make
    fetchindex" and that this is actually better.

    I then frequently encounter following problem:
    Since I am in Korea, I used cvsup.kr.freebsd.org for
    cvsup-ing my ports. However, the 'make fetchindex'
    dowloads the INDEX file from elsewhere, which may
    not be in sync with my Korean cvsup host.
    So I get conflicts when checking port versions and
    upgrading outdated ports.

    To solve this problem, I now always sync my ports
    with one of the main cvsup hosts:
    cvsup[n].freebsd.org.
    So the Korean freeBSD hosts have become useless to
    me.

    Am I doing something wrong?

    Rob.



    __________________________________
    Do you Yahoo!?
    Take Yahoo! Mail with you! Get it on your mobile phone.
    [url]http://mobile.yahoo.com/maildemo[/url]
    Rob Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139