[SSI-devel] Re: Strange perl mod dep in openssi-tools RPM generated on Mar 01. Problem located and
Brought to you by:
brucewalker,
rogertsang
From: Brian J. W. <Bri...@hp...> - 2004-03-02 00:23:31
|
Good diagnosis, Kishore. This seems to be an rpmbuild bug. It probably just scans Perl code for the regexp '^\s*use\s\(\S+\)', and didn't notice that the use in this case was quoted. I think we can easily work around this bug, although someone can feel free to submit the bug to the RPM project. Brian SAMPATHKUMAR, KISHORE KANIYAR wrote: > As part of the automated daily build done in India, corresponding > to the openssi-tools RPM built on Mar 01, 2004, the following were > the perl "dependencies": > > [root@lpr1 i386]# rpm -q -R -p ./openssi-tools-1.0.0-7.i386.rpm.bug | grep perl > /usr/bin/perl > perl(Clustertab) > perl(Exporter) > perl(FindBin) > perl(Getopt::Long) > perl(Getopt::Std) > perl(Net::Ping) > perl(Socket) > perl(lib) > perl(ssi_arch) > perl(ssi_distro) > perl(ssi_mgmt) > perl(ssi_utils) > perl(strict) > perl(the) > > Please note the strange perl module dependency listed as the last > item above! > > I checked on all the "use" keywords in all the perl modules in SSI > to ensure that there was no bogus "use the" module called out by > oversight. There weren't any. > > However, I found out that the above dependency was generated due to > the following in openssi-tools-1.0.0/openssi-tools/sysadmin/ssi_mgmt.pm: > > sub help_bootprot { > print " > Select (P)XE or (E)therboot as the network boot protocol for > this node. PXE is an Intel standard for network booting, and > many professional grade NICs have a PXE implementation pre- > installed on them. You can probably enable PXE with your BIOS > configuration tool. If you do not have a NIC with PXE, you can > use the open-source project Etherboot, which lets you generate <---- > a floppy or ROM image for a variety of different NICs. > "; > } > > There is a line above that "starts" with "use" (I have pointed > at that with an arrow). That seemed to have caused the generation of > perl module dependency: > perl(the) > > I changed that line to NOT start with "use" and it fixes the generation > of this spurious dependency. > > Whether this a bug in perl or RPM or whether there is some other aspect > that causes this, I do not know. Meanwhile, can someone look into this? > > Regards, > - Kishore |