Hi,

On snv_123 (OpenSolaris):
I have a quite simple SVR4 package that I'm trying to publish by doing a 'pkgsend import'. Although it seems to have been published properly, when I try to install it 'pkg install' blows up. My guess is that I'm missing a step in the import process, and that pkg isn't resilient against it. I've attached the initial SVR4 pkgmap and the resultant manifest from the repository website.

I'm importing the package very simply via:
# eval `pkgsend open [email protected],5.8-4`
# pkgsend add set name=pkg.summary value="Sun Ray Service Tags Infrastructure Package"
# pkgsend import SUNWutsvt
# pkgsend close
PUBLISHED
pkg:/[email protected],5.8-4:20090916T193420Z

Then, on another snv_123 machine:
# pkg install SUNWutsvt
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                  1/1         5/5      0.0/0.0

Action install failed for 'etc' (pkg://srss-repo/SUNWutsvt):
 ValueError: invalid literal for int(): ?
The Boot Environment snv_123 failed to be updated. A snapshot was taken before the failed attempt and is mounted here /tmp/tmpcMWSJ4. Use 'beadm unmount snv_123-1' and then 'beadm activate snv_123-1' if you wish to boot to this BE. pkg: An unexpected error happened during install: invalid literal for int(): ?
Traceback (most recent call last):
 File "/usr/bin/pkg", line 2619, in handle_errors
   __ret = func(*args, **kwargs)
 File "/usr/bin/pkg", line 2557, in main_func
   return install(mydir, pargs)
 File "/usr/bin/pkg", line 881, in install
   raise_ActionExecutionError=False):
 File "/usr/bin/pkg", line 546, in __api_execute_plan
   api.execute_plan()
File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 597, in execute_plan
   self.__img.imageplan.execute()
File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 754, in execute
   p.execute_install(src, dest)
File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 267, in execute_install
   dest.install(self, src)
File "/usr/lib/python2.4/vendor-packages/pkg/actions/directory.py", line 65, in install
   mode = int(self.attrs["mode"], 8)
ValueError: invalid literal for int(): ?


pkg: This is an internal error.  Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message.  The version of pkg(5) is '77e92d348aaf'.

-----------

I'm happy to file the bug, but this is so simple I must be overlooking something obvious so I thought I'd ask here first.
Any ideas? I've attached the manifest as reported by the repository website.

-Bob
# [email protected],5.8-4, client release 5.11
set name=pkg.summary value="Sun Ray Service Tags Infrastructure Package"
license d0e357bacb8778311982f26b664501454a068db9 
chash=9ee536604d8e81af200cef6d4d62177dff3885c6 license=SUNWutsvt.copyright 
path=copyright pkg.csize=105 pkg.size=93
dir group=? mode=? owner=? path=etc
dir group=? mode=? owner=? path=etc/opt
dir group=sys mode=0755 owner=root path=etc/opt/SUNWutsvt
dir group=sys mode=0755 owner=root path=etc/opt/SUNWutsvt/svc
dir group=sys mode=0755 owner=root path=etc/opt/SUNWutsvt/svc/method
file f95a61ff672a12b591a9815d7f12d0dc0c714cbf 
chash=31d130a94334b582d16c98045123d62087f60d1a group=sys mode=0744 owner=root 
path=etc/opt/SUNWutsvt/svc/method/utsvtreg pkg.csize=383 pkg.size=608
file cb2cd8404b569cde11bbbcb298e4e1bd63d35a6f 
chash=bdb08d481bf5cde0923daafcbae929b4e64cfd89 group=sys mode=0744 owner=root 
path=etc/opt/SUNWutsvt/utsvtd pkg.csize=2880 pkg.size=7088
file ee422b1989b499f665528a5aae12bb1c8325a825 
chash=ca4c085f0c93390117f115fac265283f9d4cd4ad group=sys mode=0744 owner=root 
path=etc/opt/SUNWutsvt/utsvtd.conf.defaults pkg.csize=324 pkg.size=494
unknown path=pkginfo
dir group=? mode=? owner=? path=var
dir group=? mode=? owner=? path=var/opt
dir group=sys mode=0755 owner=root path=var/opt/SUNWutsvt
dir group=sys mode=0755 owner=root path=var/opt/SUNWutsvt-req
dir group=? mode=? owner=? path=var/svc
dir group=? mode=? owner=? path=var/svc/manifest
dir group=? mode=? owner=? path=var/svc/manifest/application
file 30eb5bc8aec7dcd29ccf0101bfcc5f3cbdf27f37 
chash=42511118eae25433553b496f6ce7e15571f83d78 group=sys mode=0644 owner=root 
path=var/svc/manifest/application/utsvtreg.xml pkg.csize=818 pkg.size=2182
: 1 69
1 i copyright 93 8260 1252101066
1 d none etc ? ? ?
1 d none etc/opt ? ? ?
1 d none etc/opt/SUNWutsvt 0755 root sys
1 d none etc/opt/SUNWutsvt/svc 0755 root sys
1 d none etc/opt/SUNWutsvt/svc/method 0755 root sys
1 f none etc/opt/SUNWutsvt/svc/method/utsvtreg 0744 root sys 608 43648 
1252101065
1 f none etc/opt/SUNWutsvt/utsvtd 0744 root sys 7088 5256 1252101065
1 f none etc/opt/SUNWutsvt/utsvtd.conf.defaults 0744 root sys 494 38231 
1252101065
1 i pkginfo 492 40186 1252101067
1 d none var ? ? ?
1 d none var/opt ? ? ?
1 d none var/opt/SUNWutsvt 0755 root sys
1 d none var/opt/SUNWutsvt-req 0755 root sys
1 d none var/svc ? ? ?
1 d none var/svc/manifest ? ? ?
1 d none var/svc/manifest/application ? ? ?
1 f none var/svc/manifest/application/utsvtreg.xml 0644 root sys 2182 37270 
1252101065
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to