Re: Is Fake-Provides broken?

Panu Matilainen <[email protected]> Mon, 25 Apr 2005 15:18:47 +0300 (EEST)
Newsgroups gmane.linux.conectiva.apt-rpm
Message-ID <[email protected]>
On Sat, 23 Apr 2005, Noel Bush wrote:

> I am using apt-0.5.15cnc6-4.1.fc3.rf.
>
> I am trying to use the Fake-Provides feature.  It does not seem to work.
>
> But I can't tell whether I am making a mistake in syntax in the apt.conf 
> file, or if Fake-Provides is just disabled.  Here are different things I have 
> tried in apt.conf:
>
> RPM::Fake-Provides { "java 0:1.4"; };
> RPM::Fake-Provides { "java=0:1.4"; };
> RPM::Fake-Provides { "java 1.4"; };
> RPM::Fake-Provides { "java=1.4"; };
> RPM::Fake-Provides { "java 0:1.4" };
> RPM::Fake-Provides { "java=0:1.4" };
>
> ...etc.  You get the idea.
>
> But my package that depends on "java >= 0:1.4" still cannot be installed with 
> apt.

RPM::Fake-Provides {"doesnt-exist 0:1.6";};
format works for me with apt 0.5.15cnc7 and I don't remember there having 
been any changes wrt Fake-provides handling in a long, long time.
It shouldn't be necessary but you could try nuking the cache after setting 
RPM::Fake-Provides { "java 0:1.4"; };
- run "rm -f /var/cache/apt/*.bin; apt-get update" and see if it helps.
You could just as well drop the number from the fake provides, since it's 
fake it doesn't mean anything and plain "java" provided will cover any 
java version required.

>
> Humorously enough, I also get no feedback of any kind if I try this:
>
> RPM::Blahblahblahblah-Provides { "java 0:1.4"; };

That's a perfectly valid configuration setting, it's just that nothing 
uses it :)

  	- Panu -