[bug-notifications] [cswutils 0004791]: checkpkg: incompatible with 'p' files in /var/sadm/install/contents

Mantis Bug Tracker noreply at opencsw.org
Wed Jun 22 07:01:21 CEST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4791 
====================================================================== 
Reported By:                skayser
Assigned To:                
====================================================================== 
Project:                    cswutils
Issue ID:                   4791
Category:                   regular use
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-06-22 00:53 CEST
Last Modified:              2011-06-22 07:01 CEST
====================================================================== 
Summary:                    checkpkg: incompatible with 'p' files in
/var/sadm/install/contents
Description: 
Just reported on #opencsw by jMCg. Relevant gmake package excerpt:

## Validating control scripts.
## Packaging complete.
mkp: exec( pkgtrans -s /home/igalic/spool.5.10-i386
/tmp/zbx_agent-1.8.5,REV=2011.06.21-SunOS5.10-i386-UNCOMMITTED.pkg
CSWzbx-agent )
Transferring <CSWzbx-agent> package instance
mkp: exec( gzip -9 -f
/tmp/zbx_agent-1.8.5,REV=2011.06.21-SunOS5.10-i386-UNCOMMITTED.pkg )
mkp: exec( mv
/tmp/zbx_agent-1.8.5,REV=2011.06.21-SunOS5.10-i386-UNCOMMITTED.pkg.gz
/opt/install/unix/baw/csw )
mkp: exec( rm -rf /home/igalic/spool.5.10-i386/CSWzbx-agent )
WARNING:root:No configuration file found.  Will attempt to create an sane
default configuration in '/home/igalic/.checkpkg/checkpkg_auto.ini'.
CRITICAL:root:Database schema version: 1, Application expects version: 7
WARNING:root:Old database schema detected.
WARNING:root:Dropping and creating all tables.
WARNING:root:Cache database is not up to date.  Refreshing it.
WARNING:root:Refreshing the database.  It may take a long time, please be
patient.
WARNING:root:If you need a way to make it faster, please see:
WARNING:root:http://wiki.opencsw.org/checkpkg#toc5
.Traceback (most recent call last):
  File "gar//bin/checkpkg", line 179, in <module>
    main()
  File "gar//bin/checkpkg", line 88, in main
    dm.AutoManage()
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/database.py", line
65, in AutoManage
    self._CheckAndMaybeFixFreshness(auto_fix=auto_manage)
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/database.py", line
105, in _CheckAndMaybeFixFreshness
    ldm.RefreshDatabase()
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/database.py", line
317, in RefreshDatabase
    data = spi.Index(show_progress=True)
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/system_pkgmap.py",
line 269, in Index
    contents_stream, pkginfo_stream, self.osrel, self.arch,
show_progress)
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/system_pkgmap.py",
line 259, in GetDataStructure
    "contents": self._ParseInstallContents(contents_stream,
show_progress),
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/system_pkgmap.py",
line 220, in _ParseInstallContents
    d = self._ParsePkgmapLine(line)
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/system_pkgmap.py",
line 184, in _ParsePkgmapLine
    % (repr(file_type), repr(line)))
system_pkgmap.ParsingError: Wrong file type: 'p' in '/etc/scn/scn_aa_read
p none 0600 root sys SUNWscn-agentfacade-r\n'
gmake: *** [pkgcheck] Error 2
igalic at asd5inbld002:/buildr/mgar/pkg/zbx-agent/trunk>
====================================================================== 

---------------------------------------------------------------------- 
 (0009130) maciej (developer) - 2011-06-22 07:01
 https://www.opencsw.org/mantis/view.php?id=4791#c9130 
---------------------------------------------------------------------- 
Hi Sebastian,

Sadly, it's a known issue that checkpkg does not work out of the box
outside the buildfarm. For now, I would recommend setting up a managed
database:

http://wiki.opencsw.org/checkpkg#toc5

It doesn't have to be mysql, it could be as well a sqlite database, it's
about the way you manage it (on demand vs automatically).

We can also work together (me - coding, you - testing), to make the
off-buildfarm use case work again. What do you think?

Maciej



More information about the bug-notifications mailing list