# Strange dependency problem installing GIT 0.99.7

8 messages from 2005-09-19 to 2005-09-19. Participants: Peter Williams, Junio C Hamano, Sean, H. Peter Anvin.
Thread: https://gitlist.dev/t/1854

## Peter Williams, 2005-09-19 02:15

Subject: Strange dependency problem installing GIT 0.99.7
Message-ID: <432E1F28.9060909@bigpond.net.au>
URL: https://gitlist.dev/e/432E1F28.9060909%40bigpond.net.au

```
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
-- 
Peter Williams                                   pwil3058@bigpond.net.au

"Learning, n. The kind of ignorance distinguishing the studious."
  -- Ambrose Bierce

```

## Junio C Hamano, 2005-09-19 04:46

Subject: Re: Strange dependency problem installing GIT 0.99.7
Message-ID: <7v8xxtzmtl.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v8xxtzmtl.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <432E1F28.9060909@bigpond.net.au>

```
Peter Williams <pwil3058@bigpond.net.au> writes:

> 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?

```

## Peter Williams, 2005-09-19 05:11

Subject: Re: Strange dependency problem installing GIT 0.99.7
Message-ID: <432E487C.7090309@bigpond.net.au>
URL: https://gitlist.dev/e/432E487C.7090309%40bigpond.net.au
In-Reply-To: <7v8xxtzmtl.fsf@assigned-by-dhcp.cox.net>

```
Junio C Hamano wrote:
> Peter Williams <pwil3058@bigpond.net.au> writes:
> 
> 
>>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
-- 
Peter Williams                                   pwil3058@bigpond.net.au

"Learning, n. The kind of ignorance distinguishing the studious."
  -- Ambrose Bierce

```

## Sean, 2005-09-19 05:17

Subject: Re: Strange dependency problem installing GIT 0.99.7
Message-ID: <53717.10.10.10.28.1127107066.squirrel@linux1>
URL: https://gitlist.dev/e/53717.10.10.10.28.1127107066.squirrel%40linux1
In-Reply-To: <7v8xxtzmtl.fsf@assigned-by-dhcp.cox.net>

```
On Mon, September 19, 2005 12:46 am, Junio C Hamano said:
> Peter Williams <pwil3058@bigpond.net.au> writes:
>
>> 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

```

## Sean, 2005-09-19 06:14

Subject: Re: Strange dependency problem installing GIT 0.99.7
Message-ID: <BAYC1-PASMTP030A084E1D3B3D9B324DAEAE920@cez.ice>
URL: https://gitlist.dev/e/BAYC1-PASMTP030A084E1D3B3D9B324DAEAE920%40cez.ice
In-Reply-To: <7v8xxtzmtl.fsf@assigned-by-dhcp.cox.net>

```
On Mon, September 19, 2005 12:46 am, Junio C Hamano said:
> Peter Williams <pwil3058@bigpond.net.au> writes:
>
>> 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

```

## Peter Williams, 2005-09-19 06:24

Subject: Re: Strange dependency problem installing GIT 0.99.7
Message-ID: <432E598A.7020306@bigpond.net.au>
URL: https://gitlist.dev/e/432E598A.7020306%40bigpond.net.au
In-Reply-To: <53717.10.10.10.28.1127107066.squirrel@linux1>

```
Sean wrote:
> On Mon, September 19, 2005 12:46 am, Junio C Hamano said:
> 
>>Peter Williams <pwil3058@bigpond.net.au> writes:
>>
>>
>>>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

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.
-- 
Peter Williams                                   pwil3058@bigpond.net.au

"Learning, n. The kind of ignorance distinguishing the studious."
  -- Ambrose Bierce

```

## Sean, 2005-09-19 07:16

Subject: Re: Strange dependency problem installing GIT 0.99.7
Message-ID: <BAYC1-PASMTP01B5899CE20655464E3DDFAE920@CEZ.ICE>
URL: https://gitlist.dev/e/BAYC1-PASMTP01B5899CE20655464E3DDFAE920%40CEZ.ICE
In-Reply-To: <432E598A.7020306@bigpond.net.au>

```
On Mon, September 19, 2005 2:24 am, Peter Williams said:

> 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.

> 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

```

## H. Peter Anvin, 2005-09-19 19:23

Subject: Re: Strange dependency problem installing GIT 0.99.7
Message-ID: <432F104F.8030206@zytor.com>
URL: https://gitlist.dev/e/432F104F.8030206%40zytor.com
In-Reply-To: <432E598A.7020306@bigpond.net.au>

```
Peter Williams wrote:
> 
> 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

```
