[csw-dev] checkpkg problem

Aubrey Li aubreylee at gmail.com
Sun Mar 30 13:46:52 CEST 2008


I got the following error on my side.

Running checkpkg on pkgfile
Examining pmtools-20071116-SunOS5.11-i386-CSW.pkg
Looking for bad strings...
Extracting files for more detailed inspection...
CSWpmtools/pkginfo
63+0 records in
63+0 records out
2 blocks
ERROR: filename should start with -20071116-
20071116 pmtools-20071116-SunOS5.11-i386-CSW.pkg
ERROR: failed check.

here is my pkginfo
========
PKG=CSWpmtools
NAME=pmtools
VERSION=20071116
CATEGORY=application
VENDOR=http://www.lesswatts.org/patches/linux_acpi/ packaged for CSW
by Aubrey Li
HOTLINE=http://www.blastwave.org/bugtrack/
========

The problem is the following line in /opt/csw/bin/checkpkg
====
software=`sed -n 's/^NAME=\([^ -]*\) -.*$/\1/p' $TMPFILE`
====
software is assigned NULL by sed.

I don't think my pkginfo file has problem, so I double checked on the shell:
------------------------
[aubrey-sz330p at pmtools]sed -n 's/^VERSION=//p' pkginfo
20071116
------------------------
VERSION is no problem.

-----------------------
#sed -n 's/^NAME=\([^ -]*\) -.*$/\1/p' pkginfo
-----------------------
NAME return nothing.

Is this a problem in checkpkg? or I did something wrong?

I'm really appreciated any hints!

Thanks,
-Aubrey



More information about the devel mailing list