I'm having trouble creating a local package repository (at
http://localhost:80) and adding it as an authority in a way that lets
me install packages from it.

Abstracted from a multitude of false starts (that might well have left
some sort of toxin behind), here's what I did:

1)  Enabled the svc:/application/pkg/server:default service instance.

    I confirmed that the instance came on line.

2)  Used pkgsend to create a couple instances of the package I'm
    trying to construct.  (It's highly likely that these instances are
    too skeletal to install successfully.  They may be flat out
    broken.  But the page produced by browsing port 80 on my test
    machine claims that there are two packages and their info and
    manifest links lead to displays matching the information I
    supplied in pkgsend-ing the packages.)

    Each of the "pkgsend close" invocations responded with a
    "PUBLISHED" confirmation.

3)  Added http://localhost:80 as an authority named "localhost".

    A subsequent "pkg authority" invocation listed both
    opensolaris.org and localhost as authorities.

4)  Tried pkg install, giving as argument the FMRI that pkgsend
    previously reported in its publishing confirmation.

    This failed, with a message stating that no matching package could
    be found in the current catalog.

    I more or less expected the attempt to fail, but was surprised
    that it didn't even get as far as finding my package.

5)  Digging around a bit more, I looked inside /var/pkg/catalog:

    . cd /var/pkg
    . l catalog
    total 6421
    drwxrwxr-x   2 root     root           3 Sep 24 13:15 localhost
    drwxr-xr-x   4 root     root           5 Sep 24 13:15 .
    -rw-r--r--   1 root     root     3226060 Sep 12 17:44 catalog.pkl
    drwxr-xr-x   9 root     root          10 Sep 10 13:43 ..
    drwxr-xr-x   2 root     root           5 Apr 26 18:42 opensolaris.org
    . l catalog/localhost
    total 8
    -rw-rw-r--   1 root     root          26 Sep 24 13:15 attrs
    drwxrwxr-x   2 root     root           3 Sep 24 13:15 .
    drwxr-xr-x   4 root     root           5 Sep 24 13:15 ..
    . cat catalog/localhost/attrs
    S prefix: CRSV
    S npkgs: 0
    . cat catalog/opensolaris.org/attrs
    S origin: http://pkg.opensolaris.org:80/
    S Last-Modified: 2008-09-05T16:57:54.845988
    S prefix: CRSV
    S npkgs: 14413
    . 

    From this, it seems that even though the local repository thinks
    it's published a couple packages, other parts of the packaging
    system don't agree.

Any ideas about where I went wrong?

(For those with SWAN access, http://sml-proj-06:80 will get you to the
repository in question.  It wouldn't surprise me to learn that their
manifests have some sort of fatal flaw; one question is what that flaw
might be.)

And while I'm here, what does one do to set the summary information
appearing in a package's info page?  I tried adding a
        set name=Summary value="..."
action, but that had no apparent effect.

                -- Glenn

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to