[bug-notifications] [pkgutil 0003688]: pkgutil fails to build package stream: No such file or directory at ./pkgutil line 995

Mantis Bug Tracker noreply at opencsw.org
Wed May 27 15:03:49 CEST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=3688 
====================================================================== 
Reported By:                skayser
Assigned To:                bonivart
====================================================================== 
Project:                    pkgutil
Issue ID:                   3688
Category:                   regular use
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-05-27 09:18 CEST
Last Modified:              2009-05-27 15:03 CEST
====================================================================== 
Summary:                    pkgutil fails to build package stream: No such file
or directory at ./pkgutil line 995
Description: 
pkgutil (pkgtrans) seems to bail out, when the package stream is sent to a
file and this file doesn't yet exist. When then running pkgutil again, it
bails out trying to transform packages (i guess that's because the previous
run failed and didn't do cleanups).

$ pkgutil -y -W tmp/ -T sparc:5.10 -s -o ion.pkg ion
....
Transforming CSWcommon...
Transforming CSWlibtoolrt...
Transforming CSWlibtool...
Transforming CSWlua...
Transforming CSWion...
Transforming packages into stream...
Could not transform packages into stream: No such file or directory at
/opt/csw/bin/pkgutil line 994.

$ pkgutil -y -W tmp/ -T sparc:5.10 -s -o ion.pkg ion
Parsing catalog, may take a while...
New packages: CSWcommon-1.4.6,REV=2008.04.28
CSWlibtoolrt-2.2.6,REV=2009.03.23_rev=a
CSWlibtool-2.2.6,REV=2009.03.23_rev=a CSWlua-5.1.4,REV=2009.03.30
CSWion-3,REV=2005.04.06.01
Total size: 1.5 MB
A local copy of CSWcommon-1.4.6,REV=2008.04.28 exists and is of matching
size.
A local copy of CSWlibtoolrt-2.2.6,REV=2009.03.23_rev=a exists and is of
matching size.
A local copy of CSWlibtool-2.2.6,REV=2009.03.23_rev=a exists and is of
matching size.
A local copy of CSWlua-5.1.4,REV=2009.03.30 exists and is of matching
size.
A local copy of CSWion-3,REV=2005.04.06.01 exists and is of matching
size.
Transforming CSWcommon...
Could not transform common-1.4.6,REV=2008.04.28-SunOS5.8-i386-CSW.pkg.gz:
No such file or directory at /opt/csw/bin/pkgutil line 988.

$ ls tmp/packages/
CSWcommon     common-1.4.6,REV=2008.04.28-SunOS5.8-i386-CSW.pkg.gz
CSWion        ion-3,REV=2005.04.06.01-SunOS5.8-i386-CSW.pkg.gz
CSWlibtool    libtool-2.2.6,REV=2009.03.23_rev=a-SunOS5.8-i386-CSW.pkg.gz
CSWlibtoolrt 
libtool_rt-2.2.6,REV=2009.03.23_rev=a-SunOS5.8-i386-CSW.pkg.gz
CSWlua        lua-5.1.4,REV=2009.03.30-SunOS5.8-i386-CSW.pkg.gz


Touching the output file beforehand works.

$ rm -rf tmp/packages/*
$ touch tmp/packages/ion.pkg
$ pkgutil -y -W tmp/ -T sparc:5.10 -s -o ion.pkg ion
Transforming CSWcommon...
Transforming CSWlibtoolrt...
Transforming CSWlibtool...
Transforming CSWlua...
Transforming CSWion...
Transforming packages into stream...

Install commands in dependency safe order:

pkgadd -d ion.pkg CSWcommon
pkgadd -d ion.pkg CSWlibtoolrt
pkgadd -d ion.pkg CSWlibtool
pkgadd -d ion.pkg CSWlua
pkgadd -d ion.pkg CSWion

====================================================================== 

---------------------------------------------------------------------- 
 (0006196) bonivart (manager) - 2009-05-27 10:44
 http://www.opencsw.org/mantis/view.php?id=3688#c6196 
---------------------------------------------------------------------- 
I just tried the simplest form:

# pkgutil -y -s ion

and that worked (stream file in /var/opt/csw/pkgutil/packages named
ion.i386.5.10.pkg). Must be something related to using another work dir.
I'll look into it but maybe you can get by for now by skipping -W?

 

---------------------------------------------------------------------- 
 (0006197) skayser (administrator) - 2009-05-27 11:13
 http://www.opencsw.org/mantis/view.php?id=3688#c6197 
---------------------------------------------------------------------- 
Thanks for the swift feedback, Peter. I resorted to just use -o- and
redirect into the file that i wanted. Works.

I had used the -W switch because i am working as an unprivileged user on
the box where i need to create the package stream and there i had gotten
permission errors. Verifying this behavior just now gives me yet another
error.

$ pkgutil -y -s ion
Parsing catalog, may take a while...
New packages: CSWcommon-1.4.6,REV=2008.04.28
CSWlibtoolrt-2.2.6,REV=2009.03.23_rev=a
CSWlibtool-2.2.6,REV=2009.03.23_rev=a CSWlua-5.1.4,REV=2009.03.30
CSWion-3,REV=2005.04.06.01
Total size: 1.5 MB
A local copy of CSWcommon-1.4.6,REV=2008.04.28 exists and is of matching
size.
A local copy of CSWlibtoolrt-2.2.6,REV=2009.03.23_rev=a exists and is of
matching size.
A local copy of CSWlibtool-2.2.6,REV=2009.03.23_rev=a exists and is of
matching size.
A local copy of CSWlua-5.1.4,REV=2009.03.30 exists and is of matching
size.
A local copy of CSWion-3,REV=2005.04.06.01 exists and is of matching
size.
Transforming CSWcommon...
Could not transform common-1.4.6,REV=2008.04.28-SunOS5.8-i386-CSW.pkg.gz:
Illegal seek at /opt/csw/bin/pkgutil line 988.

Letting the admin clear out /var/opt/csw/pkgutil/packages and then
re-running pkgutil gives me the initial error that made me use the -W
switch.

$ pkgutil -y -s ion
Parsing catalog, may take a while...
New packages: CSWcommon-1.4.6,REV=2008.04.28
CSWlibtoolrt-2.2.6,REV=2009.03.23_rev=a
CSWlibtool-2.2.6,REV=2009.03.23_rev=a CSWlua-5.1.4,REV=2009.03.30
CSWion-3,REV=2005.04.06.01
Total size: 1.5 MB
Fetching CSWcommon-1.4.6,REV=2008.04.28...
/var/opt/csw/pkgutil/packages/common-1.4.6,REV=2008.04.28-SunOS5.8-i386-CSW.pkg.gz:
Permission denied

Fetching of CSWcommon-1.4.6,REV=2008.04.28 failed. Try updating your
catalog with pkgutil -U. 

---------------------------------------------------------------------- 
 (0006203) bonivart (manager) - 2009-05-27 15:03
 http://www.opencsw.org/mantis/view.php?id=3688#c6203 
---------------------------------------------------------------------- 
Could you please try r51?

http://pkgutil.svn.sourceforge.net/viewvc/pkgutil/trunk/pkgutil?revision=51 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-27 09:18 skayser        New Issue                                    
2009-05-27 10:09 bonivart       Status                   new => assigned     
2009-05-27 10:09 bonivart       Assigned To               => bonivart        
2009-05-27 10:43 bonivart       Note Added: 0006196                          
2009-05-27 10:44 bonivart       Note Edited: 0006196                         
2009-05-27 11:13 skayser        Note Added: 0006197                          
2009-05-27 15:03 bonivart       Note Added: 0006203                          
======================================================================




More information about the bug-notifications mailing list