Bug 707442

Summary: sqlsh's help needs IO::Scalar and Term::ReadLine::Gnu
Product: [Fedora] Fedora Reporter: Jan Pazdziora <jpazdziora>
Component: perl-SQL-ShellAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 14CC: cweyl, perl-devel, rc040203
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-SQL-Shell-1.14-8.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-11 04:27:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Pazdziora 2011-05-25 05:18:28 UTC
Description of problem:

When perl-SQL-Shell is installed, the help command of sqlsh does not work because perl-SQL-Shell does not pull perl-IO-stringy as a dependency.

Version-Release number of selected component (if applicable):

$ rpm -qf /usr/bin/sqlsh 
sqlsh-1.14-5.fc14.noarch

How reproducible:

Seems deterministic.

Steps to Reproduce:
1. Start sqlsh.
2. Type help at prompt.
  
Actual results:

$ sqlsh 

               _       _      
              | |     | |     
     ___  ____| |  ___| |__   
    /___)/ _  | | /___)  _ \  
   |___ | |_| | ||___ | | | | 
   (___/ \__  |\_|___/|_| |_| 
            |_|               
   
Type HELP for a list of commands
> help
Can't locate IO/Scalar.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at /usr/bin/sqlsh line 181, <FIN> line 1.

Expected results:

$ sqlsh 

               _       _      
              | |     | |     
     ___  ____| |  ___| |__   
    /___)/ _  | | /___)  _ \  
   |___ | |_| | ||___ | | | | 
   (___/ \__  |\_|___/|_| |_| 
            |_|               
   
Type HELP for a list of commands
> help

            _       _                                               _      
           | |     | |                                             | |     
  ___  ____| |  ___| |__      ____ ___  ____  ____  _____ ____   __| | ___ 
 /___)/ _  | | /___)  _ \    / ___) _ \|    \|    \(____ |  _ \ / _  |/___)
|___ | |_| | ||___ | | | |  ( (__| |_| | | | | | | / ___ | | | ( (_| |___ |
(___/ \__  |\_|___/|_| |_|   \____)___/|_|_|_|_|_|_\_____|_| |_|\____(___/ 
         |_|                                                               
 
 show drivers
 show datasources <driver>
 connect <dsn> [<user> <pass>] - connect to DBI DSN
[...]

Additional info:

Comment 1 Jan Pazdziora 2011-05-25 05:22:59 UTC
Also, while we are at it, the Requires of perl(Term::ReadLine::Gnu) should also be added, as hitting Ctrl-D or typing quit on sqlsh's prompt produces

$ 
[adelton@corona ~]$ sqlsh 

               _       _      
              | |     | |     
     ___  ____| |  ___| |__   
    /___)/ _  | | /___)  _ \  
   |___ | |_| | ||___ | | | | 
   (___/ \__  |\_|___/|_| |_| 
            |_|               
   
Type HELP for a list of commands
> quit
Can't locate object method "GetHistory" via package "Term::ReadLine::Stub" at /usr/bin/sqlsh line 85, <FIN> line 1.

Comment 2 Marcela Mašláňová 2011-05-25 08:48:23 UTC
This module doesn't have specified these requirement. I'll update requires.

Comment 3 Fedora Update System 2011-05-25 08:58:13 UTC
perl-SQL-Shell-1.14-6.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/perl-SQL-Shell-1.14-6.fc14

Comment 4 Fedora Update System 2011-05-25 09:03:14 UTC
perl-SQL-Shell-1.14-8.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/perl-SQL-Shell-1.14-8.fc15

Comment 5 Ralf Corsepius 2011-05-25 09:22:24 UTC
Still missing deps:

grep -iR require SQL-Shell-1.14/bin/sqlsh 
	require Pod::Select;
		require Pod::Select;
		require IO::Scalar;
=> R: perl(Pod::Select) is missing

Besides this, I am not sure R: perl(Term::ReadLine::Gnu) is right.

Comment 6 Fedora Update System 2011-05-25 18:54:07 UTC
Package perl-SQL-Shell-1.14-6.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing perl-SQL-Shell-1.14-6.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/perl-SQL-Shell-1.14-6.fc14
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2011-06-11 04:27:38 UTC
perl-SQL-Shell-1.14-6.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2011-06-11 04:31:10 UTC
perl-SQL-Shell-1.14-8.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.