OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004791 [cswutils] regular use minor always 2011-06-22 00:53 2011-07-02 19:22
Reporter skayser View Status public  
Assigned To maciej
Priority normal Resolution fixed  
Status closed  
Summary 0004791: 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@asd5inbld002:/buildr/mgar/pkg/zbx-agent/trunk>
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0009130)
maciej (reporter)
2011-06-22 07:01

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
(0009131)
skayser (administrator)
2011-06-22 11:13

If the effort to bring off-buildfarm usage to checkpkg is non-trivial, I'd first suggest to add a GAR sanity check which disables checkpkg on non-buildfarm hosts. Probably by printing an error ("You seem to be running checkpkg on a non-buildfarm host ...") which can be acknowledged by a ~/.garrc setting so that users are aware of the issue. I could implement this.

Regarding testing I can surely give checkpkg a spin on a Solaris 10 x86 box every now and then and provide feedback. If there's more needed, it could be worth talking to jMCg on #opencsw who currently has the specific use case of building packages outside of the farm. He might be willing to tag team the feature.
(0009132)
igalic (reporter)
2011-06-22 11:43
edited on: 2011-06-22 11:47

Trying to repro, this is how far I get:

igalic@asd5inbld002:/buildr/mgar/gar/v2> bin/pkgdb system-files-to-file
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 "bin/pkgdb", line 685, in <module>
    main()
  File "bin/pkgdb", line 413, in main
    dm.AutoManage()
  File "/buildr/mgar/gar/v2/lib/python/database.py", line 65, in AutoManage
    self._CheckAndMaybeFixFreshness(auto_fix=auto_manage)
  File "/buildr/mgar/gar/v2/lib/python/database.py", line 105, in _CheckAndMaybeFixFreshness
    ldm.RefreshDatabase()
  File "/buildr/mgar/gar/v2/lib/python/database.py", line 317, in RefreshDatabase
    data = spi.Index(show_progress=True)
  File "/buildr/mgar/gar/v2/lib/python/system_pkgmap.py", line 269, in Index
    contents_stream, pkginfo_stream, self.osrel, self.arch, show_progress)
  File "/buildr/mgar/gar/v2/lib/python/system_pkgmap.py", line 259, in GetDataStructure
    "contents": self._ParseInstallContents(contents_stream, show_progress),
  File "/buildr/mgar/gar/v2/lib/python/system_pkgmap.py", line 220, in _ParseInstallContents
    d = self._ParsePkgmapLine(line)
  File "/buildr/mgar/gar/v2/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'
igalic@asd5inbld002:/buildr/mgar/gar/v2>

uninstalling the Sun Ops Center Agent just to get this passing seems like a bad idea.

(0009133)
igalic (reporter)
2011-06-23 16:54

Submitted patch to devel@
See: http://lists.opencsw.org/pipermail/devel/2011-June/019476.html [^]
(0009135)
maciej (reporter)
2011-06-24 11:56

The patch is now in the repository:

http://sourceforge.net/apps/trac/gar/changeset/14874 [^]

Thanks!


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker