Re: Strange dependency problem installing GIT 0.99.7
- From
Sean <seanlkml@sympatico.ca>
- Date
- Sep 19, 2005, 07:16 UTC
- Message-ID
- <BAYC1-PASMTP01B5899CE20655464E3DDFAE920@CEZ.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