Skip to contentSkip to conversation

Strange dependency problem installing GIT 0.99.7

DISCUSSION Peter Williams 5 participants 9 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

When I tried to install GIT 0.99.7 from the rpm package (on a Fedora Core 4 system) I got the following error message:

error: Failed dependencies:

        perl(String::ShellQuote) is needed by git-core-0.99.7-1.i386

So I installed String::ShellQuote from CPAN and tried again with the same result. So I then rebuilt the rpm on my system and still got the same error message. So I've installed the rpm using the --nodeps option but would like to test whether it is successfully finding String::ShellQuote. Which command(s) would exercise this perl package?

Peter

Signature · 4 lines
Peter Williams                                   [email protected]

"Learning, n. The kind of ignorance distinguishing the studious."
 -- Ambrose Bierce
#1 lore raw
Quoted 5 lines · Peter Williams

So I installed String::ShellQuote from CPAN and tried again with the same result. So I then rebuilt the rpm on my system and still got the same error message. So I've installed the rpm using the --nodeps option but would like to test whether it is successfully finding String::ShellQuote. Which command(s) would exercise this perl package?

$ git grep ShellQuote
git-archimport.perl:42:use String::ShellQuote;

Sorry for the gotcha. Any RPM experts to offer advice?

#2 lore raw
Quoted 8 lines · Junio C Hamano
Quoted 1 line · Peter Williams

So I installed String::ShellQuote from CPAN and tried again with the same result. So I then rebuilt the rpm on my system and still got the same error message. So I've installed the rpm using the --nodeps option but would like to test whether it is successfully finding String::ShellQuote. Which command(s) would exercise this perl package?

$ git grep ShellQuote
git-archimport.perl:42:use String::ShellQuote;

That command finds ShellQuote OK which more or less confirms that it's just an rpm problem.

Peter

Signature · 4 lines
Peter Williams                                   [email protected]

"Learning, n. The kind of ignorance distinguishing the studious."
 -- Ambrose Bierce
#3 lore raw
In reply to Junio C Hamano
Quoted 10 lines · Junio C Hamano
Quoted 5 lines · Peter Williams

So I installed String::ShellQuote from CPAN and tried again with the same result. So I then rebuilt the rpm on my system and still got the same error message. So I've installed the rpm using the --nodeps option but would like to test whether it is successfully finding String::ShellQuote. Which command(s) would exercise this perl package?

$ git grep ShellQuote
git-archimport.perl:42:use String::ShellQuote;

Peter,

You need to install ShellQuote with rpm rather than installing it directly from CPAN. You can pick up a rpm version of ShellQuote from several places, here's one: http://tinyurl.com/7p7ey

Cheers,
Sean

#4 lore raw
Quoted 16 lines · Sean
Quoted 11 lines · Junio C Hamano
Quoted 5 lines · Peter Williams

So I installed String::ShellQuote from CPAN and tried again with the same result. So I then rebuilt the rpm on my system and still got the same error message. So I've installed the rpm using the --nodeps option but would like to test whether it is successfully finding String::ShellQuote. Which command(s) would exercise this perl package?

$ git grep ShellQuote
git-archimport.perl:42:use String::ShellQuote;
Quoted 5 lines

Peter,

You need to install ShellQuote with rpm rather than installing it directly from CPAN. You can pick up a rpm version of ShellQuote from several places, here's one: http://tinyurl.com/7p7ey

IMHO rpm shouldn't care how ShellQuote got there unless it (how it got there) is stated as an explicit dependency in the spec file (which it isn't). So I still think this is a bug in rpm's (automatic) dependency mechanism that needs fixing.

Peter
PS I notice that perl isn't included in the explicit list of dependencies in the spec file even though other equally ubiquitous packages are.

Signature · 4 lines
Peter Williams                                   [email protected]

"Learning, n. The kind of ignorance distinguishing the studious."
 -- Ambrose Bierce
#5 lore raw
Quoted 1 line · Peter Williams

Sean wrote:

[...]

Quoted 8 lines
Quoted 3 lines

You need to install ShellQuote with rpm rather than installing it > directly from CPAN. You can pick up a rpm version of ShellQuote from several places, here's one: http://tinyurl.com/7p7ey

IMHO rpm shouldn't care how ShellQuote got there unless it (how it got there) is stated as an explicit dependency in the spec file (which it isn't). So I still think this is a bug in rpm's (automatic) dependency mechanism that needs fixing.

If it needs ShellQuote, it is required. RPM does know only about things in its database (i.e., rpm-installed).

Signature · 4 lines
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
#6 lore raw
In reply to Peter Williams
Quoted 3 lines · Peter Williams

IMHO rpm shouldn't care how ShellQuote got there unless it (how it got there) is stated as an explicit dependency in the spec file (which it isn't). So I still think this is a bug in rpm's (automatic) dependency mechanism that needs fixing.

Unfortunately it doesn't work that way (and this is the wrong mailing list to discuss it on.) Anyway, the best way to install CPAN modules on an RPM-based system is to use cpan2rpm.

-hpa

#7 lore raw
In reply to Peter Williams
Quoted 4 lines · Peter Williams

IMHO rpm shouldn't care how ShellQuote got there unless it (how it got there) is stated as an explicit dependency in the spec file (which it isn't). So I still think this is a bug in rpm's (automatic) dependency mechanism that needs fixing.

But rpm resolves dependencies by looking in the rpm database not by
checking the filesystem. You can actually disable the automatic perl
dependency detection when creating the rpm, but that probably isn't desirable.

At least on Red Hat/Fedora machines you can create your own rpms directly from CPAN so it's not too big a restriction:

$ cpan2rpm String::ShellQuote
$ cd ~/rpm/RPMS/noarch
$ sudo rpm -ivh perl-String-ShellQuote-1.03-1.noarch.rpm

Which is all you need to download, package and install the perl module.

Quoted 3 lines

PS I notice that perl isn't included in the explicit list of dependencies in the spec file even though other equally ubiquitous packages are.

There is special handling for perl detection within the rpmbuild procedure, so perl will be added automatically where many others won't be.

Sean

#8 lore raw
In reply to Junio C Hamano
Quoted 10 lines · Junio C Hamano
Quoted 5 lines · Peter Williams

So I installed String::ShellQuote from CPAN and tried again with the same result. So I then rebuilt the rpm on my system and still got the same error message. So I've installed the rpm using the --nodeps option but would like to test whether it is successfully finding String::ShellQuote. Which command(s) would exercise this perl package?

$ git grep ShellQuote
git-archimport.perl:42:use String::ShellQuote;

Peter,

You need to install ShellQuote with rpm rather than installing it directly from CPAN. You can pick up a rpm version of ShellQuote from several places, here's one: http://tinyurl.com/7p7ey

Cheers,
Sean