On 08/ 2/10 07:42 PM, James C. McPherson wrote:
On 3/08/10 11:45 AM, James C. McPherson wrote:
Hi all,
after Mark's license wad push I've been trying to get
rebuilt blended-onbld tools installed (using the script
which we've been using successfully for months), but
this is failing with "no updates necessary" :(
[snip]
So here's what I did (at Brock's suggestion) to get
past this problem:
1. copy the catalog.* files directly from ipkg into
/var/pkg/publisher/on-onbld/catalog
2. enabled a configured but disabled publisher
3. pkg install blended-onbld
If (2) hadn't worked, I was going to add an entirely
new publisher.
A very big thankyou to Brock for his assistance with this.
So, as far as I can tell, there were at least two bugs happening.
The first is that the depo was handing out a mismatched (and old) set of
catalog files.
The second is that pkg didn't notice and didn't complain about this
situation.
The first screams to me that it's a web cache issue of some kind ...
since as far as I can tell, the catalog files dated Jul 28 don't exist
in the repo anymore.
cheers,
James
--
Oracle
http://www.jmcp.homeunix.com/blog
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
Here are the details of what I saw:
$ mkdir i3_tmp
$ pkg image-create -F -p http://ipkg.sfbay/on-onbld i3_tmp/
$ cd i3_tmp/
$ pkg list -afv
FMRI
STATE UFOXI
pkg://on-onbld/developer/build/[email protected],5.11:20100729T063830Z
known -----
So right now it only knows about the package published on Jul 29, why is
that?
$ ls -l var/pkg/
cfg_cache file/ index/ lost+found/ publisher/ tmp/
download/ history/ lock pkg/ state/
$ ls -l var/pkg/publisher/on-onbld/catalog/
total 5
-rw-r--r-- 1 bpytlik staff 600 2010-08-02 17:58 catalog.attrs
-rw-r--r-- 1 bpytlik staff 219 2010-07-28 23:39 catalog.base.C
-rw-r--r-- 1 bpytlik staff 282 2010-07-28 23:39 catalog.dependency.C
-rw-r--r-- 1 bpytlik staff 453 2010-07-28 23:39 catalog.summary.C
Because the catalog files appear to be a mix of catalogs from aug 2
(catalog.attrs) and july 28. So let's copy the catalog files directly
from the repository to make sure the catalog files are consistent and up
to date.
$ scp [email protected]:/tank/on-onbld/repo/catalog/*
var/pkg/publisher/on-onbld/catalog/
catalog.attrs 100% |****************************| 600
00:00
catalog.base.C 100% |****************************| 219
00:00
catalog.dependency.C 100% |****************************| 282
00:00
catalog.summary.C 100% |****************************| 453
00:00
$ ls -l var/pkg/publisher/on-onbld/catalog/
total 5
-rw-r--r-- 1 bpytlik staff 600 2010-08-02 19:33 catalog.attrs
-rw-r--r-- 1 bpytlik staff 219 2010-08-02 19:33 catalog.base.C
-rw-r--r-- 1 bpytlik staff 282 2010-08-02 19:33 catalog.dependency.C
-rw-r--r-- 1 bpytlik staff 453 2010-08-02 19:33 catalog.summary.C
Ok, they're all there and from Aug 2nd now.
$ pkg list
-afvFMRI
STATE UFOXI
pkg://on-onbld/developer/build/[email protected],5.11:20100729T063830Z
known -----
$ pkg refresh
$ pkg list -afv
FMRI
STATE UFOXI
pkg://on-onbld/developer/build/[email protected],5.11:20100729T063830Z
known -----
But the new package isn't showing up in the output of pkg list, even
after a pkg refresh.
$ pkg set-publisher -p http://ipkg.sfbay/dev
pkg set-publisher:
Added publisher(s): opensolaris.org
$ pkg list -afv blended-onbld
FMRI
STATE UFOXI
pkg://on-onbld/developer/build/[email protected],5.11:20100803T005756Z
known -----
Adding a separate publisher (causing a refresh of the files in
var/pkg/state/known) lets the new version of the package appear.
$ pkg refresh --full
$ ls -l var/pkg/publisher/on-onbld/catalog/
total 5
-rw-r--r-- 1 bpytlik staff 600 2010-08-02 17:58 catalog.attrs
-rw-r--r-- 1 bpytlik staff 219 2010-07-28 23:39 catalog.base.C
-rw-r--r-- 1 bpytlik staff 282 2010-07-28 23:39 catalog.dependency.C
-rw-r--r-- 1 bpytlik staff 453 2010-07-28 23:39 catalog.summary.C
$ pkg list -afv blended-onbld
FMRI
STATE UFOXI
pkg://on-onbld/developer/build/[email protected],5.11:20100729T063830Z
known -----
And, just to demonstrate that this is repeatable, doing a pkg refresh
--full puts us back to the initial state
Here's the catalog files on the repo:
ls -l /tank/on-onbld/repo/catalog/
total 5
-rw-r--r-- 1 Tnightly staff 600 2010-08-02 17:58 catalog.attrs
-rw-r--r-- 1 Tnightly staff 219 2010-08-02 17:58 catalog.base.C
-rw-r--r-- 1 Tnightly staff 282 2010-08-02 17:58 catalog.dependency.C
-rw-r--r-- 1 Tnightly staff 453 2010-08-02 17:58 catalog.summary.C
Thanks,
Brock
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss