* Dave Miner ([EMAIL PROTECTED]) wrote:
> Glenn Lagasse wrote:
>> * Danek Duvall ([EMAIL PROTECTED]) wrote:
>>> On Thu, Mar 06, 2008 at 11:24:41AM -0800, Glenn Lagasse wrote:
>>>
>>>> 1 - Create an initial repo in the usual way (run make from
>>>> ips/src/util/distro-import).
>>>> 2 - Make changes to SUNWslim-utils in the slim-utils repo and make a
>>>> package
>>>> 3 - pkg.depotd -d /export/pkg-depot -p 10000
>>>> 4 - pkgsend -s http://localhost:10000 send SUNWslim-utils
>>>> 5 - pkg search -s http://localhost:10000 iotrace
>>>> basename pkg:/[EMAIL PROTECTED],5.11-1:20080229T102431Z
>>>> basename pkg:/[EMAIL PROTECTED],5.11-1:20080305T150135Z
>>>>
>>>> So, my updated package is in the repo (since iotrace is a new file I'm
>>>> delivering)
>>> Okay ... looks like iotrace was delivered before, too, but that's fine.  I
>>> don't see anything wrong so far, other than SUNWslim-utils won't have any
>>> dependencies, but that's irrelevant here.
>>>
>>>> 6 - Build an image using distro constructor, where the only change I
>>>> make to the construction is to point at my local repo.
>>> This step is a black box to me.  What do you get when you do
>>>
>>>     pkg image-create -F -a test=http://localhost:10000 /tmp/test-image
>>>     pkg -R /tmp/test-image install SUNWslim-utils
>>
>> A whole bunch of errors (this package is designed for the microroot)
>>
>
> It shouldn't have had errors, though, because the slim-utils package is 
> well-formed; all of the directories it places files into are also specified 
> in the package.  So what were the errors?

Download: SUNWzlib ...  Done
Download: SUNWlibms ...  Done
Download: SUNWlxml ...  Done
Download: SUNWpool ...  Done
Download: SUNWpr ...  Done
Download: SUNWlibsasl ...  Done
Download: SUNWtls ...  Done
Download: SUNWopenssl ...  Done
Download: SUNWcsl ...  Done
Download: SUNWslim-utils ...  Done
Traceback (most recent call last):
  File "/usr/bin/pkg", line 856, in ?
    ret = main_func()
  File "/usr/bin/pkg", line 824, in main_func
    return install(img, pargs)
  File "/usr/bin/pkg", line 367, in install
    verbose = verbose, noexecute = noexecute)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 930, in 
list_install
    ip.execute()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 370, 
in execute
    p.execute_install(src, dest)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 271, in 
execute_install
    dest.install(self, src)
  File "/usr/lib/python2.4/vendor-packages/pkg/actions/directory.py", line 52, 
in install
    owner = pkgplan.image.getpwnam(self.attrs["owner"]).pw_uid
  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 607, in 
getpwnam
    return pwd.getpwnam(name)
KeyError: 'getpwnam(): name not found: jack'
Install Phase ...  Action install failed for 'jack' (pkg://test/SUNWslim-utils):
  KeyError: 'getpwnam(): name not found: jack'

>> Looking in /tmp/test-image none of what I care about is there (semmingly
>> because the dirs stuff goes into doesn't exist).
>>
>>>     pkg status -av SUNWslim-utils
>>
>
> That should have been:
>
> pkg -R /tmp/test-image status -av SUNWslim-utils
>
> (the below was for your installed OS instance since you didn't direct it to 
> the alternate root).

pkg -R /tmp/test-image status -av SUNWslim-utils
FMRI                                                             STATE
UFIX
pkg://test/[EMAIL PROTECTED],5.11-0.79:20080228T170640Z      known
----
pkg://test/[EMAIL PROTECTED],5.11-1:20080305T150135Z              known
u---
pkg://test/[EMAIL PROTECTED],5.11-1:20080229T102431Z              known
u---

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

Reply via email to