Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2012 10:03:57 +0000 (UTC)
From:      jb <jb.1234abcd@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: When Is The Ports Tree Going To Be Updated?
Message-ID:  <loom.20121128T105532-674@post.gmane.org>
References:  <50B2A57A.3050500@tundraware.com> <50B2A8D8.90301@FreeBSD.org> <50B2AA07.8090103@tundraware.com> <201211251856.40381.lumiwa@gmail.com> <50B2BEE1.9030903@tundraware.com> <loom.20121126T120530-186@post.gmane.org> <05eafe033134e0771d54dec2d9388c8f@homey.local> <loom.20121126T161423-178@post.gmane.org> <C1998C36-57DF-4ACE-8AF2-09E1885E7176@my.gd> <loom.20121126T170433-746@post.gmane.org> <loom.20121126T182635-720@post.gmane.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
jb <jb.1234abcd <at> gmail.com> writes:

> ...

I tested and compared results on FreeBSD 9.0 and FreeBSD 9.1-RC3 (done here
earlier) and this is a summary.
Please review it, in particular the conclusions, as they are intended to be
the base for filing a PR#.

Test on FreeBSD 9.0
-------------------

$ uname -a
FreeBSD localhost.localdomain 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun
12 01:47:53 UTC 2012    
root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

# ls /var/db/pkg/portmaster-3.11/

# portsnap fetch update
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Latest snapshot on server matches what we already have.
No updates needed.
Ports tree is already up to date.

# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26912299 Nov 28 08:53 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26796230 Nov 28 08:53 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26777464 Nov 28 08:53 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2

# portmaster -L | egrep '(ew|ort) version|total install'
...
	===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
	===>>> 194 have new versions available

# portmaster -L --index | egrep '(ew|ort) version|total install'
...
	===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
	===>>> 194 have new versions available

# portmaster -L --index-only | egrep '(ew|ort) version|total install'
...
	===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
	===>>> 194 have new versions available
#

# rm -rf /usr/ports

# portsnap extract
...
Building new INDEX files... done.
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26912299 Nov 28 09:07 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26796230 Nov 28 09:07 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26777464 Nov 28 09:07 /usr/ports/INDEX-9

# portmaster -L | egrep '(ew|ort) version|total install'
...
	===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
	===>>> 194 have new versions available

# portmaster -L --index | egrep '(ew|ort) version|total install'
/tmp/d-32794-index/INDEX-9.bz2                100% of 1615 kB  173 kBps
...
	===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
	===>>> 193 have new versions available

# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26912299 Nov 28 09:07 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26796230 Nov 28 09:07 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26665016 Nov 28 09:12 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2

# portmaster -L --index-only | egrep '(ew|ort) version|total install'
...
	===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
	===>>> 193 have new versions available
#

The result shows that after this step:
# portmaster -L --index | egrep '(ew|ort) version|total install'
/tmp/d-32794-index/INDEX-9.bz2                100% of 1615 kB  173 kBps
the uncompressed INDEX-9 
-rw-r--r--  1 root  wheel  26665016 Nov 28 09:12 /usr/ports/INDEX-9
is different from the prior "original" INDEX-9
-rw-r--r--  1 root  wheel  26777464 Nov 28 09:07 /usr/ports/INDEX-9
The cause of it could be:
- either portmaster gets identical size-wise, but not necessarily content-wise
  INDEX-9.bz2
- or portmaster uncompresses INDEX-9.bz2 incorectly and loses some content

Test on FreeBSD 9.1-RC3
-----------------------
 
$ uname -a
... 9.1-RC3 ...

$ cat /usr/ports/ports-mgmt/portmaster/distinfo
...
portmaster-portmaster-3.14-31009f6.tar.gz
...

# portsnap fetch extract

# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26879597 Nov 26 15:37 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26763600 Nov 26 15:38 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26744834 Nov 26 15:38 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2

# portsnap fetch update
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Latest snapshot on server matches what we already have.
No updates needed.
Ports tree is already up to date.

# portmaster -L | egrep '(ew|ort) version|total install'
        ===>>> New version available: java-zoneinfo-2012.j
        ===>>> New version available: liberation-fonts-ttf-2.00.1,1
        ===>>> New version available: libxul-10.0.11
        ===>>> New version available: firefox-17.0,1
        ===>>> New version available: libreoffice-3.5.7
        ===>>> New version available: vigra-1.9.0
===>>> 545 total installed ports
        ===>>> 6 have new versions available

# portmaster -L --index | egrep '(ew|ort) version|total install'
        ===>>> New version available: java-zoneinfo-2012.j
        ===>>> New version available: liberation-fonts-ttf-2.00.1,1
        ===>>> New version available: libxul-10.0.11
        ===>>> New version available: firefox-17.0,1
        ===>>> New version available: libreoffice-3.5.7
        ===>>> New version available: vigra-1.9.0
===>>> 545 total installed ports
        ===>>> 6 have new versions available

# portmaster -L --index-only | egrep '(ew|ort) version|total install'
        ===>>> New version available: java-zoneinfo-2012.j
        ===>>> New version available: liberation-fonts-ttf-2.00.1,1
        ===>>> New version available: libxul-10.0.11
        ===>>> New version available: firefox-17.0,1
        ===>>> New version available: libreoffice-3.5.7
        ===>>> New version available: vigra-1.9.0
===>>> 545 total installed ports
        ===>>> 6 have new versions available
#

# rm -rf  /usr/ports/

# portsnap extract

# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26879563 Nov 26 16:07 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26763566 Nov 26 16:07 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26744800 Nov 26 16:07 /usr/ports/INDEX-9

# portmaster -L | egrep '(ew|ort) version|total install'
        ===>>> New version available: java-zoneinfo-2012.j
        ===>>> New version available: liberation-fonts-ttf-2.00.1,1
        ===>>> New version available: libxul-10.0.11
        ===>>> New version available: firefox-17.0,1
        ===>>> New version available: libreoffice-3.5.7
        ===>>> New version available: vigra-1.9.0
===>>> 545 total installed ports
        ===>>> 6 have new versions available

# portmaster -L --index | egrep '(ew|ort) version|total install'
/tmp/d-78227-index/INDEX-9.bz2                100% of 1615 kB  176 kBps 00m00s
        ===>>> New version available: libreoffice-3.5.7
===>>> 545 total installed ports
        ===>>> 1 has a new version available

# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26879563 Nov 26 16:07 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26763566 Nov 26 16:07 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26665016 Nov 26 16:12 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2

# portmaster -L --index-only | egrep '(ew|ort) version|total install'
        ===>>> New version available: libreoffice-3.5.7
===>>> 545 total installed ports
        ===>>> 1 has a new version available

# portsnap update
Ports tree is already up to date.
#

The result shows that after this step:
# portmaster -L --index | egrep '(ew|ort) version|total install'
/tmp/d-78227-index/INDEX-9.bz2                100% of 1615 kB  176 kBps 00m00s
the uncompressed INDEX-9 
-rw-r--r--  1 root  wheel  26665016 Nov 26 16:12 /usr/ports/INDEX-9
is different from the prior "original" INDEX-9
-rw-r--r--  1 root  wheel  26744800 Nov 26 16:07 /usr/ports/INDEX-9
The cause of it could be:
- either portmaster gets identical size-wise, but not necessarily content-wise
  INDEX-9.bz2
- or portmaster uncompresses INDEX-9.bz2 incorectly and loses some content

jb





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?loom.20121128T105532-674>