[bug-notifications] [pkgutil 0003917]: bldcat/chkcat rely on /opt/csw/bin/perl, but CSWpkgutil doesn't have dependency on CSWperl

Mantis Bug Tracker noreply at opencsw.org
Mon Sep 28 13:44:18 CEST 2009


The following issue has been CLOSED 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=3917 
====================================================================== 
Reported By:                skayser
Assigned To:                bonivart
====================================================================== 
Project:                    pkgutil
Issue ID:                   3917
Category:                   packaging
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-09-23 17:02 CEST
Last Modified:              2009-09-28 13:44 CEST
====================================================================== 
Summary:                    bldcat/chkcat rely on /opt/csw/bin/perl, but
CSWpkgutil doesn't have dependency on CSWperl
Description: 
I understand that CSWpkgutil should not depend on CSWperl, but
bldcat/chkcat are both hardcoded to use /opt/csw/bin/perl. Just wanted to
build a catalog on a system that only has /usr/bin/perl and catalog
creation failed.

$ /opt/csw/bin/bldcat 
bash: /opt/csw/bin/bldcat: bad interpreter: No such file or directory

$ head -1 /opt/csw/bin/bldcat
#!/opt/csw/bin/perl -w

$ head -1 /opt/csw/bin/chkcat 
#!/opt/csw/bin/perl -w

$ pkginfo -l CSWperl
ERROR: information for "CSWperl" was not found

Unfortunately, they don't work with the stock perl due to missing perl
modules.

$ /usr/bin/perl /opt/csw/bin/bldcat .
Can't locate Digest/MD5.pm in @INC (@INC contains:
/usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib
/usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1
/usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
/usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at
/opt/csw/bin/bldcat line 9.
BEGIN failed--compilation aborted at /opt/csw/bin/bldcat line 9.

Any chance to ship the required modules with CSWpkgutil?
====================================================================== 

---------------------------------------------------------------------- 
 (0006763) bonivart (manager) - 2009-09-28 13:44
 http://www.opencsw.org/mantis/view.php?id=3917#c6763 
---------------------------------------------------------------------- 
I changed it so that both bldcat and chkcat uses whatever Perl is in the
path (like pkgutil) and if Digest::MD5 is not available you get a message
about that and a recommendation to install CSWperl. Modern Solaris will
have this module in their standard Perl so it's not a strict requirement to
use CSWperl any more unless you're on like Solaris 8.




More information about the bug-notifications mailing list